Skip to content

Commit

Permalink
False not removed by linearize
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnaceBleukx committed Sep 14, 2023
1 parent eedd128 commit 501a9f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpmpy/transformations/linearize.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def linearize_constraint(lst_of_expr, supported={"sum","wsum"}, reified=False):

newlist += constraints

elif isinstance(cpm_expr, DirectConstraint):
elif isinstance(cpm_expr, (DirectConstraint, BoolVal)):
newlist.append(cpm_expr)

elif isinstance(cpm_expr, GlobalConstraint) and cpm_expr.name not in supported:
Expand Down

0 comments on commit 501a9f8

Please sign in to comment.