git-subtree-dir: software/minizinc git-subtree-split: 4f10c82056ffcb1041d7ffef29d77a7eef92cf76
14 lines
395 B
MiniZinc
14 lines
395 B
MiniZinc
/** @group globals Constrains \a m to be the maximum of the values in \a x.
|
|
|
|
Assumptions: |\a x| > 0.
|
|
*/
|
|
predicate maximum(var int: m, array[int] of var int: x) =
|
|
array_int_maximum(m, x);
|
|
|
|
/** @group globals Constrains \a m to be the maximum of the values in \a x.
|
|
|
|
Assumptions: |\a x| > 0.
|
|
*/
|
|
predicate maximum(var float: m, array[int] of var float: x) =
|
|
array_float_maximum(m, x);
|