Skip to main content

constraint the future state of a decision variable

Answered

Comments

1 comment

  • Maliheh Aramon
    • Gurobi Staff

    Hi Carlos, 

    This is a Python error and it happens when you try to add an integer to a string.

    Since you are using the str.format() method, the error should not be related to the constraint names. 

    What are the values of the set \(\texttt{T}\)? If this set includes string values, \(\texttt{t+1}\) in \(\texttt{v_r[(i,t+1)]}\) can cause the error. 

    In case you need more help, please post a minimum working example.

    Best regards,

    Maliheh

    0

Please sign in to leave a comment.