Skip to main content

Constraints in Gurobi

Answered

Comments

1 comment

  • Riley Clement
    • Gurobi Staff

    Hi Shahrzad,

    Your term variable is currently being assigned the following (which is not a constraint, as discussed on another post):

    \[\sum_{demand=0}^{9}\sum_{m=1}^{41}b_{O+, 1, m, demand, t}weight_m\]

    Also note you can set M = range(1, 42) which is a bit cleaner.  Hope this helps.

    - Riley

    0

Please sign in to leave a comment.