5.155. exactly
DESCRIPTION | LINKS | GRAPH | AUTOMATON |
- Origin
- Constraint
- Synonym
.
- Arguments
- Restrictions
- Purpose
Exactly variables of the collection are assigned value .
- Example
-
The constraint holds since exactly variables of the collection are assigned value .
- Typical
- Symmetries
Items of are permutable.
An occurrence of a value of that is different from can be replaced by any other value that is also different from .
- Arg. properties
Functional dependency: determined by and .
Aggregate: , , .
- Systems
occurence in Choco, count in Gecode, exactly in Gecode, count in JaCoP, exactly in MiniZinc, count in SICStus.
- See also
generalisation: Β ( replaced by and replaced by of ).
implies: Β ( replaced by ), Β ( replaced by ).
- Keywords
characteristic of a constraint: automaton, automaton with counters.
constraint arguments: reverse of a constraint, pure functional dependency.
constraint network structure: alpha-acyclic constraint network(2).
constraint type: value constraint, counting constraint.
- Arc input(s)
- Arc generator
-
- Arc arity
- Arc constraint(s)
- Graph property(ies)
-
- Graph model
Since each arc constraint involves only one vertex ( is fixed), we employ the arc generator in order to produce a graph with a single loop on each vertex.
PartsΒ (A) andΒ (B) of FigureΒ 5.155.1 respectively show the initial and final graph associated with the Example slot. Since we use the graph property, the loops of the final graph are stressed in bold. The constraint holds since exactly two variables are assigned value 4.
Figure 5.155.1. Initial and final graph of the constraint
(a) (b)
- Automaton
FigureΒ 5.155.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 : .
Figure 5.155.2. Automaton (with one counter) of the constraint and its glue matrix
Figure 5.155.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