Skip to main content

Conditional Constraints if-esle on decission variable

Answered

Comments

2 comments

  • Official comment
    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 why not try our AI Gurobot?.
  • Matthias Miltenberger
    • Gurobi Staff

    Hi Rahul,

    This condition does not make sense to me:

    elif 1 < d[t] > 1

    What do you want to express here? Is this true for all values that are not exactly 1? Tying a discrete decision onto the precise value of a continuous variable is very unusual.

    Cheers,
    Matthias

    0

Post is closed for comments.