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

Gurobi Python: request for checking the construction of variables

回答済み

コメント

2件のコメント

  • 正式なコメント
    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.
  • Jaromił Najman
    • Gurobi Staff

    You model seems to be correct. Note that the default lower bound for continuous variables is \(0\). Thus, it might be necessary to set the lower bound of variables \(\texttt{aux11, aux13, aux15}\) to \(-1\).

    You could write the model to an LP file, insert \(x_{s,n}=0\) by hand and check why every optimization variable can indeed be \(0\).

    In part 2, you have many \(\max\) expressions not shown in your equation system. Maybe there is some issue hidden in there.

    For example you have

    C129 = MAX ( C65 , 0 )
    C241 = MAX ( C113 , C129 , 1533.1883313898 )

    with \(\texttt{C113,C129}\) being binary. Thus, you force \(\texttt{C241}\) to \(1533.188\).

    Best regards, 
    Jaromił

    0

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