5.29. among_var
DESCRIPTION | LINKS | GRAPH |
- Origin
- Constraint
- Arguments
- Restrictions
- Purpose
is the number of variables of the collection that are equal to one of the variables of the collection .
- Example
-
The constraint holds since exactly 3 values of the collection of variables occurs within the collection .
- Typical
- Symmetries
Items of are permutable.
Items of are permutable.
All occurrences of two distinct values in or can be swapped; all occurrences of a value in or can be renamed to any unused value.
An occurrence of a value of that belongs to (resp. does not belong to ) can be replaced by any other value in (resp. not in ).
- Arg. properties
Functional dependency: determined by and .
Contractible wrt. when .
Contractible wrt. when .
Aggregate: , , .
- Systems
- See also
-
related: .
specialisation: Β ( replaced by within list of ).
- Keywords
constraint arguments: pure functional dependency.
constraint type: counting constraint.
- Arc input(s)
- Arc generator
-
- Arc arity
- Arc constraint(s)
- Graph property(ies)
-
- Graph class
-
- Graph model
PartsΒ (A) andΒ (B) of FigureΒ 5.29.1 respectively show the initial and final graph associated with the Example slot. Since we use the graph property, the source vertices of the final graph are stressed with a double circle. Since the final graph has only 3 sources the variables is fixed to 3.
Figure 5.29.1. Initial and final graph of the constraint
(a) (b)