Skip to main content

error handling bilinear terms in Gurobi 9

Answered

Comments

3 comments

  • Silke Horn
    Gurobi Staff Gurobi Staff

    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
  • Hossein Haghighat
    Gurobi-versary
    First Comment
    First Question

    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
  • Robert Fourer
    Collaborator
    Gurobi-versary

    This was cross-posted to the AMPL forum, where the issues were resolved.

    0

Please sign in to leave a comment.