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

Gurobi Python: request for checking the construction of variables

回答済み

コメント

1件のコメント

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

サインインしてコメントを残してください。