-
Notifications
You must be signed in to change notification settings - Fork 42
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
Unexpected Gurobi solve_result with "infeasible or unbounded" #243
Comments
Status "infeasible or unbounded" is a kind of AMPL does not have a separate The user's request seems to have 2 issues. First, the interpretation of "infeasible or unbounded" as The other issue is that this only happens with |
I found a Gurobi Help Center article How do I resolve the error "Model is infeasible or unbounded"? that seems to give a simpler way to distinguish infeasible from unbounded. It does still require changing a parameter, however. For a user who sometimes gets "infeasible" and sometimes "infeasible or unbounded" --- but who knows that the problem will not ever actually be unbounded --- we could advise testing for solve_result_num = 450 in addition to testing for infeasibility. |
Updated docs and solve messages with both hints (recommend The proper test is |
A user reports that when they have a result like this,
they get unexpected result values:
According to the Retrieving solutions section of the Gurobi documentation, the
solve_result_num
should be interpreted asSo it appears that the issue is with
solve_result
because Gurobi is stopping due to a valid termination condition being found, rather than due to any limit being reached.(This example gives the reported behavior when run under Windows, with this log. But the user ran under Linux and reported seeing "infeasible or unbounded" only with
option presolve 10;
instead.)The text was updated successfully, but these errors were encountered: