5.26. among_low_up
DESCRIPTION | LINKS | GRAPH | AUTOMATON |
- Origin
- Constraint
- Arguments
- Restrictions
- Purpose
Between and variables of the collection are assigned a value of the collection.
- Example
-
The constraint holds since between 1 and 2 values (i.e.,Β in fact 2 values) of the collection of values belong to the set of values .
- Typical
- Symmetries
Items of are permutable.
Items of are permutable.
can be decreased to any value .
can be increased to any 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
Contractible wrt. when .
Contractible wrt. when .
Aggregate: , , , .
- Algorithm
The constraint is entailed if and only if the following two conditions hold:
The number of variables of the collection assigned a value of the collection is greater than or equal to .
The number of variables of the collection that can potentially be assigned a value of the collection is less than or equal to .
- Used in
- See also
assignment dimension added: Β (assignment dimension corresponding to intervals added).
generalisation: Β ( replaced by ), Β (full sequence replaced by maximal sequences of non-zeros).
- Keywords
characteristic of a constraint: automaton, automaton with counters.
constraint network structure: alpha-acyclic constraint network(2).
constraint type: value constraint, counting constraint.
- Cond. implications
- Arc input(s)
- Arc generator
-
- Arc arity
- Arc constraint(s)
- Graph property(ies)
-
- Graph class
-
- Graph model
Each arc constraint of the final graph corresponds to the fact that a variable is assigned to a value that belong to the collection. The two graph properties restrict the total number of arcs to the interval .
PartsΒ (A) andΒ (B) of FigureΒ 5.26.1 respectively show the initial and final graph associated with the Example slot. Since we use the graph property, the arcs of the final graph are stressed in bold.
Figure 5.26.1. Initial and final graph of the constraint
(a) (b)
- Automaton
FigureΒ 5.26.2 depicts the automaton associated with the constraint. To each variable of the collection corresponds a 0-1 signature variable . The following signature constraint links and : . The automaton counts the number of variables of the collection that take their value in and finally checks that this number is within the interval .
Figure 5.26.2. Automaton of the constraint
Figure 5.26.3. Hypergraph of the reformulation corresponding to the automaton (with one counter) of the constraint: since all states variables are fixed to the unique state of the automaton, the transitions constraints share only the counter variable and the constraint network is Berge-acyclic