5.42. atmost_nvector
DESCRIPTION | LINKS | GRAPH |
- Origin
- Constraint
- Type
- Arguments
- Restrictions
- Purpose
The number of distinct tuples of values taken by the vectors of the collection is less than or equal to . Two tuples of values and are if and only if there exist an integer such that .
- Example
-
The constraint holds since the collection involves at most 3 distinct tuples of values (i.e.,Β in fact the 2 distinct tuples and ).
- Typical
- Symmetries
can be increased.
Items of are permutable.
Items of are permutable (same permutation used).
All occurrences of two distinct tuples of values of can be swapped; all occurrences of a tuple of values of can be renamed to any unused tuple of values.
- Arg. properties
Contractible wrt. .
- Reformulation
By introducing an extra variable , the constraint can be expressed in term of an constraint and of an inequality constraint .
- See also
-
implied by: Β ( replaced by ), .
- Keywords
characteristic of a constraint: vector.
constraint type: counting constraint, value partitioning constraint.
final graph structure: strongly connected component, equivalence.
- Arc input(s)
- Arc generator
-
- Arc arity
- Arc constraint(s)
- Graph property(ies)
-
- Graph class
-
- Graph model
PartsΒ (A) andΒ (B) of FigureΒ 5.42.1 respectively show the initial and final graph associated with the Example slot. Since we use the graph property we show the different strongly connected components of the final graph. Each strongly connected component corresponds to a tuple of values that is assigned to some vectors of the collection. The 2 following tuple of values and are used by the vectors of the collection.
Figure 5.42.1. Initial and final graph of the constraint
(a) (b)