-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Addingglobals channel #488
base: master
Are you sure you want to change the base?
Conversation
# Conflicts: # cpmpy/expressions/__init__.py # cpmpy/expressions/globalconstraints.py
…ngglobals-channel
…decomposed (cft total vs partial function problem for reification)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there no solver interfaces to be changed, (do none support the additional kinds of channeling constraints?)
@@ -181,7 +181,7 @@ def decompose(self): | |||
return [var1 != var2 for var1, var2 in all_pairs(self.args)], [] | |||
|
|||
def value(self): | |||
return len(set(argvals(self.args))) == len(self.args) | |||
return len(set(a.value() for a in self.args)) == len(self.args) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not argvals? We switched to argvals everywhere for consistency with the partial functions
Addition of the channel constraint for xcsp3 competition