Using Johnson's Rule For 2-machine Scheduling The Sequence Is

8 min read

Of course. Here is a complete SEO pillar blog post on using Johnson's rule for 2-machine scheduling Small thing, real impact..


The Ultimate Guide to Johnson's Rule: How to Slash Your Production Wait Times

Have you ever stared at a production schedule that feels like a chaotic jigsaw puzzle? Jobs piling up, machines sitting idle, and deadlines looming? You know there’s a better sequence out there, but finding it feels like guesswork. What if I told you there’s a straightforward, mathematically proven method to cut your total production time significantly?

Quick note before moving on.

Enter Johnson's Rule. It’s not some complex, theoretical concept reserved for PhDs in operations research. It’s a brilliantly simple algorithm designed to solve one of the most common problems in manufacturing: how to sequence jobs through two machines or stages to minimize the total time from start to finish.

This guide will break down Johnson's rule, step-by-step. Day to day, we’ll cover what it is, why it’s so powerful, how to apply it with a real-world example, the common pitfalls to avoid, and how to get the most out of it. By the end, you’ll have a tool that can bring real efficiency to your shop floor And it works..

What Is Johnson's Rule, Exactly?

Let’s cut the academic jargon. Johnson's Rule is a scheduling algorithm. Its sole purpose is to find the optimal sequence for a set of jobs that need to be processed on two machines, let's call them Machine A and Machine B Worth keeping that in mind..

The key constraint is that every job must go through Machine A first, and then Machine B. Think of it like a two-stage assembly line. For example:

  • Machine A: Drilling holes
  • Machine B: Painting the part

You can't paint a part before you've drilled the holes in it. So, all drilling must happen before all painting for each individual job. Johnson's rule tells you the best order to run the jobs to minimize the "makespan"—the total time to complete all jobs.

The rule itself is surprisingly simple. It’s based on a single principle: get the jobs with the shortest processing time on the first machine out of the way as fast as possible, and push the jobs with the shortest processing time on the second machine to the end.

This creates a "pipeline effect," reducing idle time on the second machine That's the part that actually makes a difference..

The Two-Step Algorithm

Here’s the core of Johnson's rule, broken down into its two essential steps:

  1. Find the shortest processing time among all the jobs on either machine.
  2. If that shortest time is on Machine A, schedule that job as early as possible. If that shortest time is on Machine B, schedule that job as late as possible.
  3. Remove that job from your list and repeat steps 1 and 2 with the remaining jobs until all are scheduled.

That’s it. It’s a greedy algorithm, always making the locally optimal choice, and it magically results in the globally optimal sequence.

Why This Matters: The Impact on Your Bottom Line

You might be thinking, "Okay, a sequence is a sequence. So how much difference can it really make? In practice, " The answer is: a lot. Minimizing the makespan has direct, tangible benefits And that's really what it comes down to..

  • Reduced Work-in-Process (WIP) Inventory: When jobs flow smoothly, they spend less time waiting between machines. This means less inventory sitting around, tying up capital and taking up floor space.
  • Improved On-Time Performance: A shorter total production cycle means you can promise more realistic delivery dates to your customers. Meeting deadlines builds trust and repeat business.
  • Increased Throughput: By squeezing idle time out of the schedule, you can complete more jobs in the same amount of time. This means you can handle more orders without needing to add shifts or machines.
  • Better Resource Utilization: Machines and operators are expensive. Johnson's rule helps keep them busy, reducing the cost per unit produced.

In short, applying this rule isn't just an academic exercise; it's a practical strategy for becoming a leaner, more competitive operation Worth keeping that in mind..

How It Works: A Step-by-Step Example

Theory is great, but let's see it in action. Imagine you have five jobs (J1, J2, J3, J4, J5) that need to go through Drilling (Machine A) and then Painting (Machine B). The processing times (in minutes) are as follows:

Job Machine A (Drill) Machine B (Paint)
J1 5 7
J2 1 2
J3 4 6
J4 8 9
J5 3 4

Now, let's apply Johnson's rule step-by-step.

Step 1: Look at all the times. The shortest time is 1 minute for Job 2 on Machine A.

  • Since it's on Machine A, we schedule Job 2 first.
  • Our sequence so far: [ J2, _, _, _, _ ]
  • Remove Job 2 from the list.

Step 2: Look at the remaining jobs (J1, J3, J4, J5). The shortest time is 3 minutes for Job 5 on Machine A The details matter here. Simple as that..

  • Since it's on Machine A, we schedule Job 5 as early as possible, which is next.
  • Our sequence so far: [ J2, J5, _, _, _ ]
  • Remove Job 5.

