Skip to main content

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

Answered

Comments

2 comments

  • john zhang
    First Comment
    Gurobi-versary
    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 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

Please sign in to leave a comment.