-
Notifications
You must be signed in to change notification settings - Fork 81
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
getsolution() returns infeasible solution for an unbounded problem #80
Comments
This is likely a bug with Gurobi that should be reported upstream |
I would check on the Gurobi documentation to see if this is expected behavior or not. |
Gurobi replied:
In the status code doc, they now say (I am not sure this note was there before, maybe they added it recently)
What is the definition of MathProgBase for |
MathProgBase will certainly not be making any guarantees that the solvers are unable to satisfy. If the definitions are inconsistent then we should update the MPB definition. |
I have been thinking about a new MPB status system (Following the discussion on MOSEK/Mosek.jl#101).
it may do additional computation to determine this, e.g. if Gurobi says Unbounded, we would set the objective to 0 et reoptimize to determine whether it is feasible, what to do is solver dependent.
The solver should be lazy so in our case of Gurobi/Unbounded, if we ask I am still a little bit unsure about What do you think ? I agree that this asks more to each solver but this kind of thing cannot be put somewhere else than in the solver package since these are solver specific. |
I'm not in favor of imposing a requirement in MPB that requires most LP solvers to do extra work in the unbounded case. That could be something that sits on top of MPB, perhaps. |
On this problem,
calling
optimize!
returns:Unbounded
and thengetsolution
gives[6.93747e-310,0.0]
which is not feasible sincex = 6.93747e-310 < 1
(I am using Gurobi 6.51).However, it seems that in Gurobi
getsolution
gives a feasible solution even for unbounded problem since for the following problemoptimize!
returns:Unbounded
and thengetsolution
returns a feasible solution.See JuliaOpt/MathProgBase.jl#144
The text was updated successfully, but these errors were encountered: