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

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

回答済み

コメント

3件のコメント

  • 正式なコメント
    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.
  • 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

投稿コメントは受け付けていません。