This repository has been archived on 2025-03-06. You can view files and clone it, but cannot push or open issues or pull requests.
dekker-phd-thesis/assets/listing/half_alldiff.mzn
Jip J. Dekker c4e8296e74
Work on the reification chapter
- Comments by Peter
- Additional reference
- Listings
2021-07-20 18:40:23 +10:00

5 lines
113 B
MiniZinc

predicate all_different(array[int] of var int: x) =
forall(i,j in index_set(x) where i < j)(
x[i] != x[j]
);