Skip to content

AllDifferentExceptN and AllDifferentExcept0: fix naming and solver interfaces - #1122

Merged
WoutPiessens merged 4 commits into
masterfrom
alldifferentexcept
Oct 13, 2026
Merged

WoutPiessens merged 4 commits into
masterfrom
alldifferentexcept

Conversation

@WoutPiessens

Copy link
Copy Markdown
Collaborator

This PR addresses existing issues with the AllDifferentExceptN and AllDifferentExcept0 globals. In this implementation, AllDifferentExcept0 inherits from AllDifferentExceptN, while having its own identifier, "alldifferent_except_0". This allows us to correctly distinguish the two globals when mapping to solver interfaces.

@IgnaceBleukx IgnaceBleukx left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Two small comments, not blocking

Comment thread cpmpy/expressions/globalconstraints.py Outdated
Comment thread cpmpy/solvers/choco.py
@WoutPiessens
WoutPiessens merged commit 9b8c4ce into master Oct 13, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants