Johnson's Sequencing Rule for Two-Machine Jobs

When several jobs must pass through the same two machines, their order can change when the final job finishes. Johnson's sequencing rule uses the processing time of each job on each machine to build an order that minimizes the total elapsed time. You use it for operations such as cutting followed by sealing, where the two machines can work on different jobs simultaneously.

When the rule applies

Johnson's sequencing rule constructs an optimal job order for the classic two-machine flow shop. Every job visits machine 1 and then machine 2, and both machines process jobs in the resulting order.


The guarantee assumes that:

  • All jobs are available at time zero, when both machines are ready.
  • Processing times are known and fixed.
  • Each machine processes at most one job at a time, and each job uses at most one machine at a time.
  • An operation continues without interruption once it starts.
  • Jobs may wait between machines without blocking machine 1.
  • There are no breakdowns or separate setup and transfer times. Any setup included in processing time is independent of the job order.

The makespan is the elapsed time from the schedule's start until every job has finished machine 2. With the start defined as time zero, it equals the final completion time on machine 2.


Every job passes through machine 1 before machine 2.


Building the order from both ends

Draw one empty position for each job. Then repeat these steps:

  1. Find the smallest individual processing time among all unscheduled jobs on both machines.
  2. Place its job using the machine on which that minimum occurs.
  3. Remove that job, including both of its processing times, from further consideration.
  4. Continue until every position is filled.


Location of the selected minimum

Where to place its job

Machine 1

Earliest open position

Machine 2

Latest open position


A job selected later in the procedure can therefore appear earlier in the final sequence. For example, a machine 2 minimum fills the back of the sequence, not the next position at the front.


If several entries share the smallest time, you may select any tied entry and apply its machine's placement rule. If one job has the minimum on both machines, either end is valid. Remove the job once it is placed.



Checking the timing

Once you have an order, start each operation as soon as the job and its machine are both ready. Let pk,1p_{k,1} and pk,2p_{k,2} be the processing times of the job in position kk. Let Ck,1C_{k,1} and Ck,2C_{k,2} be its completion times.


Ck,1=Ck−1,1+pk,1Ck,2=max⁡(Ck,1,Ck−1,2)+pk,2Cmax⁡=Cn,2\begin{aligned} C_{k,1} &= C_{k-1,1}+p_{k,1} \\ C_{k,2} &= \max(C_{k,1},C_{k-1,2})+p_{k,2} \\ C_{\max} &= C_{n,2} \end{aligned}


Use C0,1=C0,2=0C_{0,1}=C_{0,2}=0, where nn is the number of jobs. The maximum in the second equation enforces two requirements: the job must finish machine 1, and machine 2 must finish its previous job.



The rule guarantees a minimum makespan under its assumptions; it does not guarantee a unique best sequence. If release times, routes or sequence-dependent setups change, reassess whether the classic guarantee applies.

What to remember

  • Search both machines for the smallest remaining individual time.
  • Place a machine 1 minimum at the front and a machine 2 minimum at the back.
  • Remove each selected job and repeat.
  • Calculate completion times using both job readiness and machine readiness.
  • Interpret optimality within the stated two-machine assumptions.

Example: Sequencing Cutting and Sealing Batches

A packaging workshop must cut five batches on machine 1 and then seal them on machine 2. All batches and both machines are ready at time zero. Each machine handles one batch at a time, and an operation cannot be interrupted. Waiting space between machines is unlimited. Processing times are fixed, with no setups, transfer delays or breakdowns. Both machines will follow the same batch order.


Batch

Cutting time (min)

Sealing time (min)

A

5

8

B

9

3

C

2

6

D

7

4

E

6

7


The workshop currently uses A–B–C–D–E. Start each operation as soon as its batch and machine are ready.


a) Use Johnson's sequencing rule to construct an optimal order.


Search both processing-time columns, placing a first-machine minimum in the earliest open position and a second-machine minimum in the latest open position. Remove the selected batch after each placement.

  1. The smallest time is C's ________ minutes on machine 1. Place C first: C, empty, empty, empty, empty.
  2. The smallest remaining time is B's ________ minutes on machine 2. Place B last: C, empty, empty, empty, B.
  3. The smallest remaining time is D's ________ minutes on machine 2. Place D in the latest open position: C, empty, empty, D, B.
  4. The smallest remaining time is A's ________ minutes on machine 1. Place A in the earliest open position: C, A, empty, D, B.
  5. E is the remaining batch. Place it in the remaining position: C, A, E, D, B.

