Skip to main content

Writing max and min in constratint

Answered

Comments

1 comment

  • Mario Ruthmair
    Gurobi Staff 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

Please sign in to leave a comment.