7 lines
350 B
MiniZinc
7 lines
350 B
MiniZinc
%-----------------------------------------------------------------------------%
|
|
% Requires that 'y' occurs in the array or set 'x'.
|
|
%-----------------------------------------------------------------------------%
|
|
|
|
predicate fzn_member_bool_reif(array[int] of var bool: x, var bool: y, var bool: b) =
|
|
b <-> exists(i in index_set(x)) ( x[i] == y );
|