• Nie Znaleziono Wyników

Enhancing predictability of schedules by task grouping (extended abstract)

N/A
N/A
Protected

Academic year: 2021

Share "Enhancing predictability of schedules by task grouping (extended abstract)"

Copied!
2
0
0

Pełen tekst

(1)

Enhancing predictability of schedules by task

grouping

1

Michel Wilson

a

Cees Witteveen

a

Bob Huisman

b a

Delft University of Technology, Dept of Software Technology

b

Nedtrain, Fleet Services – Maintenance Development

In a scheduling problem one has to determine time slots for a set of tasks (activities) to be completed, subject to time and resource constraints. An important problem in applying scheduling methods is the predictability of scheduling solutions: when encountering task execution delays, one would want to minimize recomputations and changes of the currently constructed schedule as much as possible. Two possible approaches to ensure predictability can be distinguished [3]: on-line reactive approaches and off-line or pro-active approaches.

Our paper pursues the latter approach, by coming up with a set S of schedules instead of just one schedule, such that, during execution time, the currently chosen schedule σ ∈ S can be replaced by another one σ0∈ S

such that it meets the changed problem constraints without affecting the objectives. The method is based on a transformation of the original scheduling problem, by grouping some tasks together into a new composite task. By grouping, the task ordering within a group is left unspecified in creating a schedule. Only at execution time a specific, most suitable, ordering of the original tasks making up the composite tasks is decided. This method increases the make span of the schedule, but as a result the predictability in the face of uncertainty during execution is increased as well.

1 Task grouping

The procedure of task grouping is based on the Precedence Constraint Posting approach [1] to solving the Resource Constrained Project Scheduling Problem (RCPSP). The basic precedence constraint procedure iterates over four steps: 1) compute the resource usage profile over time, using an earliest start time solution, and select a peak, i.e., a point at which the use of a resource exceeds its capacity, 2) select two (partially) concurrent tasks contributing to the selected peak, 3) decide on a sequential order for these two tasks, and add a precedence constraint to the problem enforcing this order, and finally 4) calculate updated earliest start times to create a new schedule.

Our task grouping approach involves a simple modification to the procedure above, yielding more execution-time flexibility: instead of deciding on a fixed ordering of the two selected tasks in step two, we remove the two tasks from the problem, and replace them by a grouped task, which reserves enough resources to enable any execution order of the two tasks. The grouped task can be treated as any other task, in particular, it is possible for such a task to participate in another grouping operation, such that a group task can represent a reservation of resources for any number of tasks, which can be executed in any (sequential) ordering.

To control task grouping, the heuristic used to choose the constraint direction in regular constraint posting is used. Normally, the constraint between two tasks is posted in the direction preserving the largest amount of slack between the two tasks. In our algorithm, the two tasks are grouped if the difference between the slack of both orderings is below a threshold parameter γ.

2 Experimental results

As experiment, simulated executions were performed of schedules for the well-known benchmark instances from PSPLIB [2]. In each execution, delays were inserted in some of the tasks, and to estimate the

(2)

0 10 20 30 40 10 20 30 40 50

% of tasks with a delay

% of tasks completed in time, av erage ungrouped γ = 2 γ = 4 γ = 6

(a) Increasing the number of delayed tasks. The delay per task is kept constant, at 5%.

0 10 20

5 10 25 50

% of delay inserted per delayed task

% of tasks completed in time, av erage

(b) Increasing the amount of delay of tasks. The number of delayed tasks is kept constant, at 20%.

Figure 1: Schedule predictability for various values of γ, with increasing number of delayed tasks and amount of delay. All instances of the sets j30 and j60 were simulated, and the average percentage of tasks completed at their scheduled time is shown.

predictability of the schedule it was determined how many of the tasks were completed at their expected time, according to the original schedule. Additionally, the effect on the makespan of the schedules was measured. A makespan increase is expected due to the worst case envelope of a group task, for both start times and resource usage. The experiments indeed show an increase, from 7.2% for instances with 30 tasks to 16.5% for instances with 120 tasks can be seen for γ = 2. For γ = 8 the increase is bigger, from 19.8% to 43.1%.

For the predictability, two series of tests were performed: one in which the number of delayed tasks was varied, and one in which the amount of delay in the tasks was varied. The results are presented in Figures 1a and 1b. The number of tasks which complete in time drops rapidly when increasing the number of delayed tasks, which is in line with expectations. The performance of grouping increases for larger values of γ; the cause is the larger number of groups present in the solution. If the number of delays gets large however, the gains of grouping diminish.

The amount of delay per task has a much lower effect on the predictability: longer delays do not cause additional tasks to be completed late. This shows that the schedules do not contain a lot of slack: a small delay is already enough to propagate to all tasks following the delayed tasks. Here, it can be seen that our grouping method performs well for small amounts of delay. This is in line with expectations: if a task is delayed by a large amount, a reordering of the tasks succeeding it can rarely absorb the delay.

3 Conclusions

In this paper, a novel way to create predictable schedules is presented, using grouped tasks to enable some tasks to be re-ordered during execution time, to prevent the propagation of a delay. Additionally, the executing agent gains some autonomy during execution.

Tests using simulated execution show that schedules containing grouped tasks are indeed more predictable: more tasks are completed at their scheduled time when delays are inserted. The method works best for small delays, but it still works somewhat even if a large amount of the tasks incurs a small delay.

References

[1] Amedeo Cesta, Angelo Oddi, and Stephen F Smith. Profile-based algorithms to solve multiple capacitated metric scheduling problems. In Proceedings of the Fourth International Conference on Artificial Intelligence Planning Systems, pages 214–223, 1998.

[2] Rainer Kolisch, Christoph Schwindt, and Arno Sprecher. Benchmark instances for project scheduling problems. In Handbook on Recent Advances in Project Scheduling, pages 197–212. Kluwer, 1998. [3] Nicola Policella, Amedeo Cesta, Angelo Oddi, and Stephen Smith. Solve-and-robustify: Synthesizing

partial order schedules by chaining. Journal of Scheduling, 12:299–314, 2009. 10.1007/s10951-008-0091-7.

Cytaty

Powiązane dokumenty

In this model, total assets (variable) are considered the sum of all the loan categories and the interbank loans that have been issued by the bank (stocks), adding

Komputer Monitor System pomiarowy Sterowanie Generatory Analizatory Sygnały testowe Sygnały mierzone D/A A/D Komputer Monitor System pomiarowy Sterowanie Generatory Analizatory

Parliamentary elections have brought success to 8 political parties, which managed to pass the 5% threshold at the Election Day (SMER- SD, SaS, oľano-novA, SnS, ĽSnS,

The App is able to calculate the throughput, belt width, running resistance with and without load, the tension in belt at a point, the power and an estimation of the operating cost.

ustawą Prawo o adwokaturze, dotyczy zatem wszelkich czyn- ności zawodowych wynikających z zakresu posiadanych przez adwokata uprawnień i brak jest podstaw do uznania, że w

skazanych nacjonalistów, jak również kilkuset kapłanów Kościoła greckokatolickiego (unickiego) – głównego Kościoła obozu nacjonalistycznego. Nic więc dziwnego,