1
0
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.
on-restart-benchmarks/software/mza/share/minizinc/std/fzn_alldifferent_except_0.mzn

5 lines
173 B
MiniZinc

predicate fzn_alldifferent_except_0(array[int] of var int: vs) =
forall(i, j in index_set(vs) where i < j) (
(vs[i] != 0 /\ vs[j] != 0) -> vs[i] != vs[j]
);