Skip to main content

error handling bilinear terms in Gurobi 9

Answered

Comments

4 comments

  • Official comment
    Simranjit Kaur
    Gurobi Staff Gurobi Staff
    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?.
  • 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
    Gurobi-versary
    Collaborator

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

    0

Post is closed for comments.