-
Notifications
You must be signed in to change notification settings - Fork 2
Adding binary (binary_big_M) decomposition type #50
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
base: main
Are you sure you want to change the base?
Conversation
Updating error to note that absolute_value not valid for cvxpy, as neither is DCP-compliant Allowing binary_big_M for cvxpy with gurobi
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #50 +/- ##
==========================================
+ Coverage 93.40% 93.48% +0.07%
==========================================
Files 10 10
Lines 1593 1626 +33
==========================================
+ Hits 1488 1520 +32
- Misses 105 106 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
fletchapin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me! @arao53 might have comments since he's more familiar with MILP
| .. code-block:: python | ||
| from electric_emission_cost import costs | ||
| from eeco import costs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch!
| - "absolute_value": Uses max(x, 0) constraints. Creates nonlinear problem | ||
| for Pyomo due to abs() constraint. | ||
| - "binary_big_M": Uses binary indicator with Big-M constraints. | ||
| Creates a MILP (mixed-integer linear program) for Pyomo. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be "for Pyomo or CVXPY" since binary_big_M is supported for both?
| - "absolute_value": Uses max(x, 0) constraints. Creates nonlinear problem | ||
| for Pyomo due to abs() constraint. | ||
| - "binary_big_M": Uses binary indicator with Big-M constraints. | ||
| Creates a MILP (mixed-integer linear program) for Pyomo. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be "for Pyomo or CVXPY" since binary_big_M is supported for both?
Updating error to note that absolute_value not valid for cvxpy, as neither is DCP-compliant
Allowing binary_big_M for cvxpy with gurobi
Addresses #45 and #46
Pull request recommendations:
Thanks for contributing!