Skip to main content

Variable lb and ub active based on a binary 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?.
  • Richard Oberdieck
    • Gurobi Staff

    As you can see in the documentation, you cannot simply add a constraint `a \leq x \leq b` is not permissible. Therefore you need to split the constraint you are describing into two.

     

    In addition, note that these are not bounds in the strict sense, as they feature variables in the right-hand side.

    0

Post is closed for comments.