Sequencing with Earliness and Tardiness Penalties: With Due-Date Tolerances, the Least Optimal Common Due Date Puts One Job at an End of Its Tolerance WindowResearch Paper
Motivation
Earliness/tardiness (E/T) scheduling penalizes a job both for finishing late and for finishing early. It models just-in-time production, where an early job ties up inventory and a late one delays a customer. Baker and Scudder's review (Oper. Res. 38 (1990) 22–36) organized the single-machine E/T literature around a short list of structural properties of optimal schedules for a common due date shared by all jobs. For the problem without tolerances these properties go back to work the review surveys, beginning with Kanet (1981) for equal penalties.
The review then turns to due-date tolerances: a job pays nothing if it completes within a window around the due date, as in contracts that accept delivery within a few days of a target. Cheng (1988) studied a version in which the penalty is discontinuous at the window ends. Baker and Scudder state the continuous version and prove two generalized properties, III(G) and IV(G), in the paper's Appendix (pp. 34–35). They are the paper's own results; the rest of the review cites results proved elsewhere.
Setting
Fix jobs, processed on one machine in a fixed order, one after another, starting at time with no idle time between them. The job in position has a processing time , so it completes at . All jobs share a common due date , which is a decision variable. Job has tolerances and is free of penalty when . Outside its window it pays a unit earliness penalty or a unit tardiness penalty :
The tolerances are small compared with the processing times: for distinct jobs . Under this condition at most one job can avoid penalty costs. A due date is optimal if it minimizes over , and the least optimal due date is the smallest optimal one. The paper minimizes as a secondary criterion when there are alternative optima.
In Lean the model is BakerScudder1990.Tolerance.Instance n, with fields p u v α β : Fin n → ℝ, completion times I.C, earliness I.earliness d, tardiness I.tardiness d, total penalty I.cost d, and the predicates I.IsOptimalDueDate and I.IsLeastOptimalDueDate.
Formalization targets
Goal: Property IV(G)
Let be the least optimal due date and let be the number of jobs with . Then a least optimal due date exists, and exactly one of the following holds:
The case labels follow the paper's proof. The printed statement swaps them (see Formalization scope).
Milestones
- Case 1 of the proof of III(G). Between the window of job and the window of job , is affine with slope . Before the first window and after the last, the slopes are and .
- Case 2 of the proof of III(G). Inside the window of job , is affine with slope .
- Property III(G). A least optimal due date exists, and at it some job completes at or at .
- The two optimality conditions. The first pair of inequalities above makes the least optimal due date, and the second pair makes the least optimal due date.
Significance
III(G) reduces the choice of an optimal common due date for a given sequence to candidates. IV(G) goes further and names the candidate directly from prefix and suffix sums of the penalties. Baker and Scudder use this to say which V-shaped sequences remain candidates for optimality, so that an enumeration over sequences can discard the others. With the two properties reduce to the classical common-due-date conditions: some job completes exactly at , and which one is fixed by a weighted-median condition.
The results are proved in the paper, so the formalization does not settle an open question. It produces a machine-checked version of the Appendix, with two printed errors corrected, and a reusable model of single-machine E/T costs with tolerance windows. No earliness/tardiness model or result was formalized on Prove2Me as of October 2026.
Difficulty
Each linear piece of is elementary. The work lies in showing that the pieces are the claimed ones: the tolerance condition must imply that a job before position is early, and a job after it tardy, throughout each gap and window. That needs the ordering for every , not only for consecutive jobs. The second point is the least optimal due date. Optimality alone does not determine on a flat stretch of , where every point is optimal and only the left end satisfies the strict inequalities. Existence of a least minimizer also has to be shown, from the two outer slopes and finitely many breakpoints. Finally, the count of jobs without tardiness must be matched to the position of the critical job at both kinds of breakpoint.
Formalization scope
- Jobs are indexed by 0-based positions
Fin n, so the paper's job is position and the goal states the count of untardy jobs as . Data are real numbers. ismax 0 x. - The sequence starts at time and ranges over all of ; this is the unrestricted problem, which is the one where the paper asserts III(G) and IV(G). Shifting the start time is equivalent to shifting .
- "In an optimal schedule" is read for a fixed sequence and its least optimal due date. If a sequence and due date are jointly optimal with least among such optima, then is the least optimal due date for that sequence, so this reading implies the paper's.
- The tolerance condition is assumed only for distinct jobs. That is a weaker hypothesis than the literal "for all pairs ", so the theorems are stronger.
- Errata, corrected and disclosed. (i) IV(G) is printed (p. 30 and p. 35) with its two case labels swapped relative to its own proof. One job with has least optimal due date , so while the first condition pair holds. (ii) In Cases 1 and 2 the identity is printed as ; the correct one is . The milestone texts are quoted as printed; the Lean states the corrected mathematics.
- Existence of a least optimal due date is a conjunct of III(G) and of IV(G), and both assume . A version quantifying only over least optimal due dates without existence would be vacuous. A version for every optimal due date would be false. Neither is acceptable.
- The optimality conditions are stated as sufficient. Their converse fails when .
- Properties I and II (no inserted idle time, V-shaped sequences) are quoted in the paper, not proved there, and are not formalized. Optimization over sequences is out of scope.
- Welcome contributions: proofs of the two slope identities (finite sums of
max 0terms with a sign determined on each piece), a general lemma that a convex piecewise-linear coercive function on attains its least minimizer at a breakpoint, and the special cases as corollaries.
Selected references
- K. R. Baker and G. D. Scudder, Sequencing with earliness and tardiness penalties: a review, Operations Research 38(1) (1990) 22–36. https://doi.org/10.1287/opre.38.1.22
- J. J. Kanet, Minimizing the average deviation of job completion times about a common due date, Naval Research Logistics Quarterly 28 (1981) 643–651 (as cited in Baker and Scudder 1990).
- U. Bagchi, R. S. Sullivan and Y.-L. Chang, Minimizing mean absolute deviation of completion times about a common due date, Naval Research Logistics Quarterly 33 (1986) 227–240 (as cited in Baker and Scudder 1990).
- T. C. E. Cheng, Optimal common due date with limited completion time deviation, Computers & Operations Research 15 (1988) 91–96 (as cited in Baker and Scudder 1990).