Skip to main content

Gurobi error 10020: Constraint Q not PSD (diagonal adjustment of 5.6e+01 would be required)

Answered

Comments

2 comments

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

    Hi Christian,

    If \( Q \) is positive semidefinite, then the constraint \( x^\top Q x + c^\top x \leq b \) is convex, but the constraint \( x^\top Q x + c^\top x \geq b \) is not (in general). A simple example of this can be found in \( \mathbb{R}^2 \): the set \( \{ (x, y) : y^2 \leq x \} \) is convex, but the set \( \{ (x,y) : y^2 \geq x \} \) is not.

    Nonetheless, Gurobi 9.0 is able to solve problems with non-convex constraints and objectives. To enable this, set the NonConvex parameter to 2.

    I hope this helps. Thanks!

    Eli

    1

Post is closed for comments.