Skip to content

Commit

Permalink
cumulative docstring fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimosts committed May 27, 2024
1 parent be8b1ea commit 17685a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cpmpy/expressions/globalconstraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,8 @@ def __repr__(self):
class Cumulative(GlobalConstraint):
"""
Global cumulative constraint. Used for resource aware scheduling.
Ensures no overlap between tasks and never exceeding the capacity of the resource
Ensures that the capacity of the resource is never exceeded
Equivalent to noOverlap when demand and capacity are equal to 1
Supports both varying demand across tasks or equal demand for all jobs
"""
def __init__(self, start, duration, end, demand, capacity):
Expand Down

0 comments on commit 17685a7

Please sign in to comment.