this repo has no description
at develop 659 B view raw
1include "at_most_int.mzn"; 2include "at_most_set.mzn"; 3 4/** @group globals.counting 5 Requires at most \a n variables in \a x to take the value \a v. 6*/ 7predicate at_most(int: n, array[int] of var int: x, int: v) = 8 at_most_int(n, x, v); 9 10/** @group globals.counting 11 Requires at most \a n variables in \a x to take the value \a v. 12*/ 13predicate at_most(int: n, array[int] of var set of int: x, set of int: v) = 14 at_most_set(n, x, v); 15 16% Synonyms for the above. 17 18predicate atmost(int: n, array[int] of var int: x, int: v) = 19 at_most_int(n, x, v); 20 21predicate atmost(int: n, array[int] of var set of int: x, set of int: v) = 22 at_most_set(n, x, v);