- Origin
Derived from and .
- Constraint
-
- Synonym
.
- Arguments
| |
| |
- Restrictions
-
- Purpose
Consider a set of tasks described by the
collection.
The constraint enforces
for each machine of the collection the
following condition: at each point in time , the numbers
of distinct colours of the set of tasks that both overlap that
point and are assigned to machine does not exceed the
capacity of machine . A task overlaps a point if and only if
(1)ย its origin is less than or equal to , and
(2)ย its end is strictly greater than .
It also imposes for each task of
the constraint .
- Example
-
Figureย 5.61.1 shows the solution
associated with the example.
Each rectangle of the figure corresponds to a task of the
constraint.
Tasks that have their colour attribute set to 1 and 2
are respectively coloured in blue and pink.
The constraint holds since
for machineย 1 we have at most two distinct colours in parallel
(which is the maximum capacity for machineย 1),
while for machineย 2 we have no more than one single colour in parallel
(which is actually the maximum capacity for machineย 2).
- Typical
|
|
|
|
|
|
|
|
|
|
|
- Symmetries
Items of are permutable.
Items of are permutable.
can be increased.
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
Useful for scheduling problems where several machines are
available and where you have to assign each task to a specific
machine. In addition each machine can only proceed in parallel
a maximum number of tasks of distinct types.
- Reformulation
The constraint can be expressed in term of a set of reified constraints
and of constraints:
For each pair of tasks of the collection we create a variable
which is set to the colour of task if both tasks are assigned to the same machine and if task overlaps
the origin attribute of task , and to the colour of task otherwise:
If :
If :
.
-
ย ย ย
ย ย ย
ย ย ย
ย ย ย
For each task we create a variable which gives the number of distinct colours associated to
the tasks that both are assigned to the same machine as task and overlap the origin of task
( overlaps its own origin) and we impose to not exceed
the maximum number of distinct colours allowed at each instant:
.
.
- See also
assignment dimension removed:
ย ( attribute removed),
ย ( attribute removed and number of distinct replaced by sum of ).
common keyword:
,
ย (resource constraint).
related:
.
used in graph description:
.
- Keywords
characteristic of a constraint:
coloured.
constraint type:
scheduling constraint,
resource constraint,
temporal constraint.
filtering:
compulsory part.
modelling:
number of distinct values,
assignment dimension,
zero-duration task.