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

how to formulate a KKT complementarity condition for second order cone constraint?

回答済み

コメント

3件のコメント

  • 正式なコメント
    Simranjit Kaur
    • Gurobi Staff
    This post is more than two 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 try Gurobot, our chatbot interface offering instant, expert-level support.
  • john zhang
    • Gurobi-versary
    • First Comment
    • First Question

    Another question is that, is it possible to get the dual variable value with respect to the second order cone constraint?

    0
  • Jaromił Najman
    • Gurobi Staff

    Hi John,

    How can I solve this issue? Should I introduce other variables and constraints? Such as tmp1 = P^2, tmp2 = Q^2, tmp3 = vl, then \lambda * (tmp1 + tmp2 - tmp3) = 0?

    You are correct. You have to introduce auxiliary variables. This is also described in the Knowledge Base article How do I model multilinear terms in Gurobi?

    Another question is that, is it possible to get the dual variable value with respect to the second order cone constraint?

    You can get dual variable values from Gurobi as long as your model is convex. You have to set the QCPDual parameter for this. If your model is non-convex, then you cannot get any dual values from Gurobi. Your complementarity conditions are non-convex, thus you cannot retrieve any dual information from Gurobi after a successful solve. We describe a way for how to obtain dual values for MIPs in the Knowledge Base article How do I retrieve the (dual) Pi values for a MIP problem? The same idea applies to non-convex continuous models.

    Best regards, 
    Jaromił

    0

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