this repo has no description
1include "fzn_link_set_to_booleans.mzn";
2include "fzn_link_set_to_booleans_reif.mzn";
3
4/** @group globals.channeling
5 Constrain the array of Booleans \a b to be a representation of the set \a s:
6 \p i in \a s ↔ \a b[\p i].
7
8 The index set of \a b must be a superset of the possible values of \a s.
9*/
10predicate link_set_to_booleans(var set of int: s, array[int] of var bool: b) =
11 assert(ub(s) subset index_set(b),
12 "link_set_to_booleans: the index set of b must be a superset of the possible values of s",
13 fzn_link_set_to_booleans(s,b)
14 );