this repo has no description
at develop 365 B view raw
1include "count_fn.mzn"; 2 3%-----------------------------------------------------------------------------% 4% Requires at most 'n' variables in 'x' to take the value 'v'. 5%-----------------------------------------------------------------------------% 6 7predicate fzn_at_most_int_reif(int: n, array[int] of var int: x, int: v, var bool: b) = 8 b <-> count(x,v) <= n; 9