The Johnson sequence is C–A–E–D–B. It minimizes makespan under the stated two-machine assumptions.


b) Calculate the makespan of this order.


Machine 1 processes the batches continuously from time zero. A batch starts machine 2 only after its cutting operation is complete and the previous batch has finished sealing. All times below are elapsed minutes from the start.

  • C: Machine 1 runs from 00 to 0+2=20+2=2. Machine 2 starts at max⁡(2,0)=2\max(2,0)=2 and finishes at 2+6=82+6=8.
  • A: Machine 1 runs from 22 to 2+5=72+5=7. Machine 2 starts at max⁡(7,8)=8\max(7,8)=8 and finishes at 8+8=168+8=16.
  • E: Machine 1 runs from 77 to 7+6=137+6=13. Machine 2 starts at max⁡(13,16)=16\max(13,16)=16 and finishes at 16+7=2316+7=23.
  • D: Machine 1 runs from 1313 to 13+7=2013+7=20. Machine 2 starts at max⁡(20,23)=23\max(20,23)=23 and finishes at 23+4=2723+4=27.
  • B: Machine 1 runs from 2020 to 20+9=2920+9=29. Machine 2 starts at max⁡(29,27)=29\max(29,27)=29 and finishes at 29+3=3229+3=32.

The final batch finishes machine 2 at 32 minutes, giving:


Cmax⁡=32 minC_{\max}=32\text{ min}


As a check, machine 2 performs 6+8+7+4+3=286+8+7+4+3=28 minutes of work. It waits 2 minutes initially and another 2 minutes between D and B. Thus its final completion time is 28+2+2=3228+2+2=32 minutes.


Two machine timelines show the processing intervals and idle periods for batches C, A, E, D and B.


c) Compare this makespan with the existing A–B–C–D–E order.


Recalculate the existing order using the same readiness constraints. Changing the sequence does not change individual processing times, but it changes when sealing can begin. All times below are elapsed minutes from the start.

  • A: Machine 1 finishes at 0+5=50+5=5. Machine 2 starts at max⁡(5,0)=5\max(5,0)=5 and finishes at 5+8=135+8=13.
  • B: Machine 1 finishes at 5+9=145+9=14. Machine 2 starts at max⁡(14,13)=14\max(14,13)=14 and finishes at 14+3=1714+3=17.
  • C: Machine 1 finishes at 14+2=1614+2=16. Machine 2 starts at max⁡(16,17)=17\max(16,17)=17 and finishes at 17+6=2317+6=23.
  • D: Machine 1 finishes at 16+7=2316+7=23. Machine 2 starts at max⁡(23,23)=23\max(23,23)=23 and finishes at 23+4=2723+4=27.
  • E: Machine 1 finishes at 23+6=2923+6=29. Machine 2 starts at max⁡(29,27)=29\max(29,27)=29 and finishes at 29+7=3629+7=36.

The existing order takes 36 minutes. The reduction from adopting the Johnson sequence is:


36−32=4 min36-32=4\text{ min}


The optimal order therefore finishes all batches 4 minutes earlier, reducing makespan from 36 minutes to 32 minutes.

A workshop is considering Johnson's sequencing rule to minimize the time until all orders finish. In every setting below, processing times are known and fixed, machines handle one order at a time, operations cannot be interrupted, and there are no setups, transfer delays or breakdowns.


Which setting satisfies the remaining conditions for the classic two-machine guarantee?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A workshop schedules several jobs across independent machines and measures every job's completion time from the same schedule start at time 0. The makespan is the elapsed time until every job has finished. Complete the calculation rule: take the of the job completion times.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Four packaging jobs require cutting on machine 1 followed by sealing on machine 2. All jobs and both machines are ready at time zero. Each machine handles one job at a time, operations cannot be interrupted, and waiting space is unlimited. Processing times are fixed, with no setups, transfer delays or breakdowns.


Job

Cutting time (min)

Sealing time (min)

P

7

3

Q

2

8

R

5

6

S

9

4


Which common job order does Johnson's sequencing rule produce?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Extra Practice