Skip to main content

Quadratic objective function auxiliary terms result in nonconvex model?

Awaiting user input

Comments

1 comment

  • Jaromił Najman
    • Gurobi Staff Gurobi Staff

    Hi Vineet,

    Nonlinear equality constraints are always nonconvex. Thus, Gurobi requires you to set the NonConvex parameter to 2.

    I needed to introduce auxiliary variables for each of the quadratic objective terms, and corresponding quadratic equality constraints to define them.

    Why exactly do you need auxiliary variables and constraints when your original model is quadratic? If there is no option of avoiding the auxiliaries, you might think whether using \(\leq\) inequalities instead of equality constraints is valid for your case. This might make your model convex again if each inequality is convex.

    Best regards, 
    Jaromił

    0

Please sign in to leave a comment.