error handling bilinear terms in Gurobi 9
Answeredhi
When I try to solve a model with bilinear terms in the constraints, in the form X*Y where X is sign-free and Y in bounded, I get the error below:
Gurobi 9.0.0: NonConvex 2
Gurobi 9.0.0: Gurobi cannot handle quadratic equality constraints.
it should solve this model, but it does not.
-
Official comment
This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?. -
Hi,
How are you using Gurobi? This does not look as though the error message is coming directly from Gurobi.
Are you setting NonConvex=2?
Silke
0 -
I am a user of AMPL and solve models with Gurobi. here is a very simple mode, through I get this error for a sophisticated model as well.
constraint C1 must be "<= " otherwise it cannot handle!
var x ; var y;
var u >= 0; var v >= 0;
var r; var s; var t;
minimize obj: u+v ;
s.t. C1: r^2+s^2 = u^2;
s.t. C2_1: t <= v;
s.t. C2_2: t >= -v;
s.t. C3: x+2 = r;
s.t. C4: y+1 = s;s.t. C5: x+y = t;0 -
This was cross-posted to the AMPL forum, where the issues were resolved.
0
Post is closed for comments.
Comments
4 comments