”best” move v
∗
= (π(x), π(y)) ∈ v, the pair of jobs
(π(x), π(x+1)) if x < y, or the pair (π(x−1), π(x)))
if x > y, representing a precedence constraint, is
added to T . Each time before adding a new ele-
ment to T , we must remove the oldest one. With re-
spect to a permutation π, a move (π(x), π(y)) ∈ M
is forbidden, i.e. it has tabu status, if A(π(x)) ∩
{π(x + 1), π(x + 2), ..., π(y)} 6= ∅ if x < y, and
B(π(x)) ∩ {π(y), π(y + 1), ..., π(x − 1)} 6= ∅ other-
wise, where
A(j) = {i ∈ J | (j, i) ∈ T },
B(j) = {i ∈ J | (i, j) ∈ T }.
Set A(j) (or set B(j)) indicates which jobs are to be
processed after (or before) job j with respect to the
current content of the tabu list T.
As mentioned above, our algorithm uses a tabu list
with dynamic length. This length is changed cycli-
cally, as the current iteration number iter of TS+M
increases, using the “pick“ in order to avoid be-
ing trapped at a local optimum (see (Grabowski and
Wodecki, 2004) for details). This kind of tabu list can
be viewed as a specific disturbance and was employed
on that very fast tabu search algorithm proposed by
Grabowski and Wodecki (Grabowski and Wodecki,
2004), where it was successfully applied to the classi-
cal flow shop problem.
4 COMPUTATIONAL RESULTS
In this section we report the results of empirical tests
to evaluate the relative effectiveness of the proposed
tabu search algorithm. So far the best heuristic al-
gorithms for a permutation flow-shop problem with
blocking were presented in papers by (Abadi et al.,
2000), (Caraffa et al., 2001), (Leistein, 1990), (Mc-
Cormick et al., 1989), (Nowicki, 1999), (Ronconi,
2004). It is showed that the best heuristic algorithm
is that proposed by Nowicki (Nowicki, 1999), de-
noted here as TSN. Therefore, we compare our al-
gorithm TS+M with TSN which is also based on the
tabu search approach.
Both algorithms TS+M and TSN were coded in
C++, run on a PC with Pentium IV 1000MHz proces-
sor and tested on the benchmark instances provided
by (Taillard, 1993) for the classic permutation flow
shop, by considering all machines as the blocking
constraints are required. The benchmark set contains
120 particularly hard instances of 12 different sizes,
selected from a large number of randomly generated
problems. For each size (group) n × m: 20 × 5,
20 × 10, 20 × 20, 50 × 5, 50 × 10, 50 × 20, 100 × 5,
100 × 10, 100 × 20, 200 × 10, 200 × 20, 500 × 20, a
sample of 10 instances was provided.
The algorithms based on the tabu search method,
needs an initial permutation, which can found by any
Table 1: Computational results
TSN TS+M
M axiter 30000 1000 3000 30000
n × m APRI ACPU APRI ACPU APRI ACPU APRI ACPU
20 × 5 2.93 2.4 2.87 0.1 3.08 0.3 4.08 2.5
20 × 10 4.51 4.1 3.27 0.1 4.11 0.4 4.75 4.4
20 × 20 2.83 7.2 2.33 0.3 2.39 0.7 2.89 7.3
50 × 5 1.69 6.0 2.04 0.2 2.34 0.6 3.05 6.1
50 × 10 3.13 10.8 2.63 0.4 3.18 1.0 4.04 10.9
50 × 20 3.70 19.1 2.01 0.7 2.47 1.9 4.42 20.1
100 × 5 0.79 12.3 0.98 0.4 1.18 1.3 1.78 12.8
100 × 10 1.98 21.9 1.78 0.7 2.06 1.8 3.00 23.1
100 × 20 2.56 39.5 1.76 1.3 2.12 2.2 3.04 40.9
200 × 10 0.73 44.1 1.03 1.5 1.28 4.0 1.93 46.3
200 × 20 1.35 79.4 1.30 2.7 1.68 8.0 2.52 82.1
500 × 20 0.36 213 0.49 7.0 0.60 20.0 1.12 205
all 2.21 1.87 2.21 3.05
method. In our tests, we use algorithm NEH (Nawaz
et al., 1983) in its original version, which is consid-
ered to be the best one (champion) among simple
constructive heuristics for flow-shop scheduling. In
our tests, for each instance, TS+M algorithm is ter-
minated after performing Maxiter = 1 000, 3 000 and
30 000 iterations, whereas TNS performed Maxiter =
30 000 iterations. The value of tuning parameter Piter
is drawn from (Grabowski and Wodecki, 2004) equal
to 3. The effectiveness of our algorithms was ana-
lyzed in both terms of CPU time and solution quality.
For each test instance, we collected the following
values:
• P RI = 100%(C
NEH
− C
A
)/C
NEH
– the
value of the percentage relative improvements of
the makespan C
A
obtained by algorithm A =
{T SN, T S + M} with respect to the makespan
C
NEH
obtained by algorithm NEH.
• CP U – the computer time (in seconds).
Then, for each size (group) n × m, the following
measures of the heuristic quality were calculated
• AP RI – the average (for 10 instances) percentage
relative improvements of the makespans.
• ACP U – the average (for 10 instances) computer
time.
The computational results presented in Table 1
show that, in terms of APRI values, our algorithm
TS+M, for M axiter =30 000 iterations, performs
significantly better than TSN in comparable the CPU
times. The TS+M found makespans with the overall
average APRI equal to 3.05, whereas TSN found the
ones with 2.21. The superiority of TS+M over TSN
increases with the size of instances. And so, for the
largest instances with n × m = 500 × 20, the TS+M
found makespans with average APRI equal to 1.12,
A FAST TABU SEARCH ALGORITHM FOR FLOW SHOP PROBLEM WITH BLOCKING
75