Skip to content

Mathematics and Statistics · Ch 15 — Assignment Problem and Sequencing

Processing n Jobs Through Two Machines

6

Processing n Jobs Through Two Machines

Consider nn jobs, each of which must be processed first on Machine 1 (M1M_1) and then on Machine 2 (M2M_2), in that order. Let AiA_i be the time of job ii on M1M_1 and BiB_i its time on M2M_2. We want the job order that minimises the total elapsed time. Johnson's rule gives it directly.

Johnson's rule (two machines).

  1. Look at all the processing times (AiA_i's and BiB_i's together) and pick the smallest one.
  2. If the smallest time is on M1M_1 (an AiA_i), schedule that job as early as possible (fill the left-most free position in the sequence).
  3. If the smallest time is on M2M_2 (a BiB_i), schedule that job as late as possible (fill the right-most free position).
  4. Cross out that job and repeat with the remaining jobs, working inwards from both ends, until all positions are filled.
  5. Ties may be broken arbitrarily (either choice gives an optimal — possibly different — sequence with the same total time).

Reading the elapsed and idle times. Once the order is fixed, draw a table with, for each job in sequence, its in-time and out-time on M1M_1 and on M2M_2:

  • On M1M_1 jobs run back-to-back: each job's in-time is the previous job's out-time.
  • On M2M_2, a job can start only when it has left M1M_1 and M2M_2 is free, i.e. its M2M_2 in-time =max⁡(its M1 out-time, previous job’s M2 out-time)= \max(\text{its } M_1 \text{ out-time},\ \text{previous job's } M_2 \text{ out-time}).

The total elapsed time is the last job's out-time on M2M_2. Idle time of a machine = total elapsed time −- (sum of that machine's processing times).

Tip

M1M_1 is never idle in the middle (it just runs job after job and then stops), so its idle time all sits at the end. M2M_2's idle time is what Johnson's rule is really minimising — it comes from M2M_2 waiting at the start (and in gaps) for jobs to arrive from M1M_1.

For the optimal sequence 1,5,4,2,31,5,4,2,3 of Worked Example 8, the in-times and out-times (in hours) on each machine work out as follows, reading the schedule job by job along the 00–2929 hour timeline:

Job (in sequence)M1M_1 inM1M_1 outM2M_2 inM2M_2 out
Job 10339
Job 537914
Definition 1Johnson's rule

The algorithm that gives the optimal job order for the two-machine sequencing problem: smallest time on M1M_1 →\to place earliest, smallest time o …

Definition 2No-passing rule

The requirement that jobs keep the same relative order on every machine — the order fixed for M1M_1 is also …