Mathematics and Statistics · Ch 15 — Assignment Problem and Sequencing
Processing n Jobs Through Two Machines
Processing n Jobs Through Two Machines
Consider jobs, each of which must be processed first on Machine 1 () and then on Machine 2 (), in that order. Let be the time of job on and its time on . We want the job order that minimises the total elapsed time. Johnson's rule gives it directly.
Johnson's rule (two machines).
- Look at all the processing times ('s and 's together) and pick the smallest one.
- If the smallest time is on (an ), schedule that job as early as possible (fill the left-most free position in the sequence).
- If the smallest time is on (a ), schedule that job as late as possible (fill the right-most free position).
- Cross out that job and repeat with the remaining jobs, working inwards from both ends, until all positions are filled.
- 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 and on :
- On jobs run back-to-back: each job's in-time is the previous job's out-time.
- On , a job can start only when it has left and is free, i.e. its in-time .
The total elapsed time is the last job's out-time on . Idle time of a machine = total elapsed time (sum of that machine's processing times).
is never idle in the middle (it just runs job after job and then stops), so its idle time all sits at the end. 's idle time is what Johnson's rule is really minimising — it comes from waiting at the start (and in gaps) for jobs to arrive from .
For the optimal sequence 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 – hour timeline:
| Job (in sequence) | in | out | in | out |
|---|---|---|---|---|
| Job 1 | 0 | 3 | 3 | 9 |
| Job 5 | 3 | 7 | 9 | 14 |
The algorithm that gives the optimal job order for the two-machine sequencing problem: smallest time on place earliest, smallest time o …
The requirement that jobs keep the same relative order on every machine — the order fixed for is also …