this repo has no description
1include "fzn_distribute.mzn";
2include "fzn_distribute_reif.mzn";
3
4/** @group globals.counting
5 Requires that \a card[\p i] is the number of occurences of \a value[\p i] in
6 \a base. The values in \a value need not be distinct.
7*/
8predicate distribute(array[int] of var int: card,
9 array[int] of var int: value,
10 array[int] of var int: base) =
11 assert(index_set(card) == index_set(value),
12 "distribute: card and value arrays must have identical index sets",
13 fzn_distribute(card, value, base)
14 );