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.

7 lines
379 B
MiniZinc

%-----------------------------------------------------------------------------%
% Requires that the array 'x' is in increasing order (duplicates are allowed).
%-----------------------------------------------------------------------------%
predicate fzn_increasing_set(array[int] of var set of int: x) =
forall(i in index_set(x) diff { min(index_set(x)) }) (x[i-1] <= x[i]);