Seven print jobs need a run order for Monday morning. Each must pass through printing and then curing. Running them in arrival order feels fair, while running the quickest print job first feels efficient. Neither choice solves every two-stage scheduling problem.

Johnson's rule gives an exact answer to one well-defined problem: finding the shortest total completion time for jobs that pass through two machines in the same order. It is simple enough to use on a whiteboard, but its value on the factory floor depends on whether the real work fits the model.

In the example below, arrival order takes 101 minutes and a Johnson sequence takes 95 minutes. Another simple sequence also reaches 95. The purpose of the calculation is to establish a defensible production schedule, while making its assumptions and practical limitations explicit.

Define the problem before sorting the jobs

The objective is makespan: the time from the first start on machine 1 to the last finish on machine 2. Although shortening makespan can free a production window, it does not necessarily minimise waiting stock, labour cost or late deliveries.

S. M. Johnson's original 1954 paper established the two-stage result and discussed a restricted three-stage case. The basic two-machine model used here has the following conditions:

  • Every job visits machine 1 and then machine 2.

  • All jobs are ready when the schedule begins.

  • Each machine processes one job at a time.

  • A started operation runs to completion without interruption.

  • Processing times are known and do not change with job order.

  • Waiting between stages is allowed, with enough space to avoid blocking.

  • There are no additional binding limits such as shared operators or transfer equipment.

Because these conditions describe a model rather than an automatic property of a factory, two departments cannot always be treated as two machines. A curing department with three ovens, or an oven that processes several jobs together, creates a different resource problem.

Printing followed by curing may fit if each listed job occupies one defined resource at each stage. Fusing followed by pressing may fit for a selected work cell. Before relying on the optimality guarantee, the production planner must confirm that the actual route, resource capacity and handling method satisfy the model's assumptions.

Use elapsed machine time, with a clear job size

A processing time belongs to a specific job quantity and method, so twelve minutes for a sample run cannot describe a bulk lot without a valid conversion. Record the quantity, machine, route and measurement basis on the job list so that processing times remain comparable throughout the calculation.

Labour content differs from elapsed machine time: two operators may each work for six minutes while a machine is occupied for six minutes in total. Adding their labour minutes would wrongly enter twelve minutes into the schedule, whereas a thermal process may occupy equipment while requiring little direct labour.

Use the standard minute value calculation guide to support work measurement, then identify the elapsed time needed by the scheduling model. Include loading and unloading when they occupy the resource, and treat shared labour as a separate constraint when one person must serve both stages.

A fixed setup can sometimes be included in a job's operation time, provided it occupies the same resource under the same timing assumptions. A setup that can occur before the job arrives may need separate modelling, while a colour change that depends on the previous job cannot be represented by one fixed processing time.

The distinction between choosing resources and sequencing their work also appears in Wysk and Smith's shop-floor control research. The sequence can be calculated only after the relevant resources and processing routes are clear.

Apply Johnson's rule in four steps

Write one row per job with its processing time on each machine, and leave a row of empty positions for the final production sequence. Then use this procedure:

  1. Find the smallest processing time among all unscheduled jobs on both machines.

  2. If that minimum is on machine 1, place its job in the earliest empty position.

  3. If that minimum is on machine 2, place its job in the latest empty position.

  4. Remove the whole job from consideration and repeat until every position is filled.

Removing the whole job is essential because its other operation cannot be selected again as though it were another job. Both machines follow the final order, although the timing calculation gives them different start and finish times for each job.

Although ties can be settled in either order while following the placement rule, a documented tie rule makes the result easy to reproduce. For example, using the lowest job number resolves equal eligible minima consistently, although other valid tie choices may produce different sequences with the same minimum makespan.

HKUST's teaching notes explain the idea behind the method. Short first-stage work can feed machine 2 early. Short second-stage work can sit near the end, leaving less work after machine 1 finishes. The algorithm fills the two ends together because it coordinates the transfer of work between machines rather than improving either machine in isolation.

For larger lists, an equivalent approach forms two groups. Jobs with first-stage time no greater than second-stage time go first, sorted by increasing first-stage time. The remaining jobs follow, sorted by decreasing second-stage time. After sorting, calculate the operation start and completion times, because the sequence alone does not show when machines become available or how long jobs wait.

Work through seven print-and-cure jobs

The following data describe an illustrative production lot in which every job visits one printer and one curing resource. All jobs are ready at time zero, and the times are elapsed minutes for the stated jobs.

Job

Printing time

Curing time

J1

12

10

J2

8

18

J3

15

7

J4

6

22

J5

20

5

J6

9

16

J7

14

11

The smallest value is five minutes for J5 on curing, so J5 goes last. Six minutes for J4 on printing is next, so J4 goes first. Seven minutes for J3 on curing puts J3 in the next empty position from the end.

The next minima place J2 and J6 at the front. J1 then goes into the latest remaining position, leaving J7 in the middle. One Johnson sequence is:

J4 → J2 → J6 → J7 → J1 → J3 → J5.

