3.7.71. Cumulative longest hole problems
A constraint that can use some filtering based on the longest closed and open hole problems Β [BeldiceanuCarlssonPoder08]. We follow the presentation from the previous paper. Before presenting the longest closed open holeΒ scheduling problems, let us first introduce some notation related to the constraint that will be used within the context of the longest closed and open hole problems.
Here, is a collection of tasks, and for a task , , and denote respectively its start, duration and height, while is the height of the resource. The constraint is equivalent to finding an assignment Without loss of generality we assume the earliest start of each task to be greater than or equal to 0. that solves the cumulative placement of of maximum height , i.e.:
where the coverage by of instant is:
We are now in position to define the longest closed and open hole problems. Given a quantity of slack (i.e.Β the difference between the available space and the total area of the tasks to place), the longest closed hole problem is to find the largest integer for which there exists a cumulative placement of a subset of tasks of maximum height , such that the resource area that is not occupied by on interval does not exceed the maximum allowed slack value :
The longest open hole problem is to find the largest integer for which there exists a cumulative placement of a subset of tasks of maximum height and an interval of length , such that the resource area that is not occupied by on does not exceed the maximum allowed slack value :
As an example, consider seven tasks of respective size , , , , , , . PartΒ (A) of FigureΒ 3.7.20 provides a cumulative placement corresponding to the longest open hole problem according to and . The longest open hole since:
The task cannot contribute since a gap of 3 cannot be filled by the unique candidate the task .
The task can also not contribute since a gap of 5 cannot be completely filled by the candidates and .
The longest close hole : it corresponds to the longest time interval on which the resource is saturated by the illustrated placement and such that one bound of the interval does not intersect any tasks.
Second, consider a task of size . PartΒ (B) of FigureΒ 3.7.20 provides a cumulative placement corresponding to the longest open hole problem according to and . The longest open hole .
Figure 3.7.20. Two examples for illustrating the longest open hole problem: (A)Β a first instance with seven tasks of size , , , , , , with a slack and a gap of 11, (B)Β a second instance with a single task of size with a slack and a gap of 11.
FigureΒ 3.7.21 provides examples of the longest closed hole when we have 15 squares of sizes and a zero slack. PartsΒ (A), (B),...,(O) respectively give a solution achieving the longest closed hole for a gap of . For comparison, FigureΒ 3.7.22 provides the same examples of the longest open hole with zero slack.