git-subtree-dir: software/mza git-subtree-split: f970a59b177c13ca3dd8aaef8cc6681d83b7e813
7 lines
349 B
MiniZinc
7 lines
349 B
MiniZinc
%-----------------------------------------------------------------------------%
|
|
% Constrains the array of objects 'x' to be all different.
|
|
%-----------------------------------------------------------------------------%
|
|
|
|
predicate fzn_all_different_set(array[int] of var set of int: x) =
|
|
forall(i,j in index_set(x) where i < j) ( x[i] != x[j] );
|