I’m getting the above error when using Gurobi to solve an LP and then querying the value of a constraint. The LP has been solved such that
@assert(termination_status(𝓜) == MOI.OPTIMAL) passes. Unfortunately, I haven’t been able to replicate the problem with a small test case yet, so this is more of a “has anyone else seen this?” than a helpful report.
Code that doesn’t exhibit the problem is:
using JuMP, Gurobi M = Model(Gurobi.Optimizer) @variable M a >= 0 @variable M b >= 0 @constraint M c a + b <= 1 @constraint M d a + b <= 1 @constraint M e a + b <= 2 @objective M Max a + 2 * b optimize!(M) value(M[:c]) value(M[:d]) value(M[:e])
Where I was guessing that perhaps it would have a problem with one of the constraints, but it doesn’t. The model causing the problem works with GLPK, and, until a recent change that I can’t pin down, seemed to work with Gurobi.
Sorry for the vague report, but, any ideas?