- Origin
Derived from .
- Constraint
-
- Synonym
.
- Type
| |
- Arguments
| |
| |
- Restrictions
|
|
|
|
|
|
|
|
|
|
- Purpose
In order to define the meaning of the constraint,
we first introduce the notions of stretch and span.
Let be the number of variables of the collection .
Let be
consecutive variables of the collection of variables
such that the following conditions apply:
All variables take their values in the same partition
of the collection
(i.e.,Β such that ),
or is different from ,
or is different from .
We call such a set of variables a stretch.
The span of the stretch is equal to ,
while the value of the stretch is . We now define the
condition enforced by the constraint.
Each item
of the collection enforces the minimum value as well as the
maximum value for the span of a stretch
of value over consecutive variables of the collection.
Note that:
Having an item
with strictly greater than 0 does not mean that values of
should be assigned to one of the variables of collection .
It rather means that, when a value of is used, all stretches
of value must have a span that belong to interval .
A variable of the collection may be assigned a value that is not defined
in the attribute of the collection.
- Example
-
The constraint holds since the
sequence contains two stretches
, and respectively verifying the
following conditions:
The span of the first stretch is located within interval
(i.e.,Β the limit associated with item ).
The span of the second stretch is located within interval
(i.e.,Β the limit associated with item ).
- Typical
|
|
|
|
|
|
- Symmetries
Items of can be reversed.
Items of are permutable.
Items of are permutable.
All occurrences of two distinct tuples of values in or can be swapped; all occurrences of a tuple of values in or can be renamed to any unused tuple of values.
- See also
common keyword:
Β (sliding sequence constraint).
specialisation:
Β ( replaced by ).
- Keywords
characteristic of a constraint:
automaton,
automaton without counters,
reified automaton constraint,
partition.
combinatorial object:
sequence.
constraint network structure:
Berge-acyclic constraint network.
constraint type:
timetabling constraint,
sliding sequence constraint.
filtering:
arc-consistency.
final graph structure:
consecutive loops are connected.