However, the following Python example has the Status attribute returning code 10022, which is an error code for non-PSD constraints
from gurobipy import *
m = Model("qcp")
x = m.addVar()
u0 = m.addVar()
u1 = m.addVar()
y = m.addVar(vtype=GRB.BINARY)
m.update()
m.addConstr(x == 10.0 * y)
u_data = [0.5, 0.5]
m.addConstr( u_data[0]**2 - u_data[0]*u0 + u0*u0 +
u_data[1]**2 - u_data[1]*u1 + u1*u1 +
y >= 1)
m.optimize()
print m.status
(I experienced the same through the Julia/C interface).
This broke the Gurobi.jl interface because it didn't anticipate the possibility of other codes.
My question is, are we misunderstanding something, or is the documentation out-of-date? In either case, is there a known subset of codes that can be returned?
Cheers,
Iain Dunning
MIT ORC