Step 3: Look at the remaining jobs (J1, J3, J4). The shortest time is 4 minutes for Job 3 on Machine A.

  • Again, on Machine A, so schedule it next.
  • Our sequence so far: [ J2, J5, J3, _, _ ]
  • Remove Job 3.

Step 4: Look at the remaining jobs (J1, J4). The shortest time is 5 minutes for Job 1 on Machine A.

  • On Machine A, so schedule it next.
  • Our sequence so far: [ J2, J5, J3, J1, _ ]
  • Remove Job 1.

Step 5: Only Job 4 is left. It automatically goes to the last position.

  • Final Optimal Sequence: J2 -> J5 -> J3 -> J1 -> J4

Now, let's calculate the total time (makespan) for this sequence to see the magic happen Practical, not theoretical..

  • J2: Starts drilling at 0, finishes at 1. Starts painting at 1, finishes at 3.
  • J5: Starts drilling at 1 (as soon as J2 is done), finishes at 4. Starts painting at 4 (machine is free), finishes at 8.
  • J3: Starts drilling at 4, finishes at 8. Starts painting at 8, finishes at 14.
  • J1: Starts drilling at 8, finishes at 13. Starts painting at 14 (machine is free), finishes at 21.
  • J4: Starts drilling at 13, finishes at 21. Starts painting at 21, finishes at 30.

Total Makespan: 30 minutes.

If we had used a different sequence, say the order they're listed (J1, J2, J3, J4, J5), the makespan would be significantly longer. The

Why the alternative order falls short

If we simply process the jobs in the order they were presented—J1, J2, J3, J4, J5—the timeline stretches out dramatically.

  • J1 begins drilling at 0 and finishes at 5; painting then occupies the second machine from 5 to 12.
  • J2 can only start drilling at 5, wrapping up at 6, and its painting slot runs from 6 to 8.
  • J3 follows, drilling from 6 to 10, then painting until 16, and so on.

Worth pausing on this one.

When the last job finally exits the painting stage, the clock reads roughly 45 minutes—a full 15 minutes longer than the schedule produced by Johnson’s algorithm. The bottleneck is not a single machine but the way the jobs are staggered; each subsequent operation waits for the previous one to finish on both the drill and the paint line, creating idle gaps that add up to a noticeable delay.

What makes Johnson’s rule so effective

The algorithm’s power lies in its greedy yet mathematically sound approach: it always picks the smallest remaining operation and places it at the earliest (if it belongs to the first machine) or latest (if it belongs to the second) available slot. Here's the thing — by doing so, it prevents the accumulation of “waiting time” on either side of the workflow. The rule also inherently balances the load between the two stages, ensuring that the slower of the two—usually the paint booth in a drill‑paint combo—does not become a hidden constraint that forces later jobs to linger.

Practical considerations when applying the rule

  1. Multiple machines per stage – If each stage contains more than one identical machine, the problem transforms into a flow‑shop with parallel resources. Johnson’s rule can still be used as a preprocessing step, but a more sophisticated heuristic (e.g., the dispatching rule “shortest processing time first” on each machine) is often required.
  2. Variable processing times – Real‑world environments may experience setup times, tool changes, or breakdowns. Incorporating these as extra “dummy” operations can preserve the spirit of Johnson’s logic while keeping the schedule realistic.
  3. Objective weighting – Sometimes the goal is not merely to minimize makespan but also to reduce tardiness, maximize on‑time delivery, or balance workload across crews. In such cases, Johnson’s schedule can serve as a baseline, and subsequent adjustments (e.g., local search or integer programming) can fine‑tune the plan.

Conclusion

Johnson’s rule offers a transparent, easily implementable pathway to shave minutes—or even hours—off production cycles in any two‑stage flow shop. Which means by systematically tackling the shortest operation and positioning it where it least disrupts the downstream flow, manufacturers can achieve a leaner, more predictable schedule without resorting to complex simulations or exhaustive search techniques. When coupled with a modest amount of operational insight—such as accounting for setup times or parallel machines—the method becomes a versatile tool that bridges theory and daily shop‑floor decision‑making, ultimately delivering higher throughput, lower labor costs, and a smoother workflow from start to finish Easy to understand, harder to ignore..

Fresh Out

Straight Off the Draft

Similar Ground

While You're Here

Thank you for reading about Using Johnson's Rule For 2-machine Scheduling The Sequence Is. We hope the information has been useful. Feel free to contact us if you have any questions. See you next time — don't forget to bookmark!
⌂ Back to Home