Beruflich Dokumente
Kultur Dokumente
Scheduling
Nysret Musliu
Technische Universitat Wien
Karlsplatz 13, 1040 Wien, Austria
Email: musliu@dbai.tuwien.ac.at
Abstract Rotating workforce scheduling is a typical constraint satisfaction problem which appears in a broad range of
work places (e.g. industrial plants). Solving this problem is of a
high practical relevance. In this paper we consider the extension
of existing tabu search implementation for this problem. We
propose the combination of tabu search with random walk and
min conflicts strategy to improve the performance of the current
implementation. Computational results for benchmark examples
in literature and other real life examples show that combination
of tabu search with random walk and min conflicts strategy
improves the performance of tabu search for this problem.
I. I NTRODUCTION
Workforce scheduling, in general, includes sub-problems
which appear in many spheres of life as in industrial plants,
hospitals, public transport, airlines companies, universities etc.
In Table I a typical representation of workforce schedules
is presented.This schedule describes explicitly the working
schedule of 9 employees during one week. The emplyees
work in three shifts: day shift(D), afternoon shift(A) and night
shift(N). The first employee works from Monday until Friday
in a day shift (D) and during Saturday and Sunday has daysoff. The second employee has a day-off on Monday and works
in a day shift during the rest of the week. Further, the last
employee works from Monday until Wednesday in night shifts
(N), on Thursday and Friday has days-off, and on Saturday
and Sunday works in the day shift. Each row of this table
represents the weekly schedule of one employee.
TABLE I
A
EMPLOYEES
Employee/day
Mon
Tue
Wed
Thu
Fri
Sat
Sun
There are two main variants of workforce schedules: rotating (or cyclic) workforce schedules and non-cyclic workforce
SEARCH STRATEGIES
for the next iteration, basic principles of the tabu search technique were used, where the experiments with two variants of
solutions tabu were performed. The proposed approach is used
successfully for solving the rotating workforce scheduling
problems, but the whole exploration of neighborhood during
each iteration is very much time consuming and the approach
is not enough efficient for large classes of problems.
In this paper we propose a combination of tabu search with
random walk and min conflicts technique. The combination of
tabu search with a random walk is described with procedure
below:
Tabu Search with RandomWALK
For Each Iteration
With probability p pick randomly the cell which is
in conflict. Pick in the same column another cell
randomly and swap the contents of two selected cells
With probability 1 p, follow the tabu search
algorithm
The random walk strategy in our case picks with probability
p, first randomly one cell which is appears in some violated
constraint (conflict). The content of this cell is swapped with
the content of other cell which is selected randomly in the
same column. As described later the solutions during each
iteration fulfill always the workforce requirements. This is
the reason why we allow the swap of contents of cells only
inside of one column. We have also experimented with the
variant in which the two cells are picked randomly, without the
restriction that the first cell appears in some conflict (random
noise strategy ([23])).
We consider also combination of tabu search with minconflicts strategy. The procedure is given below:
Tabu Search and min conflicts
For Each Iteration
With probability p, apply standard min conflicts
strategy
With probability 1 p, follow the tabu search
algorithm
The min-conflict strategy for this problem works as follows.
Randomly a cell in schedule (variable) which is in a conflict
is picked. Further, all solutions are generated which can be
obtained by swapping the content of selected cell and other
cells in the same column. From the generated neighborhood
the solution which minimizes number of conflicts is selected
for the next iteration. Note that there is a small difference
compare to pure min conflicts heuristic due to the specifics
of this problem. First, in our case not only one variable in
conflict changes the value, but two variables (which represents
schedule cells in the same column) exchange their contents.
Second, with our procedure also a worst solution can be
accepted for the next iteration.
Further, we describe other relevant features for the local
Fitness =
N
W
X
P 1 Distance(WBi , WorkBRange) +
i=1
ND
X
P 2 Distance(DOBi , DayOffBRange) +
i=1
N Sj
N umOf
Shif
ts
X
X
j=1
P 3 Distance(SBij , ShiftSeqRangej )) +
i=1
P 4 NumOfNotAllowedShiftSeq
N W , N D, represent respectively, the number of work
blocks, and days off blocks, whereas N Sj , represents number
of shift sequences blocks of shift j. W Bi , DOBi , represent
5 4 4 4 4 4 3
R3,7 = 5 4 4 4 4 4 4
4 3 3 3 4 4 4
Constraints: Rest-period lengths must be between 2 and 7
days; Work-periods lengths must be between 3 and 8 days; A
shift cannot be assigned to more than 4 consecutive weeks in
a row; Shift changes are allowed only after a rest period that
includes a Sunday or a Monday or both; The only allowable
shift changes are 1 to 3, 2 to 1, and 3 to 2.
We cannot model constraints 3, 4, and 5 in their original
form. We allow changes in the same block and for these
reason we have other shift change constraints. In our case
the following shift changes are not allowed: 2 to 1, 3 to 1,
and 3 to 2. Additionally, we limit the rest period length from
2 to 4 and work periods length from 4 to 7. Maximum and
minimum length of blocks of successive shifts are given with
vectors M AXS 3 = (7, 6, 5) and M IN S 3 = (2, 2, 2).
B. Results
In the Table II a summary of results for the tabu search
strategy for 10 problems is given. Note that these results
are obtained with the tabu search approach proposed in [19].
Table IV presents results for tabu search and random walk
and Table III represents results for tabu search and random
noise. Further, in the Table V the results for tabu search and
min conflicts are given. For each problem the average number
of evaluations and time needed (in seconds) for generation of
solution is presented. The last column (runs with solution)
represents number of runs in which the solution could be
found.
C. Discussion of results
From the tables we can conclude that tabu search approach
is improved by random noise considering the number of
runs in which the solution is found. Further improvements
are arrived with combination of tabu search with random
walk considering both the average number of evaluations and
also the number of runs in which the solution is found.
Combination of tabu search with min conflicts heuristic clearly
TABLE II
TABLE IV
(10 RUNS )
(10 RUNS )
Example
Number of Evaluations
Time(sec)
Example
Number of Evaluations
Time(sec)
144953
2.2
10
21295.6
0.4
10
76414.9
1.1
64045.4
0.9
10
1.25E+06
28.7
280965
10
52686.4
1.2
10
32598.2
0.7
10
1.23E+06
24.1
219529
4.5
10
51597.4
0.7
10
19786.5
0.3
10
8.20E+06
306
879771
19.25
174510
10
1.59E+06
98
2.49E+06
148.1
10
10
1.14E+06
39.75
10
567656
21.1
10
TABLE III
TABLE V
(10 RUNS )
(10 RUNS )
Example
Number of Evaluations
Time(sec)
Example
Number of Evaluations
Time(sec)
43076.4
0.6
10
26046
0.4
10
111241
1.7
10
25791.6
0.4
10
861396
20.3
10
153408
3.8
10
75290.4
1.7
10
22810.2
0.5
10
278555
5.6
10
121248
2.4
10
11495.1
0.2
10
13064
0.2
10
9.11E+06
337
3.42E+06
126.2
454547
10
10
238501
5.3
10
5.33E+06
304.333
933254
57.5
10
10
2.15E+06
74.6
10
10
312065
11.7
10
[8] P. Hansen. The steepest ascent mildest descent heuristic for combinatorial programming. In Congress on Numerical Methods in Combinatorial
Optimization, 1986.
[9] N. Heller, J. McEwen, and W. Stenzel. Computerized scheduling of
police manpower. St. Louis Police Department, St. Louis, MO, 1973.
[10] R. Hung. A three-day workweek multiple-shift scheduling model. J Opl
Res Soc, (44):141146, 1993.
[11] R. Hung. A multiple-shift workforce scheduling model under 4-day
workweek with weekday and weekend labour demands. J Opl Res Soc,
(45):10881092, 1994.
[12] S. Kirkpatrick, C. D. Gelatt Jr., and M. P. Vecchi. Optimization by
simulated annealing. Science, 220:671680, 1983.
[13] P. Knauth. Designing better shift systems. Appl Ergonom, (27):3944,
1996.
[14] G. Laporte. The art and science of designing rotating schedules. Journal
of the Operational Research Society, 50:10111017, 1999.
[15] G. Laporte, Y. Nobert, and J. Biron. Rotating schedules. Eur. J. Ops.
Res., 4:2430, 1980.
[16] Hoong Chuin Lau. On the complexity of manpower scheduling.
Computers. Ops. Res., 23(1):93102, 1996.
[17] Steven Minton, Mark D. Johnston, Andrew B. Philips, and Philip Laird.
Minimizing conflicts: a heuristic repair method for constraint satisfaction
and scheduling problems. Artificial Intelligence, 58:161205, 1992.
[18] Michael Morz and Nysret Musliu. Genetic algorithm for rotating workforce scheduling. In IEEE International Conference on Computational
Cybernetics ICCC 2004, Vienna, 2004.
[19] Nysret Musliu. Applying tabu search to the rotating workforce scheduling problem. In The 5th Metaheuristics International Conference
(MIC03), Kyoto, Japan, 2003.
[20] Nysret Musliu, Johannes Gartner, and Wolfgang Slany. Efficient gen-