Definition · A single-machine instance, and the six objectivesn jobs, job j with a processing time p_j, a weight w_j and a due date d_j. One machine runs one job at a time, every job is available at time zero, no job is interrupted, and the machine never idles. A schedule is then just an order.
For an order, C_j is the clock when job j finishes. The lateness is L_j = C_j − d_j, which may be negative; the tardiness is T_j = max(L_j, 0), which may not; and U_j is 1 if C_j > d_j and 0 otherwise. The six objectives are sum C, sum w C, L max, T max, sum T and sum U, and every one of them is to be made small.
The makespan C max is the seventh, and it is the one worth disposing of first. It is the largest C_j, and on this model it is sum p whatever the order, because the machine starts at zero and never stops. That is not a theorem about a clever schedule; it is arithmetic about a machine with no gaps in it.
Theorem · The makespan is constant on one machineWith every job available at time zero, no preemption and no forced idle time, every order has makespan sum p.
The machine starts the first job at time 0 and starts each later job the instant the previous one finishes, so at every moment before the end it is working.
The total amount of work is sum p and none of it is done twice or skipped, so the last job finishes at sum p. The order was never used in the argument, so it cannot matter.
□
Drop any one of the three assumptions and this stops being true, which is why they are stated rather than assumed. Release dates force idle time; a second machine makes the makespan the hard part; and a setup cost that depends on which job ran before makes the total work itself depend on the order.
One order, six verdicts
jobs A 6:1:8 B 4:2:4 C 5:4:12 D 3:3:6 E 7:1:20
order A B C D E the order they arrived in
p w d C wC L T late
A 6 1 8 6 6 -2 0
B 4 2 4 10 20 6 6 late
C 5 4 12 15 60 3 3 late
D 3 3 6 18 54 12 12 late
E 7 1 20 25 25 5 5 late
sum C 74 sum wC 165 L max 12
T max 12 sum T 26 late 4 of 5
makespan 25
Every column there is read off one clock. The C column is the running total of p; wC multiplies it by the weight; L subtracts the due date and is allowed to be negative; T clips the negatives to zero. Nothing in the table required a decision, and that is the point — the decision was the order, and it was made before any of this.
The same order, against every order there is
objective this order the best there is an order that attains it
sum C 74 65 D B C A E
sum wC 165 108 D C B A E
L max 12 6 B D A C E
T max 12 6 B D A C E
sum T 26 16 B D C A E
sum U 4 2 A C E B D
best at 0 of the 6 all 120 orders were scored
makespan 25 25 all 120 of them
Four different orders appear in that last column and none of them is the one typed. The arrival order is optimal for nothing, which is unremarkable; what is worth looking at is that no single order appears twice. D B C A E is shortest-first and is 9 worse than the best on weighted completion time. B D A C E is earliest-due-date and is 17 against a best total tardiness of 16. Being best at one of these is normally being beaten at the rest.
Example · Five rules, five winners, and a rival that losesThe lab fills the order box from a rule. Shortest processing time gives D B C A E, which attains sum C = 65. Smith's ratio p/w gives D C B A E, which attains sum wC = 108. Earliest due date gives B D A C E, which attains L max = 6 and T max = 6.
Now the two that lose. Heaviest-weight-first — a rule that sounds exactly as reasonable as the others — gives C D B A E and costs 111 on weighted completion time against the 108 Smith's ratio reaches. And shortest-first, which is provably optimal for sum C, costs 114 on the weighted version: the same order, a different question, and a worse answer than the rule that loses to it on the unweighted one.
So the first thing to do with a scheduling problem is not to choose a rule. It is to write down which of these six numbers you are being paid to make small, because the rules disagree and there is no tie-break between them that lives inside the arithmetic. A workshop that is judged on how many orders ship late wants sum U and should not be running shortest-first; a workshop billed by customer-hours waiting wants sum w C and should not be running earliest-due-date.
This is the path's hazard in its cheapest possible form. Every figure in the table above is exact and every claim of optimality has been checked against 120 orders. An answer that is right about sum C and was wanted for sum T is still wrong, and nothing in the solve will ever say so.