The resulting sequence neither sorts jobs by total processing time nor requires the longest curing operation to take the first position. Each placement comes from the smallest remaining time and the machine on which it occurs.

Build the start-and-finish table

Machine 1 starts the next job as soon as it becomes free. Machine 2 has two conditions to meet: the current job must have finished printing, and the previous job must have finished curing.

For each job in the chosen sequence:

Print finish = previous print finish + print time.

Cure start = maximum of current print finish and previous cure finish.

Cure finish = cure start + cure time.

Set the previous finish values to zero for the first job. This gives the complete schedule below.

Job

Print start

Print finish

Cure start

Cure finish

J4

0

6

6

28

J2

6

14

28

46

J6

14

23

46

62

J7

23

37

62

73

J1

37

49

73

83

J3

49

64

83

90

J5

64

84

90

95

The last curing operation ends at minute 95, eleven minutes after printing finishes at minute 84. Curing runs without an internal gap from minute 6 to minute 95.

J2 illustrates why job waiting and machine idle time are different. It finishes printing at minute 14, then waits until minute 28. During that interval, the curing resource is busy with J4. Calling those fourteen minutes an oven idle gap would misread the schedule.

The waiting time of each job between stages is cure start minus print finish. In sequence order, the waits are 0, 14, 23, 25, 24, 19 and 6 minutes. Their sum is 111 job-minutes. A shortest makespan can still create substantial waiting between stages.

Prove the result for this example

There are 89 minutes of curing work. No job can reach curing before minute 6, since six minutes is the shortest printing time. Thus, no feasible schedule can finish before:

Two sequential machines with coloured job cards

6 + 89 = 95 minutes.

This calculation establishes a lower bound on the completion time of every feasible schedule. Because the proposed sequence reaches this lower bound, its makespan is optimal; the argument can be checked without trusting a spreadsheet's sort.

For a further arithmetic check, all 5,040 orders of these seven jobs can be evaluated. That enumeration gives the same minimum of 95 minutes, reached by 292 different orders. Although this count is specific to the teaching data, Johnson's rule avoids the need to enumerate every possible sequence in normal use.

Run-order method

Sequence

Makespan

Arrival order

J1, J2, J3, J4, J5, J6, J7

101 min

Johnson's rule

J4, J2, J6, J7, J1, J3, J5

95 min

Shortest printing time first

J4, J2, J6, J1, J7, J3, J5

95 min

The improvement over arrival order is six minutes, or about 5.94%, even though arrival order also has no gap between curing jobs; its first job reaches curing later, at minute 12. The gain in this case comes from the earlier start.

Although shortest printing time happens to tie the optimum, that observation does not establish a general guarantee for the rule. Showing the tied result helps distinguish the mathematical guarantee of Johnson's rule from a competing method that succeeds on this particular dataset.

State the time window when reporting utilisation

Printing contains 84 minutes of work and curing contains 89. Over the full 95-minute schedule, their busy shares are about 88.42% and 93.68%. Printing has eleven idle minutes after its final job; curing has six before its first job.

If printing utilisation is reported only from its first start to its last finish, it is 100%. Both calculations can be arithmetically correct while answering different questions, so the report must identify its measurement period before presenting utilisation.

There is no basis here for claiming that both machines lose less processing time. Their required processing work is unchanged, and six fewer elapsed minutes cannot establish a fixed fuel saving without the operating-energy data. An oven's warm-up, holding conditions and shutdown policy affect its energy use.

An illustrative unit might set a target to reduce oven idle time from forty minutes to below eight per shift. That would be more than 32 minutes per shift, or more than 3.2 hours over six shifts. The reduction remains a target until measured, while accepting another rush order also requires materials, labour and sufficient capacity beyond the two stages.

Recognise the conditions that change the problem

Changeovers depend on the previous job

A white-to-black print change may take a different time from black-to-white. Because the next job's duration then depends on the sequence being selected, the scheduling method must include the relevant changeover relationships.

Adding the same average setup to every job can hide the benefit of colour grouping. It can also hide the delivery cost of pushing a small urgent job behind a long colour campaign, so compare candidate sequences using their actual setups and delivery requirements.

A buffer fills or waiting is forbidden

The example lets printed work wait while the printer continues. If a full buffer forces a finished job to remain on the printer, the system has blocking. If a job must enter curing immediately after printing, it has a no-wait constraint. These are distinct conditions.

A limited buffer preserves the basic schedule only when it never binds, which can be checked by tracing completed and transferred jobs through time. A kanban pull system may deliberately cap waiting stock, so its limit belongs in the schedule.

Jobs arrive later or equipment becomes unavailable

A job awaiting approved ink has a release delay, while a planned maintenance stop creates a period of machine unavailability. If either occurs, the simple result no longer guarantees the best realised schedule.

When inserting an urgent job, preserve operations already under way and recalculate the remaining work from the machines' actual free times and the jobs' current positions. Running Johnson's rule on a fresh list from zero would ignore commitments that cannot be reversed.

