Skip to content

Commit

Permalink
Update globalconstraints.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimosts committed Oct 7, 2024
1 parent 82d2e71 commit 642963b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpmpy/expressions/globalconstraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ def decompose(self):
cons += [start[t] + duration[t] == end[t]]

# demand doesn't exceed capacity
lb, ub = min(s.lb for s in start), max(s.ub for s in end)
lb, ub = min(get_bounds(start)[0]), max(get_bounds(end)[1])
for t in range(lb,ub+1):
demand_at_t = 0
for job in range(len(start)):
Expand Down

0 comments on commit 642963b

Please sign in to comment.