Motivation
Multi-agent scheduling studies a machine shared by parties with their own jobs and their own objectives. Agnetis, Mirchandani, Pacciarelli and Pacifici (Oper. Res. 52(2), 2004) introduced the two-agent single-machine model: agents A and B each own a set of jobs, and the schedule must serve both. The paper frames this within multiagent systems, where agents negotiate the use of a common resource over time, and its schedules are meant to support that negotiation: either the best schedule for one agent given what the other accepts, or the whole set of nondominated (Pareto-optimal) schedules. The paper classifies the complexity of the constrained problems 1∥fA:fB≤Q for the classical regular objectives.
One of its polynomial cases concerns the number of late jobs on both sides: agent B accepts schedules in which at most Q of its jobs are late, and agent A minimizes the number of its own late jobs. For a single agent, minimizing the number of late jobs is solved by Moore's algorithm (Moore 1968), and a dynamic program of the Lawler–Moore type over jobs in due-date order solves related weighted versions (Lawler & Moore 1969). §7 of the 2004 paper adapts that dynamic program to two agents by tracking the number of late jobs of each agent separately.
Setting
There are n=nA+nB jobs J1,…,Jn, all available at time 0. Job Jj has a processing time pj∈N, a due date dj∈N, and an owner, agent A or agent B. A schedule is a sequence of all n jobs processed on one machine from time 0 without idle time or preemption; the completion time Cj of Jj is the sum of the processing times of Jj and the jobs before it. Job Jj is late if Cj>dj and early otherwise. ∑UiX denotes the number of late jobs of agent X.
Given an integer Q≥0, the problem 1∥∑UiA:∑UiB≤Q asks for a schedule with ∑UiB≤Q (a feasible schedule) minimizing ∑UiA. An instance may have no feasible schedule at all.
The jobs are numbered in earliest-due-date (EDD) order, d1≤d2≤⋯≤dn. A partial schedule of {J1,…,Ji} is described by its set E of early jobs: the jobs of E run first, in EDD order, each completing by its due date, and the other jobs of {J1,…,Ji} count as late. The table C(i,h,k) is the minimum completion time ∑j∈Epj of the last early job over partial schedules of {J1,…,Ji} with at most h late A-jobs and at most k late B-jobs, and +∞ if there is none. It is computed by C(0,h,k)=0, C=+∞ at a negative index, and
C(i,h,k)=min{C(i−1,h,k)+pi+f(i,h,k); C(i−1,h−1,k)}
when Ji belongs to A (with k−1 in place of h−1 when Ji belongs to B), where f(i,h,k)=+∞ if C(i−1,h,k)+pi>di and 0 otherwise.
Formalization targets
Goal: Theorem 7.3, correctness
For a feasible instance with jobs in EDD order, C(n,h,Q)<+∞ for some h, and
h∗=min{h:C(nA+nB,h,Q)<+∞}
is the optimal value of 1∥∑UiA:∑UiB≤Q: some feasible schedule has exactly h∗ late A-jobs, and every feasible schedule has at least h∗.
Milestone: Lemma 7.1
A feasible instance has an optimal schedule whose early jobs come first, in EDD order, and whose late jobs come last.
Milestone: Lemma 7.2
For 0≤i≤n: if C(i,h,k) is finite, it is the minimum, attained, of ∑j∈Epj over partial schedules E of {J1,…,Ji} with at most h late A-jobs and at most k late B-jobs; if C(i,h,k)=+∞, there is no such partial schedule.
Significance
The theorem places 1∥∑UiA:∑UiB≤Q among the polynomially solvable two-agent problems (Table 1 of the paper lists it as O(n3)), in contrast with 1∥∑wiCiA:∑UiB, which the same paper shows binary NP-hard. Through the binary-search argument of §3.1, solving the constrained problem for every Q also yields the nondominated pairs (∑UiA,∑UiB) of the corresponding Pareto problem.
The result is proved in the paper; to the knowledge of this mission it has no machine-checked proof. The mission produces a checked correctness proof of the table, including the boundary convention, which the printed text leaves incomplete (see below). Further welcome work: the complexity bound in an explicit cost model, and the weighted variant.
Difficulty
The table is defined over partial schedules, in which the jobs outside the early set are only counted as late, while the problem is posed over complete sequences, in which lateness is measured: a job declared late may finish on time once it is appended. The correctness of h∗ must bridge the two objects in both directions, and the bridge is the structural Lemma 7.1, which the printed proofs use without detail. Lemma 7.2 is an optimal-substructure claim: it requires that the early set of {J1,…,Ji−1} minimizing total processing time is also the right one to extend by Ji, which holds only because of the EDD numbering. Finally, the printed boundary gives only C(0,0,0)=0; the natural reading C(0,h,k)=+∞ for h+k>0 makes Theorem 7.3 false, so the boundary must be read from the definition of C, not from the display.
Formalization scope
- Jobs are
Fin n, 0-based, numbered in EDD order, with an owner label ag : Fin n → Agent; this follows the paper's single numbered list in §7 rather than separate index sets per agent. EDD order is the hypothesis Monotone d, ties allowed. Data pj,dj,Q are natural numbers.
- Schedules and completion times are the published
MooreLateJobs.Shared.completionTime (sequences without idle time) and late jobs the published MooreLateJobs.NumLate.lateSet (late iff dj<Cj), reused as references with the data cast to R.
- The table takes values in
WithTop ℕ, with ⊤ for +∞; no large sentinel number is used. The boundary is C(0,h,k)=0 for all h,k≥0, the value forced by the "at most" definition of C; a negative index gives +∞; early means Cj≤dj, as in the recursion (the proof of Lemma 7.2 prints a strict "<").
- Lemma 7.2's "feasible schedules for the job set {J1,…,Ji}" is read as partial schedules given by their early set, matching the definition of C(i,h,k). Over complete sequences with actual lateness the statement would be false (one A-job with p=1, d=5, h=1: C(1,1,0)=0, but the job always completes early at time 1).
- Feasibility of the instance is a hypothesis of Lemma 7.1 and Theorem 7.3; h∗ is
Nat.find of the existence clause, which the goal asserts.
- The running time O(nA2nB+nAnB2) of Theorem 7.3 is not formalized.
- A trivializing formalization is ruled out: the goal fixes the table by its recursion and compares h∗ with the objective over all feasible sequences in both directions, so neither an arbitrary table nor a one-sided bound proves it.
Selected references
- A. Agnetis, P. B. Mirchandani, D. Pacciarelli, A. Pacifici, Scheduling Problems with Two Competing Agents, Operations Research 52(2), 229–242, 2004. https://doi.org/10.1287/opre.1030.0092
- J. M. Moore, An n Job, One Machine Sequencing Algorithm for Minimizing the Number of Late Jobs, Management Science 15(1), 102–109, 1968. https://doi.org/10.1287/mnsc.15.1.102
- E. L. Lawler, J. M. Moore, A Functional Equation and its Application to Resource Allocation and Sequencing Problems, Management Science 16(1), 77–84, 1969. https://doi.org/10.1287/mnsc.16.1.77
- J. R. Jackson, Scheduling a Production Line to Minimize Maximum Tardiness, Research Report 43, Management Science Research Project, UCLA, 1955.