Skip to main content

Writing max and min in constratint

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 try Gurobot, our chatbot interface offering instant, expert-level support.
  • Mario Ruthmair
    • Gurobi Staff

    Hi Ashrafur,

    The lower and upper bounds to variable L(r,i) are basically defined by constants (vehicle capacity Q(r) and customer demand q(i)), right? So the min and max operators can be applied in a preprocessing step that is done before building the model.
    Then, you just have two constant values that you can use in the definition of the variable as lower and upper bound.

    Best regards,
    Mario

    0

Post is closed for comments.