Skip to content

Commit

Permalink
AllDiff value fails on ints
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomSerg committed May 28, 2024
1 parent 9fb89ca commit 1abe401
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 @@ -186,7 +186,7 @@ def decompose(self):
return [var1 != var2 for var1, var2 in all_pairs(self.args)], []

def value(self):
return len(set(a.value() for a in self.args)) == len(self.args)
return len(set(argval(a) for a in self.args)) == len(self.args)

class AllDifferentExceptN(GlobalConstraint):
"""
Expand Down

0 comments on commit 1abe401

Please sign in to comment.