Skip to main content

Retrieve dual optimizers?

Answered

Comments

2 comments

  • Official comment
    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.
  • Jaromił Najman
    • Gurobi Staff

    Hi Xuan,

    You can set the parameter QCPDual to 1. This will make Gurobi compute the dual multipliers for continuous convex QCPs by solving the corresponding KKT problem. This would be the \(\lambda\) and \(\nu\) from slide 2 in the PDF file you linked.

    If your model is non-convex and/or has discrete variables, then no duals will be computed. In this case, you could fix some variables participating in nonconvex terms and/or fix all discrete variables to get a convex QCP.

    Best regards, 
    Jaromił

    0

Post is closed for comments.