5.207. max_n
| DESCRIPTION | LINKS | GRAPH |
- Origin
- Constraint
- Arguments
- Restrictions
- Purpose
is the maximum value of rank (i.e.,Β the largest distinct value) of the collection of domain variables . Sinks have a rank of 0.
- Example
-
The constraint holds since its first argument is fixed to the second (i.e.,Β ) largest distinct value of the collection .
- Symmetries
Items of are permutable.
One and the same constant can be added to as well as to the attribute of all items of .
- Algorithm
- Reformulation
By associating to each variable of the collection a rank variable with the reified constraint , and by creating for each pair of variables the reified constraints
Β Β Β ,
Β Β Β ,
Β Β Β ,
one can reformulate the constraint in term of reified constraints.
- See also
-
generalisation: Β (absolute maximum replaced by maximum or order ).
- Keywords
- Arc input(s)
- Arc generator
-
- Arc arity
- Arc constraint(s)
- Graph property(ies)
-
- Graph model
PartsΒ (A) andΒ (B) of FigureΒ 5.207.1 respectively show the initial and final graph associated with the Example slot. Since we use the graph property, the vertex of rank 1 (without considering the loops) of the final graph is outlined with a thick circle.
Figure 5.207.1. Initial and final graph of the constraint


(a) (b)