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.

9 lines
341 B
MiniZinc

predicate fzn_distribute(array[int] of var int: card,
array[int] of var int: value,
array[int] of var int: base) =
forall (i in index_set(card)) (
card[i] == sum(j in index_set(base)) (
bool2int(value[i] = base[j])
)
);