-
Notifications
You must be signed in to change notification settings - Fork 80
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
Error when retrieving the conflict status of a feasible MIP model #307
Comments
We could arguably return something other than But what do you expect to happen? There is no IIS. The model is feasible. |
Since the IIS is a set it should be empty if the model is feasible. In my LP example you could actually query the status of each constraint for t in JuMP.list_of_constraint_types(m)
for c in JuMP.all_constraints(m, t...)
if MOI.get.(m, Gurobi.ConstraintConflictStatus(), c)
println(c)
end
end
end
and get back |
Gurobi cannot compute the IIS on a feasible model. julia> Gurobi.computeIIS(backend(m).optimizer.model.inner)
Found heuristic solution: objective -0.0000000
Explored 0 nodes (0 simplex iterations) in 0.00 seconds
Thread count was 1 (of 8 available processors)
Solution count 1: -0
Optimal solution found (tolerance 1.00e-04)
Best objective -0.000000000000e+00, best bound -0.000000000000e+00, gap 0.0000%
IIS runtime: 0.00 seconds
ERROR: Gurobi.GurobiError(10015, "Cannot compute IIS on a feasible model") The current behavior comes from the following chain of events
You could argue that computing the IIS on a feasible model should not delete the cached solution, but that's an upstream issue. Calling |
My point is, that the behaviour should be the same - regarding LP and MIP. |
See #308. We now throw an error in both cases.
Sure. But the underlying C library does not have the same behavior. |
Consider the following LP example:
It is feasible and I get:
But if I have a MIP problem:
I get something different:
This might actually be a problem with
Gurobi.jl
.The text was updated successfully, but these errors were encountered: