-
Notifications
You must be signed in to change notification settings - Fork 415
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
Fix get_infeasible_cost for objectives that require X #1721
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1721 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 170 170
Lines 14621 14621
=========================================
Hits 14621 14621
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@saitcakmak @Balandat any thoughts on this? ;) |
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.
This makes sense to me - could you add a unit tests that checks the new behavior of get_infeasible_cost
if the objective indeed does depend on X
? Thanks!
Co-authored-by: Max Balandat <Balandat@users.noreply.github.com>
Yes, I will add something! |
I just added a test, hope it is fine now ;) |
@Balandat has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
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.
great, lgtm! Thanks for the fix.
Motivation
The method
get_infeasible_cost
is currently not able to also handle objectives that require alsoX
values, which will be the new default in one of the next releases. This PR fixes it.Have you read the Contributing Guidelines on pull requests?
Yes.
Test Plan
Unit tests.