The objective is delivery performance

Because a shortest final completion time can still finish an urgent job too late, define each due time and calculate lateness as completion minus due time. Tardiness is the larger of zero and lateness.

University scheduling notes hosted by NYU establish the earliest-due-date result for maximum lateness in the basic single-machine problem. The single-machine guarantee does not transfer automatically to two machines, and critical ratio remains an urgency indicator rather than an exact solution to every delivery problem.

Choose a method that includes the real constraints

Factory situation

Role of Johnson's rule

Next modelling step

Two machines and all basic assumptions hold

Exact makespan solution

Build and check the timing table

Three or more stages

No general guarantee

Use a suitable multi-stage model or tested heuristic

Previous-job-dependent setups

Benchmark at most

Include the full setup relationships

Blocking or no-wait transfer

Basic model is insufficient

Model the actual transfer constraint

Hard due dates

Makespan alone is insufficient

Add deadlines and choose the delivery objective

Uncertain processing times

Optimum applies to stated inputs

Compare realistic timing scenarios

Parallel or batch equipment

Resource model has changed

Model assignment and batch capacity

Some three-machine problems permit a special reduction, as Johnson's original paper notes. This restricted result does not allow arbitrary stages to be combined into two totals while retaining an exact solution for the original flow-shop problem.

For more complex cases, Google's job-shop modelling guide shows how task order and machine exclusivity can be expressed as constraints. Additional factory limits must still be specified, because software cannot account for a shared trolley or curing restriction that nobody included in the model.

Also distinguish a feasible answer from a proven optimum. The CP-SAT solver documentation gives separate statuses for those outcomes. A time-limited solver may find a useful schedule without proving that no better one exists.

Build a spreadsheet the floor can trust

Keep the source job list separate from the selected sequence, assigning each job a unique identifier through which its processing times enter the schedule. Sorting one time column without its job column is an easy way to produce a plausible but false result.

Use separate columns for each machine's start and finish. Add columns for waiting time and any due dates, then verify that every job appears once and no operation starts before its predecessor finishes.

For the seven-job example, the first-stage total must remain 84 and the second-stage total 89 under every order. These are useful checks when comparing alternatives. Although the makespan may change as the jobs move into a different order, a pure resequencing cannot change those work totals.

Before release, ask the two machine operators to review the timing table. They may identify a shared setup task, missing rack space or a handling step absent from the inputs. Revise the model when the observation is valid, then record why the schedule changed.

Test the schedule as a production decision

Start with one suitable job family, retaining the current order as a baseline and recording actual start and finish times, delays and reasons for overrides. Separate a poor time estimate from a sequence that was never followed.

If variation creates long queues, use queuing theory for buffer sizing to study that wider flow problem. If the issue is assigning sewing tasks to stations, linear programming for line balancing addresses a different decision. Sequencing orders and balancing work may both be needed. See also fabric allocation with a transportation model.

Johnson's rule earns its place by making one scheduling choice clear and checkable. Use its exact result where the assumptions hold. Where they do not, the full timing table still provides a useful starting point for asking which real constraint determines the finish.

Johnson's Rule Formula, Tie-Breaking Rule, and Quick 2-Machine Sequence Check

For any two-stage flow shop where every job must process on Machine 1 (M1) before Machine 2 (M2), Johnson's Rule finds the exact job sequence that minimizes total makespan (completion time of the last job) using one compact decision rule:

Find min(t₁ᵢ, t₂ᵢ) across all unscheduled jobs i. If the minimum is on M1 (t₁ᵢ), place job i in the earliest open slot; if it is on M2 (t₂ᵢ), place job i in the latest open slot. Remove job i and repeat.

Formal Tie-Breaking and Makespan Equations

  • Tie between M1 and M2 on the same job (t₁ᵢ = t₂ᵢ): Either slot gives the same optimal makespan; place earliest by convention.
  • Tie between two jobs on M1: Schedule the job with the smaller M2 time first (or arbitrary order; makespan stays identical).
  • Completion time recurrence: C₁(k) = C₁(k−1) + t₁(k) and C₂(k) = max(C₁(k), C₂(k−1)) + t₂(k).
  • Machine 2 total idle time: Idle₂ = C₂(n) − Σt₂ᵢ.

Quick 5-Job Sequence Verification Example

JobStage 1: Cut / Print (min)Stage 2: Sew / Cure (min)Minimum TimeAssigned Slot
A633 (Stage 2)Slot 4 (from back)
B282 (Stage 1)Slot 1 (from front)
C755 (Stage 2)Slot 3 (from back)
D494 (Stage 1)Slot 2 (from front)
E522 (Stage 2)Slot 5 (from back)

Reading slots 1 through 5 gives the optimal Johnson's Rule sequence: B → D → C → A → E, with total makespan C₂ = 29 minutes and only 2 minutes of initial Stage 2 wait time. When more than two bottleneck stages interact, move to EDD, SPT, and Critical Ratio dispatching rules.

References