Skip to main content

constraint the future state of a decision variable

Answered

Comments

2 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff
    This post is more than two 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.
  • 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

Post is closed for comments.