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

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