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

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

回答済み

コメント

2件のコメント

  • 正式なコメント
    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?.
  • Eli Towle
    • Gurobi Staff 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

投稿コメントは受け付けていません。