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

Can't get Pi (shadow prices) of a continuos model.

回答済み

コメント

3件のコメント

  • 正式なコメント
    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 try Gurobot, our chatbot interface offering instant, expert-level support.
  • Gwyneth Butera
    • Gurobi Staff
    • Pi values are only available for convex, continuous problems.  
    • If you are solving a QCP, there are a couple of extra steps to get your duals.  To get the duals of linear constraints, set the QCPDual parameter is set to 1.  To get the duals for quadratic constraints, you will want to use QCPi attribute rather than the Pi attribute.

    If this doesn't help, can you tell us a bit more about your model and how you are trying to access Pi values?

    Gwyneth

    0
  • Ilija Dukovski
    • Gurobi-versary
    • First Comment
    • First Question

    Thanks for your help. That's probably the problem. Most likely my solution is not unique, and I don't get Pis in that case. I will try secondary optimization to make the problem convex.

    Thanks,

     

    0

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