5.291. nvectors
DESCRIPTION | LINKS | GRAPH |
- Origin
- Constraint
- Synonym
.
- Type
- Arguments
- Restrictions
- Purpose
Let be the number of distinct tuples of values taken by the vectors of the collection. Enforce condition to hold.
- Example
-
The constraint holds since the number of distinct tuples of values (i.e.,Β tuples and ) occurring within the collection is equal (i.e.,Β is set to ) to its third argument .
- Typical
- Symmetries
Items of are permutable.
Items of are permutable (same permutation used).
All occurrences of two distinct values of can be swapped; all occurrences of a value of can be renamed to any unused value.
- Arg. properties
Contractible wrt. when .
Extensible wrt. when .
- Reformulation
The constraint can be expressed in term of the conjunction .
- See also
specialisation: Β (replace a comparison with the number of distinct vectors by an equality with the number of distinct vectors).
- 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.291.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.291.1. Initial and final graph of the constraint
(a) (b)