Skip to content

Conversation

@leroum
Copy link
Contributor

@leroum leroum commented Nov 25, 2024

in the processing.py the mipgap is calculated using the Upper and Lower bound returned by pyomo and written in the meta results dictionary.
A test tests this functionality.

@leroum leroum changed the title Draft: Calculate Mipgap in the meta results Calculate Mipgap in the meta results Nov 25, 2024
meta_res["problem"]["Upper bound"]
- meta_res["problem"]["Lower bound"]
) / meta_res["problem"]["Lower bound"]
except KeyError:

Check notice

Code scanning / CodeQL

Empty except Note

'except' clause does nothing but pass and there is no explanatory comment.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant