Skip to main content

For the same model, when the range of parameters is larger, the minimum value of the target is also larger

Awaiting user input


1 comment

  • Maliheh Aramon
    Gurobi Staff Gurobi Staff


    When F=set(range(1, 2), the result CC is 1, but when F=set(range(1, 3), the result CC is 2, if the range of F is further expanded, then CC does not change, and it is still 2

    I am not sure I understand your question. What do you expect to see as a value for the variable \(\texttt{CC}\) as the range of \(\texttt{F}\) increases? I am not sure why there should be a correlation between the range of \(F\) and the optimal value of variable \(\texttt{CC}\). What does \(\texttt{I[r, (i,j), f]}\) represent in your code snippet? Is it a variable or an input data? What values can it take?

    • If \(\texttt{I[r, (i,j), f]}\) is a non-negative decision variable, the optimal solution might be the one where these variables are assigned to 0 and then increasing the range of \(\texttt{F}\) would not have an impact on the value of \(\texttt{CC}\).

    Best regards,



Please sign in to leave a comment.