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
361 B
MiniZinc

%-----------------------------------------------------------------------------%
% Requires that 'y' occurs in the array of set 'x'.
%-----------------------------------------------------------------------------%
predicate fzn_member_set_reif(array[int] of var set of int: x, var set of int: y, var bool: b) =
b <-> exists(i in index_set(x)) ( x[i] == y );