メインコンテンツへスキップ

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

回答済み

コメント

2件のコメント

  • Jaromił Najman
    • 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
  • 力 杨
    • Gurobi-versary
    • First Comment
    • First Question

    Thank you very much and have a great weekend.

    0

サインインしてコメントを残してください。