Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calculate Mipgap in the meta results #1143

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

leroum
Copy link

@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