this repo has no description
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(int: n, array[int] of var int: x, int: v) =
8 count(x,v) <= n;
9