Skip to main content

How to assign other variables based on the range of decision variables

Answered

Comments

2 comments

  • Jaromił Najman
    Gurobi Staff Gurobi Staff

    We discuss how to model conditional statements in the Knowledge Base article How do I model conditional statements in Gurobi? Please note that in your case, since you do not need a strict inequality, you do not have to introduce a positive threshold \(\epsilon\).

    In addition to the conditional statements \(ta \leq t\) and \(t \leq ta+b\) you will have to use the addGenConstrAnd method to model the "and" relation.

    0
  • 力 杨
    First Comment
    First Question

    Thank you very much and have a great weekend.

    0

Please sign in to leave a comment.