Skip to content

AllDifferentExceptN mapped to MiniZinc - #1108

Closed
WoutPiessens wants to merge 1 commit into
masterfrom
minizinc-alldifferentexceptn
Closed

WoutPiessens wants to merge 1 commit into
masterfrom
minizinc-alldifferentexceptn

Conversation

@WoutPiessens

@WoutPiessens WoutPiessens commented Sep 29, 2026 •

Copy link
Copy Markdown
Collaborator

The CPMpy global AllDifferentExceptN was not yet mapped to MiniZinc: this PR addresses that. There is also no need to have a separate case for AllDifferentExcept0, since it inherits from AllDifferentExceptN (in fact, the name "alldifferent_except0" is no longer used).

alldifferent_except(xs, except) is deprecated in MiniZinc, however, if we want to support older versions we have to use it instead of alldifferent(xs, except).

@WoutPiessens WoutPiessens added the simple to review Simple change to review, e.g., a oneliner. label Sep 30, 2026
@WoutPiessens

Copy link
Copy Markdown
Collaborator Author

Closed since AllDifferentExceptN / AllDifferentExcept0 naming and mapping will be addressed in a different PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

simple to review Simple change to review, e.g., a oneliner.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant