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

Inncorrect output?

回答済み

コメント

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.
  • Marit Solheim Thériautl
    • Gurobi-versary
    • First Comment
    • First Question

    I am also struggling to retrieve the reduced costs of the different variables. How would I proceed with this? I have tried the following:

    f.getAttr(x.RC)

    But then I get the error: 'tupledict' object has no attribute 'RC'

     

    0
  • Jaromił Najman
    • Gurobi Staff

    Variable \(x_2\) is set to \(0\) because your aux variable is forced to take the value of \(60\), because \(y_{3,4}=1\). 

    As stated in the documentation, reduced costs are only available for convex continuous models.

    Best regards, 
    Jaromił

    0

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