Querying model for solution availability #33
Answered
by
metab0t
ryanjoneil
asked this question in
Q&A
-
If I set a time limit on the solver, once it terminates I would like to know whether or not a feasible solution is available. If a solution is available, then calls to What is the best way to determine this? Currently I am checking the following condition: status = m.get_model_attribute(poi.ModelAttribute.PrimalStatus)
if status == poi.ResultStatusCode.FEASIBLE_POINT:
# we have a solution |
Beta Was this translation helpful? Give feedback.
Answered by
metab0t
Dec 21, 2024
Replies: 1 comment
-
You are right, checking the status is the correct way. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ryanjoneil
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
You are right, checking the status is the correct way.