-
Notifications
You must be signed in to change notification settings - Fork 4
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
return MOI.TIME_LIMIT when the solver times out #46
Conversation
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #46 +/- ##
==========================================
- Coverage 97.37% 97.16% -0.21%
==========================================
Files 3 3
Lines 457 459 +2
==========================================
+ Hits 445 446 +1
- Misses 12 13 +1
☔ View full report in Codecov by Sentry. |
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.
As a hack, this is okay. Does mini zinc not have better status reporting options?
Looks like there isn't
|
AFAICT these are the minizinc statuses https://minizinc-python.readthedocs.io/en/latest/api.html#minizinc.result.Status and it does not really have the level of granularity on termination statuses that MOI does |
Happy with this? Any changes? |
yes! |
Should we return MOI.TIME_LIMIT instead of OTHER_ERROR when the solver hits the preset time_limit?
Understand it's tricky to know whether the solver truly times out. Looks like the solver (chuffed) returns UNKNOWN when it hits the time limit.