-
-
Notifications
You must be signed in to change notification settings - Fork 398
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
Support TIME_LIMIT in is_solved_and_feasible #3915
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3915 +/- ##
=======================================
Coverage 99.58% 99.58%
=======================================
Files 43 43
Lines 6059 6059
=======================================
Hits 6034 6034
Misses 25 25 ☔ View full report in Codecov by Sentry. |
I do not like this. Why I think users needing more details should use the statuses directly. I we end up adding it, I would certainly I prefer |
Don't change the semantics on my account. As long as the documentation is clear, I think this semantics is clean. Reflecting on my confusion. I think the root of the issue here is In the use-case I encountered, what I needed is an |
TIME_LIMIT seems like the one most commonly set by users who expect a solution. ITERATION_LIMIT can happen in interior point-type solvers and tends to indicate failure, not success. NODE_LIMIT and OBJECTIVE_LIMIT are up for debate.
Just define: has_values(model) = primal_status(model) == FEASIBLE_POINT We have Lines 1916 to 1951 in 99cdc4c
but it's not quite the same thing. |
Originally added in #3668, doesn't look like we discussed
TIME_LIMIT
.But this came up last year in a discussion I had with Simon Bowly, where I thought we did support
TIME_LIMIT
.And then @ccoffrin just asked me about it as well.
I tend to think that most people who set a time limit and get given a feasible solution would say that
is_solved_and_feasible
istrue
.If we decide to add, there's an open question whether we should fold this into
allow_local
, or whether we add a newallow_time_limit
kwarg.