5.369. soft_used_by_var
DESCRIPTION | LINKS | GRAPH |
- Origin
- Constraint
- Synonym
.
- Arguments
- Restrictions
- Purpose
is the minimum number of values to change in the and collections so that all the values of the variables of collection are used by the variables of collection .
- Example
-
As illustrated by FigureΒ 5.369.1, there is a correspondence between two pairs of values of the collections and . Consequently, we must unset at least items (4 is the number of items of the collection). The constraint holds since its first argument is set to .
Figure 5.369.1. Illustration of the partial correspondence between the items of the and of the collections of the Example slot, i.e., items of the or of the collections need to be changed in order to cover all elements of
- 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.
- Usage
- Algorithm
A filtering algorithm achieving arc-consistency is described inΒ [Cymer12], [CymerPhD13].
- See also
- Keywords
constraint arguments: constraint between two collections of variables.
constraint type: soft constraint, relaxation, variable-based violation measure.
- Arc input(s)
- Arc generator
-
- Arc arity
- Arc constraint(s)
- Graph property(ies)
-
- Graph model
PartsΒ (A) andΒ (B) of FigureΒ 5.369.2 respectively show the initial and final graph associated with the Example slot. Since we use the graph property, the source and sink vertices of the final graph are stressed with a double circle. The constraint holds since the cost 2 corresponds to the difference between the number of variables of and the sum over the different connected components of the minimum number of sources and sinks.
Figure 5.369.2. Initial and final graph of the constraint
(a) (b)