Skip to content

Commit

Permalink
better condition
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnaceBleukx committed Nov 14, 2023
1 parent 75de08c commit d91e987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpmpy/solvers/minizinc.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ def zero_based(array):
elif expr.name == "cumulative":
start, dur, end, _, _ = expr.args
self += [s + d == e for s,d,e in zip(start,dur,end)]
if not isinstance(args_str[0], list):
if len(start) == 1:
assert len(start) == 1
format_str = "cumulative([{}],[{}],[{}],{})"
else:
Expand Down

0 comments on commit d91e987

Please sign in to comment.