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.
on-restart-benchmarks/software/mza/share/minizinc/std/fzn_partition_set_reif.mzn

7 lines
284 B
MiniZinc

include "all_disjoint.mzn";
predicate fzn_partition_set_reif(array[int] of var set of int: S,
set of int: universe,
var bool: b) =
b <-> ( all_disjoint(S) /\ universe == array_union(i in index_set(S)) ( S[i] ) );