Introduction

The permutation flow shop scheduling problem

One of the most studied problems in scheduling theory. It is simple to state and very hard to solve, and decades of work have gone into it.

Definition

A set of n jobs must be processed on m machines arranged in series. Every job visits the machines in the same order 1, 2, …, m, and job j needs an uninterrupted processing time pij ≥ 0 on machine i. A machine processes at most one job at a time and a job is on at most one machine at a time. In the permutation flow shop the jobs must also be processed in the same order on every machine, so a solution is a permutation π = (π1, …, πn) of the jobs.

The objective considered on this site is the makespan Cmax, the completion time of the last job on the last machine. In the three-field notation of Graham et al. the problem is written Fm | prmu | Cmax.

Evaluating a permutation

Write C(k, i) for the completion time of the k-th job of the sequence on machine i. With C(0, i) = C(k, 0) = 0:

C(k, i) = max{ C(k−1, i), C(k, i−1) } + pi,πk,    k = 1…n, i = 1…m
Cmax(π) = C(n, m)

This takes O(nm) time, and it is exactly what the solution checker and our validation scripts compute.

A small example

Below are 5 jobs on 3 machines. Change the job order and see how the schedule and the makespan respond.

Hover over a bar for its start and end times. The dashed line marks Cmax.

Complexity

For m = 2 the problem is solved optimally in O(n log n) by Johnson's rule (Johnson, 1954). For m ≥ 3 it is NP-hard in the strong sense (Garey, Johnson & Sethi, 1976). The search space has n! permutations, about 2.4·1018 for n = 20 and 3·1064 for n = 50. Exact methods are mostly branch-and-bound algorithms. The best heuristics build on the NEH insertion heuristic (Nawaz, Enscore & Ham, 1983), accelerated with Taillard's (1990) technique, and run inside iterated-greedy or local-search frameworks.

Lower bounds, upper bounds and gaps

Any feasible permutation gives an upper bound (UB) on the optimal makespan. A lower bound (LB) must be proven, for example by one-machine bounds (head + machine load + tail), two-machine bounds based on Johnson's rule (Lageweg, Lenstra & Rinnooy Kan, 1978), the recent polynomial-time prefix–suffix bounds LBp,s (Alejandro-Soto, Segura & Trejo-Sanchez, 2026), or a complete branch-and-bound search.

Closed
LB = UB: the best-known solution is proven optimal.
Open
LB < UB, or no lower bound is recorded.
Gap
100 · (UB − LB) / UB, in percent, as shown in the bounds table.
RPD / ARPD
When comparing heuristics, the relative percentage deviation of a makespan C from the best-known UB, 100 · (C − UB) / UB, averaged over instances.

Conventions used on this site

  • Jobs and machines are numbered from 1. Permutations list job indices in processing order.
  • Instance files use one format: the first line is n m, followed by m lines of n integers (machine i's processing times for jobs 1…n). See Benchmarks.
  • An upper bound is listed only if its permutation is available and re-evaluates to that value.

References

  1. J. A. Alejandro-Soto, C. Segura, J. A. Trejo-Sanchez (2026). Bounds for the permutation flowshop scheduling problem: New framework and theoretical insights. Computers & Operations Research 191, 107445.
  2. M. R. Garey, D. S. Johnson, R. Sethi (1976). The complexity of flowshop and jobshop scheduling. Mathematics of Operations Research 1(2), 117–129.
  3. S. M. Johnson (1954). Optimal two- and three-stage production schedules with setup times included. Naval Research Logistics Quarterly 1(1), 61–68.
  4. B. J. Lageweg, J. K. Lenstra, A. H. G. Rinnooy Kan (1978). A general bounding scheme for the permutation flow-shop problem. Operations Research 26(1), 53–67.
  5. M. Nawaz, E. E. Enscore, I. Ham (1983). A heuristic algorithm for the m-machine, n-job flow-shop sequencing problem. Omega 11(1), 91–95.
  6. E. Taillard (1990). Some efficient heuristic methods for the flow shop sequencing problem. European Journal of Operational Research 47(1), 65–74.
  7. E. Taillard (1993). Benchmarks for basic scheduling problems. European Journal of Operational Research 64(2), 278–285.
  8. E. Vallada, R. Ruiz, J. M. Framinan (2015). New hard benchmark for flowshop scheduling problems minimising makespan. European Journal of Operational Research 240(3), 666–677.