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

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