メインコンテンツへスキップ

Gurobi generating bilinear constraints for a QP model and solving it as MIP

回答済み

コメント

1件のコメント

  • Maliheh Aramon
    • Gurobi Staff

    Hi Pedro, 

    Does a quadratic objective function affect the convexity of the model?

    Yes, a quadratic objective function is not necessarily convex. For instance, the quadratic objective \(x_1^2 - x_2 ^2\) is not convex. A quadratic function in the form \(x^T Q x + c^T x + d\) is convex if and only if the \(Q\) matrix is positive semidefinite.

    Where did these bilinear constraints come from? In the original model there are only linear constraints (in continuous variables).

    The Gurobi presolve has converted the quadratic objective into constraints, this explains why there are bilinear constraints in the presolved model. Gurobi presolve has also concluded that the model is non-convex and that's why it is solved as an instance of MIQCP.  

    Best regards,
    Maliheh

    0

サインインしてコメントを残してください。