git-subtree-dir: software/mza git-subtree-split: f970a59b177c13ca3dd8aaef8cc6681d83b7e813
11 lines
461 B
MiniZinc
11 lines
461 B
MiniZinc
predicate fzn_global_cardinality_low_up_reif(array[int] of var int: x,
|
|
array[int] of int: cover,
|
|
array[int] of int: lbound,
|
|
array[int] of int: ubound,
|
|
var bool: b) =
|
|
b <->
|
|
forall(i in index_set(cover)) (
|
|
sum(j in index_set(x)) ( bool2int(x[j] = cover[i]) )
|
|
in lbound[i]..ubound[i]
|
|
);
|