Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Collections

Scheduling Theory

Machine, flowshop, jobshop and project scheduling: optimality of classic rules, complexity reductions, and approximation guarantees.

43 open missions

Missions

1–20 of 43
OpenCompletedAll
CombinatoricsGraph TheoryOperations Research+1·Captain: mikedeng1

Scheduling Subject to Resource Constraints: Classification and Complexity III: The Two-Machine Algorithm for Q2 with One Resource and Unit-Time Jobs Is OptimalResearch Paper

Motivation

Many production and computing systems run jobs on parallel machines that also draw on a shared, limited resource: tools, workers, memory, power. Adding such a resource to a scheduling problem can change its complexity entirely. Błażewicz, Lenstra and Rinnooy Kan (DAM 1983) extended the three-field classification α∣β∣γ\alpha\mid\beta\mid\gammaα∣β∣γ of Graham, Lawler, Lenstra and Rinnooy Kan by a resource field resλσρres\lambda\sigma\rhoresλσρ, and determined the complexity of every problem with unit-time jobs on identical or uniform machines under the makespan criterion. Their Fig. 2 separates the maximal polynomially solvable cases from the minimal NP-hard ones.

This mission formalizes the polynomial side. Two identical machines are easy under arbitrary resources (Theorem 1, due to Garey and Johnson, via maximum matching). Three identical machines with one resource are NP-hard in the strong sense (Theorem 4), and so are two uniform machines with unit resources (Theorem 3). What remains for uniform machines is settled by two algorithms: a sorting-and-shifting procedure for two uniform machines with one resource of arbitrary size (Theorem 5), and a bottleneck transportation problem for any number of uniform machines with one resource and 0–1 requirements (Theorem 6). The hardness results are the subject of the companion missions I and II.

Setting

There are nnn jobs J1,…,JnJ_1,\dots,J_nJ1​,…,Jn​ and mmm machines M1,…,MmM_1,\dots,M_mM1​,…,Mm​. Machine MiM_iMi​ has speed qi>0q_i>0qi​>0; every job has unit execution requirement, so it takes time 1/qi1/q_i1/qi​ on MiM_iMi​. Identical machines (PPP) have qi=1q_i=1qi​=1; uniform machines (QQQ) have arbitrary speeds. There are lll resources RhR_hRh​ with positive integer sizes shs_hsh​, and job JjJ_jJj​ needs a nonnegative integer amount rhjr_{hj}rhj​ of RhR_hRh​ throughout its execution. The field resλσρres\lambda\sigma\rhoresλσρ records restrictions: λ\lambdaλ bounds the number of resources, σ\sigmaσ their sizes, ρ\rhoρ the requirements, a dot meaning "part of the input". So res1⋅⋅res1{\cdot}{\cdot}res1⋅⋅ is one resource with arbitrary size and requirements, and res1⋅1res1{\cdot}1res1⋅1 is one resource with requirements in {0,1}\{0,1\}{0,1}.

A schedule gives every job a machine μ(j)\mu(j)μ(j) and a start time Sj≥0S_j\ge0Sj​≥0; the job is executed during [Sj,Cj)[S_j,C_j)[Sj​,Cj​) with Cj=Sj+1/qμ(j)C_j=S_j+1/q_{\mu(j)}Cj​=Sj​+1/qμ(j)​. It is feasible if jobs on the same machine do not overlap and, at every time ttt, the jobs executed at ttt use at most shs_hsh​ of each resource RhR_hRh​. The makespan is Cmax⁡=max⁡jCjC_{\max}=\max_j C_jCmax​=maxj​Cj​. No precedence constraints occur in this mission.

Formalization targets

Goal: Theorem 5, correctness of the algorithm

For Q2∣res1⋅⋅, pj=1∣Cmax⁡Q2\mid res1{\cdot}{\cdot},\,p_j=1\mid C_{\max}Q2∣res1⋅⋅,pj​=1∣Cmax​ with q1≥q2q_1\ge q_2q1​≥q2​: put all jobs on M1M_1M1​ in order of nonincreasing r1jr_{1j}r1j​, then repeatedly move the last job of M1M_1M1​ to the earliest feasible time on M2M_2M2​ after the jobs already there, as long as this strictly reduces Cmax⁡C_{\max}Cmax​. For every order with nonincreasing requirements, the resulting schedule AAA is feasible and

Cmax⁡(A)≤Cmax⁡(σ)for every feasible schedule σ.C_{\max}(A)\le C_{\max}(\sigma)\quad\text{for every feasible schedule }\sigma.Cmax​(A)≤Cmax​(σ)for every feasible schedule σ.

Milestones for the goal

The paper's proof has two steps, both milestones. Call a schedule an (a)–(c) schedule when (a) M1M_1M1​ runs its jobs back to back from time 000 in nonincreasing r1jr_{1j}r1j​, (b) M2M_2M2​ runs its jobs in nondecreasing r1kr_{1k}r1k​, and (c) every requirement on M1M_1M1​ is at least every requirement on M2M_2M2​.

  1. The algorithm's schedule is feasible, is an (a)–(c) schedule, and is best among feasible (a)–(c) schedules.
  2. Every feasible schedule can be transformed into a feasible (a)–(c) schedule with no larger Cmax⁡C_{\max}Cmax​.

Further results

  • Theorem 1. For P2∣res⋅⋅⋅, pj=1∣Cmax⁡P2\mid res{\cdot}{\cdot}{\cdot},\,p_j=1\mid C_{\max}P2∣res⋅⋅⋅,pj​=1∣Cmax​, with GGG the graph joining two jobs when they can run together and SSS a maximum matching of GGG, the optimal makespan is n−∣S∣n-|S|n−∣S∣.
  • Theorem 6. For Q∣res1⋅1, pj=1∣Cmax⁡Q\mid res1{\cdot}1,\,p_j=1\mid C_{\max}Q∣res1⋅1,pj​=1∣Cmax​ with the s1s_1s1​ fastest machines listed first, the optimal makespan equals the optimal value of a bottleneck transportation problem that assigns jobs to slots (machine, position) with cost k/qik/q_ik/qi​, resource jobs only to the s1s_1s1​ fastest machines.

Significance

Theorems 5 and 6 complete the classification of Fig. 2 for uniform machines: every special case of Q∣res⋅⋅⋅, pj=1∣Cmax⁡Q\mid res{\cdot}{\cdot}{\cdot},\,p_j=1\mid C_{\max}Q∣res⋅⋅⋅,pj​=1∣Cmax​ not covered by the hardness theorems has a polynomial algorithm. Theorem 1 is the classical reduction of two-machine resource scheduling to maximum matching, the model case for later work on scheduling with conflict graphs.

The paper proves these results briefly: "clearly" for the first half of Theorem 5, "obviously" for Theorem 1, and a one-paragraph model for Theorem 6. The exchange argument of Theorem 5 is presented "in an informal way" through five steps that pass through fractional, preempted jobs. A machine-checked proof makes these arguments exact on a model with real start times. No formalization of these results is known, and the platform had no statement about resource-constrained scheduling on uniform machines before this mission.

Difficulty

With q1≠q2q_1\ne q_2q1​=q2​ the job boundaries on the two machines are misaligned: a job on M2M_2M2​ overlaps parts of several jobs on M1M_1M1​, so the resource check cannot be done slot by slot, and discrete reasoning on integer time grids does not apply. The exchange argument of Theorem 5 must control the resource usage at every real time while jobs are moved between machines and reordered, and it has to end with a nonpreemptive schedule even though the paper's intermediate steps split jobs. For Theorem 1, the hard direction is the lower bound: a feasible schedule with arbitrary real start times must be converted into a matching, which is a statement about how unit jobs on two machines can overlap. For Theorem 6, one must show that restricting resource jobs to the fastest machines and to back-to-back positions loses nothing.

Formalization scope

  • Model. Jobs, machines and resources are Fin n, Fin m, Fin l (0-based). Speeds are positive reals, sizes positive naturals, requirements naturals. Start times are nonnegative reals, execution intervals are half-open, and the resource constraint is checked at every real time. Cmax⁡=0C_{\max}=0Cmax​=0 for n=0n=0n=0. The model carries a precedence digraph for consistency with the companion missions; every statement here assumes it has no arcs.
  • Implicit hypothesis. Theorems 1 and 5 assume every job fits alone (rhj≤shr_{hj}\le s_hrhj​≤sh​), which the paper leaves unstated; without it no feasible schedule exists.
  • The algorithm is a Lean definition following the page: the order is an argument (any nonincreasing order), "as early as possible" is the earliest start after M2M_2M2​'s last job at which the resource constraint holds throughout, and the loop stops at the first move that does not strictly reduce Cmax⁡C_{\max}Cmax​.
  • Optimality is always stated in full: feasibility plus a lower bound against every feasible schedule. No minimum is written as an infimum of a possibly empty set.
  • Theorem 6 is stated with 0–1 slot assignments, the interpretation the paper gives to xijkx_{ijk}xijk​; the page's constraint ∑k=1m\sum_{k=1}^{m}∑k=1m​ is read as ∑k=1n\sum_{k=1}^{n}∑k=1n​.
  • Not formalized: the running times O(ln2+n5/2)O(ln^2+n^{5/2})O(ln2+n5/2) (Theorem 1), O(nlog⁡n)O(n\log n)O(nlogn) (Theorem 5, including the phrase "This O(n log n) algorithm") and O(n3)O(n^3)O(n3) (Theorem 6), which depend on a machine model the paper does not fix and, for Theorems 1 and 6, on cited matching and transportation algorithms.
  • Ruled out: a formalization of the goal that proves optimality only against (a)–(c) schedules, against schedules with integer start times, or for one fixed tie-breaking order proves less than Theorem 5.

Contributions welcome: lemmas about step functions of resource usage on half-open intervals, a left-shifting lemma for unit-time schedules on two machines, and the exchange steps of Theorem 5 as separate lemmas.

Selected references

  • J. Błażewicz, J.K. Lenstra, A.H.G. Rinnooy Kan, Scheduling subject to resource constraints: classification and complexity, Discrete Applied Mathematics 5 (1983) 11–24. https://doi.org/10.1016/0166-218X(83)90012-4
  • M.R. Garey, D.S. Johnson, Complexity results for multiprocessor scheduling under resource constraints, SIAM Journal on Computing 4 (1975) 397–411. https://doi.org/10.1137/0204035
  • R.L. Graham, E.L. Lawler, J.K. Lenstra, A.H.G. Rinnooy Kan, Optimization and approximation in deterministic sequencing and scheduling: a survey, Annals of Discrete Mathematics 5 (1979) 287–326. https://doi.org/10.1016/S0167-5060(08)70356-X
  • S. Even, O. Kariv, An O(n^{2.5}) algorithm for maximum matching in general graphs, Proc. 16th IEEE FOCS (1975) 100–112. https://doi.org/10.1109/SFCS.1975.23
10 thms1 active userReviewed
Markov ChainOperations ResearchStochastic Systems·Captain: mikedeng1

Jobshop-Like Queueing Systems: The Equilibrium Distribution with State-Dependent Arrival and Service RatesResearch Paper

Motivation

A jobshop is a factory in which each job visits a sequence of machine groups, the sequence differing from job to job. J. R. Jackson's 1963 paper Jobshop-Like Queueing Systems (Management Science 10(1), 131–142) models such a shop as a network of queues and computes its long-run distribution of queue lengths in closed form. It generalizes his 1957 paper Networks of Waiting Lines (Operations Research 5(4)), which treated Poisson arrivals and multi-server centers, to arrival rates that depend on the total number of customers present and service rates that depend arbitrarily on the local queue length. The resulting product-form equilibrium is the starting point of queueing-network theory, which is used in performance analysis of manufacturing systems, computer systems and communication networks.

Timeline:

  • 1957: Jackson, Networks of Waiting Lines, constant external Poisson arrivals and multi-channel exponential servers; product-form equilibrium.
  • 1963: Jackson, this paper: state-dependent total arrival rate λ(S(kˉ))\lambda(S(\bar k))λ(S(kˉ)), queue-length-dependent service rates μ(n,k)\mu(n, k)μ(n,k), routings with self-loops and empty routings; Theorem (4.5).
  • 1967: Gordon and Newell, Closed Queuing Systems with Exponential Servers, the closed-network analogue.
  • 1979: Kelly, Reversibility and Stochastic Networks, the general theory of migration processes and partial balance.

Setting

There are N≥1N \ge 1N≥1 service centers, Center 1,…,N1, \dots, N1,…,N. A state vector kˉ=(k1,…,kN)\bar k = (k_1, \dots, k_N)kˉ=(k1​,…,kN​) has non-negative integer components, knk_nkn​ being the number of customers at Center nnn, and S(kˉ)=k1+⋯+kNS(\bar k) = k_1 + \dots + k_NS(kˉ)=k1​+⋯+kN​. The system (N,L,M,R)(N, L, M, R)(N,L,M,R) is given by:

  1. arrival rates λ(K)\lambda(K)λ(K), K=0,1,2,…K = 0, 1, 2, \dotsK=0,1,2,…: in state kˉ\bar kkˉ a customer arrives at rate λ(S(kˉ))\lambda(S(\bar k))λ(S(kˉ));
  2. service rates μ(n,k)\mu(n, k)μ(n,k): a service at Center nnn completes at rate μ(n,kn)\mu(n, k_n)μ(n,kn​);
  3. routing probabilities r(m,n)r(m, n)r(m,n), m∈[0,N]m \in [0, N]m∈[0,N], n∈[1,N+1]n \in [1, N+1]n∈[1,N+1]: an arriving customer's first center is nnn with probability r(0,n)r(0, n)r(0,n), its routing is empty with probability r(0,N+1)r(0, N+1)r(0,N+1); after service at Center mmm it moves to Center nnn with probability r(m,n)r(m, n)r(m,n) (possibly n=mn = mn=m) or leaves with probability r(m,N+1)r(m, N+1)r(m,N+1).

The paper's standing Assumptions (2.1)–(2.4): (2.1) either all λ(K)>0\lambda(K) > 0λ(K)>0, or λ(K)>0\lambda(K) > 0λ(K)>0 exactly for K≤K0K \le K_0K≤K0​; (2.2) μ(n,0)=0\mu(n, 0) = 0μ(n,0)=0 and μ(n,k)>0\mu(n, k) > 0μ(n,k)>0 for k≥1k \ge 1k≥1; (2.3) each row {r(m,n)}n∈[1,N+1]\{r(m, n)\}_{n \in [1, N+1]}{r(m,n)}n∈[1,N+1]​ is a probability distribution; (2.4) the traffic equations

e(n)=r(0,n)+∑m=1Ne(m) r(m,n),n∈[1,N],(2.5)e(n) = r(0, n) + \sum_{m=1}^N e(m)\, r(m, n), \qquad n \in [1, N], \tag{2.5}e(n)=r(0,n)+m=1∑N​e(m)r(m,n),n∈[1,N],(2.5)

have a unique solution, and it is non-negative.

The process is defined by its transition probabilities over a short interval (p. 134), from which the paper derives the balance equations (3.1) for P(kˉ,t)P(\bar k, t)P(kˉ,t). An equilibrium state probability distribution is a probability distribution ppp on state vectors such that P(kˉ,t)≡p(kˉ)P(\bar k, t) \equiv p(\bar k)P(kˉ,t)≡p(kˉ) solves (3.1). With

W(K)=∏i=0K−1λ(i),w(kˉ)=∏n=1N∏i=1kne(n)μ(n,i),T(K)=∑S(kˉ)=Kw(kˉ),W(K) = \prod_{i=0}^{K-1}\lambda(i), \quad w(\bar k) = \prod_{n=1}^N\prod_{i=1}^{k_n}\frac{e(n)}{\mu(n, i)}, \quad T(K) = \sum_{S(\bar k) = K} w(\bar k),W(K)=i=0∏K−1​λ(i),w(kˉ)=n=1∏N​i=1∏kn​​μ(n,i)e(n)​,T(K)=S(kˉ)=K∑​w(kˉ),

the constant π\piπ is {∑K≥0W(K)T(K)}−1\{\sum_{K \ge 0} W(K) T(K)\}^{-1}{∑K≥0​W(K)T(K)}−1 when the series converges and 000 otherwise.

Formalization targets

Goal: Theorem (4.5)

If π>0\pi > 0π>0, then

p(kˉ)=π w(kˉ) W(S(kˉ))(4.6)p(\bar k) = \pi\, w(\bar k)\, W(S(\bar k)) \tag{4.6}p(kˉ)=πw(kˉ)W(S(kˉ))(4.6)

is an equilibrium state probability distribution; and if the arrival rates are bounded, it is the only one. The goal fixes no constants; the condition π>0\pi > 0π>0 is the paper's.

Milestones

  1. The series in (4.4) converges to a positive number or diverges to +∞+\infty+∞ (§4, p. 136).
  2. If π>0\pi > 0π>0, (4.6) is a probability distribution (first claim of the proof sentence, p. 136).
  3. (4.6) satisfies equations (3.1) at every state (second claim, p. 136).
  4. Under bounded arrival rates, an equilibrium distribution is unique (§4, p. 135).

Companion

Theorem (6.3) in its case K∗=0K^* = 0K∗=0, kn∗=+∞k_n^* = +\inftykn∗​=+∞: with constant arrival rate λ(K)≡λ(0)\lambda(K) \equiv \lambda(0)λ(K)≡λ(0) and pn(0)>0p_n(0) > 0pn​(0)>0 for every nnn, the equilibrium is p(kˉ)=∏npn(kn)p(\bar k) = \prod_n p_n(k_n)p(kˉ)=∏n​pn​(kn​), pnp_npn​ being the normalized wn(k)=∏i=1kλ(0)e(n)/μ(n,i)w_n(k) = \prod_{i=1}^k \lambda(0)e(n)/\mu(n, i)wn​(k)=∏i=1k​λ(0)e(n)/μ(n,i).

Significance

Theorem (4.5) states that the queue lengths of a whole network have an explicit stationary law, determined by the routing only through the visit ratios e(n)e(n)e(n), and that conditionally on the total S(kˉ)=KS(\bar k) = KS(kˉ)=K it does not depend on the arrival process. With constant arrival rate it factorizes into independent one-center laws (Theorem (6.3)), each that of a single queue fed at rate λ(0)e(n)\lambda(0)e(n)λ(0)e(n); this is the form in which Jackson networks enter textbooks. State-dependent arrivals cover systems with balking or finite capacity: taking λ(K)=0\lambda(K) = 0λ(K)=0 for K>K0K > K_0K>K0​ caps the population.

The result is classical and proved; it has no machine-checked proof on this platform. The platform has Kelly–Yudovina's open migration process (KellyStochasticNetworks.open_migration_equilibrium): constant external arrivals, no self-loops, a full-balance conclusion without uniqueness. It is the companion (6.3) in substance but not the general theorem: arrival rates depending on the total population are not in it. This mission contributes the state-dependent model, a stationary form of Jackson's own equations (3.1), and a uniqueness statement.

Difficulty

The balance equations are an infinite system in Z≥0N\mathbb{Z}_{\ge 0}^NZ≥0N​. Substituting (4.6) gives terms with shifted states, guarded by non-negativity of components, a double sum over ordered pairs of distinct centers, self-loops appearing only in the outflow factor 1−r(n,n)1 - r(n, n)1−r(n,n), and centers with e(n)=0e(n) = 0e(n)=0, where www vanishes. Checking each state term by term against the traffic equations requires the diagonal of (2.5), excluded in (3.1), to be handled exactly. Summing (4.6) to one requires regrouping a series over Z≥0N\mathbb{Z}_{\ge 0}^NZ≥0N​ by the finite fibres of SSS.

Uniqueness is the hard part. The paper gives no proof: footnote 5 refers to a limit theorem for Markov processes and to the communication structure of non-transient states. A solution of the algebraic balance equations need not be the stationary law of the process when the process can explode, and the model allows explosion with π>0\pi > 0π>0 (e.g. N=1N = 1N=1, λ(K)=4K\lambda(K) = 4^Kλ(K)=4K, μ(1,k)=2⋅4k−1\mu(1,k) = 2\cdot 4^{k-1}μ(1,k)=2⋅4k−1). Uniqueness therefore depends on non-explosion as well as on the communication structure of the states, and neither is addressed on the page.

Formalization scope

Centers are Fin N with N>0N > 0N>0; states are Fin N → ℕ; rates are real. The routing is one function r : Option (Fin N) → Option (Fin N) → ℝ, where none is the index 000 in the first argument and N+1N + 1N+1 in the second. A structure JobshopSystem N bundles λ,μ,r,e\lambda, \mu, r, eλ,μ,r,e with Assumptions (2.1)–(2.4) as fields; eee is a parameter satisfying (2.5), uniqueness and non-negativity, not a formula. Balance sys q k is the stationary equation (3.1) at k for an arbitrary q, and IsEquilibrium sys q is q≥0q \ge 0q≥0, HasSum q 1, and Balance at every state. π\piπ is defined with an explicit if Summable … then … else 0.

Explicit choices, each stated in the item where it applies:

  • Correction of (3.1). The paper prints the arrival outflow as λ(S(kˉ))\lambda(S(\bar k))λ(S(kˉ)):

    dP(kˉ,t)dt=−[λ(S(kˉ))+∑nμ(n,kn)(1−r(n,n))]P(kˉ,t)+…\dfrac{dP(\bar k, t)}{dt} = -[\lambda(S(\bar k)) + \sum_n \mu(n, k_n)(1 - r(n, n))]P(\bar k, t) + \dotsdtdP(kˉ,t)​=−[λ(S(kˉ))+∑n​μ(n,kn​)(1−r(n,n))]P(kˉ,t)+…

    Its transition probabilities (p. 134) give λ(S(kˉ))∑n=1Nr(0,n)\lambda(S(\bar k))\sum_{n=1}^N r(0, n)λ(S(kˉ))∑n=1N​r(0,n), since an arrival with an empty routing leaves the state unchanged. The two agree only when r(0,N+1)=0r(0, N+1) = 0r(0,N+1)=0, and with the printed coefficient Theorem (4.5) is false (N=1N = 1N=1, r(0,1)=r(0,2)=1/2r(0,1) = r(0,2) = 1/2r(0,1)=r(0,2)=1/2, r(1,2)=1r(1,2) = 1r(1,2)=1, constant rates, at kˉ=0\bar k = 0kˉ=0). The formalization uses the coefficient the transition probabilities give. It does not assume r(0,N+1)=0r(0, N+1) = 0r(0,N+1)=0: the paper allows empty routings.

  • Uniqueness under bounded arrival rates. Uniqueness (milestone 4 and the goal's second conjunct) assumes ∃Λ, ∀K, λ(K)≤Λ\exists \Lambda,\ \forall K,\ \lambda(K) \le \Lambda∃Λ, ∀K, λ(K)≤Λ. The paper asserts uniqueness without proof, citing a limit theorem for regular processes; bounded arrival rates make the process regular and hold for every example in the paper. Existence and the formula carry no added hypothesis.

  • Companion (6.3). System (N,L,M,R)∗(N, L, M, R)^*(N,L,M,R)∗ of §5 is not formalized in the paper and not here; only its case K∗=0K^* = 0K∗=0, kn∗=+∞k_n^* = +\inftykn∗​=+∞ is stated.

A trivializing formalization is ruled out: Balance and IsEquilibrium are stated for an arbitrary function on states and never mention www, WWW or π\piπ, and equilibrium is neither defined as (4.6) nor as detailed or partial balance.

Useful infrastructure: summation over Fin N → ℕ grouped by total (Finset.Nat.antidiagonalTuple), and a non-explosion and uniqueness theory for countable-state continuous-time chains, which is reusable beyond this mission. Not included: the limit lim⁡t→∞P(kˉ,t)=p(kˉ)\lim_{t\to\infty} P(\bar k, t) = p(\bar k)limt→∞​P(kˉ,t)=p(kˉ), which needs a construction of the process; the equivalence of (2.4) with finiteness of routings; Theorem (5.5) and (5.7)–(5.9).

Selected references

  • J. R. Jackson, Jobshop-Like Queueing Systems, Management Science 10(1), 131–142, 1963. https://doi.org/10.1287/mnsc.10.1.131
  • J. R. Jackson, Networks of Waiting Lines, Operations Research 5(4), 518–521, 1957. https://doi.org/10.1287/opre.5.4.518
  • W. J. Gordon and G. F. Newell, Closed Queuing Systems with Exponential Servers, Operations Research 15(2), 254–265, 1967. https://doi.org/10.1287/opre.15.2.254
  • F. P. Kelly, Reversibility and Stochastic Networks, Wiley, 1979. https://www.statslab.cam.ac.uk/~frank/BOOKS/book/whole.pdf
  • A. T. Bharucha-Reid, Elements of the Theory of Markov Processes and Their Applications, McGraw-Hill, 1960 (Theorem 2.9, p. 102, cited in footnote 5).
6 thms2 active usersReviewed
CombinatoricsLinear OptimizationOperations Research+1·Captain: mikedeng1

Santa Claus Schedules Jobs on Unrelated Machines: The Configuration LP Has Integrality Gap at Most 33/17Research Paper

Motivation

Scheduling jobs on unrelated machines so as to minimize the makespan (the time at which the last machine finishes) is one of the central problems of approximation algorithms. For the general problem, Lenstra, Shmoys and Tardos (1990) gave a 2-approximation and showed that no polynomial-time algorithm achieves a factor below 3/23/23/2 unless P = NP; closing the gap between 3/23/23/2 and 222 has been open since.

The restricted assignment problem is the special case in which every job jjj has a single size pjp_jpj​ and may only run on a given set Γ(j)\Gamma(j)Γ(j) of machines. The 3/23/23/2 hardness already holds here, and the best known algorithms were still 222-approximations. Every linear program previously used for the problem has integrality gap 222, so a better LP lower bound was the natural target.

Svensson (2011) showed that the configuration LP of Bansal and Sviridenko (2006), whose variables assign whole sets of jobs to machines, has integrality gap at most 33/17≈1.941233/17 \approx 1.941233/17≈1.9412. Its optimum therefore gives a polynomial-time estimate of the optimal makespan within a factor strictly better than 222.

  • 1990: Lenstra, Shmoys, Tardos, 2-approximation for unrelated machines, and 3/23/23/2 hardness already for restricted assignment.
  • 2006: Bansal and Sviridenko introduce the configuration LP for the max–min variant (the Santa Claus problem).
  • 2008: Feige shows the configuration LP has constant integrality gap for restricted Santa Claus, and Asadpour, Feige and Saberi (2008) give a local search proof of a factor-4 gap.
  • 2011: Svensson adapts that local search to makespan and proves the gap 33/1733/1733/17 for restricted assignment (arXiv:1011.1168).

Setting

An instance consists of finite sets JJJ (jobs) and MMM (machines), sizes pj≥0p_j \ge 0pj​≥0, and for each job a set Γ(j)⊆M\Gamma(j) \subseteq MΓ(j)⊆M. A schedule is a map σ:J→M\sigma : J \to Mσ:J→M with σ(j)∈Γ(j)\sigma(j) \in \Gamma(j)σ(j)∈Γ(j). The load of machine iii is ∑j:σ(j)=ipj\sum_{j : \sigma(j) = i} p_j∑j:σ(j)=i​pj​, and the makespan is the largest load. OPT\mathrm{OPT}OPT is the least makespan of a schedule.

For a target makespan TTT, a configuration for machine iii is a set C⊆JC \subseteq JC⊆J of jobs that may all run on iii (i∈Γ(j)i \in \Gamma(j)i∈Γ(j) for j∈Cj \in Cj∈C) with p(C)=∑j∈Cpj≤Tp(C) = \sum_{j \in C} p_j \le Tp(C)=∑j∈C​pj​≤T. Write C(i,T)\mathcal C(i,T)C(i,T) for the set of configurations. The configuration LP asks for xi,C≥0x_{i,C} \ge 0xi,C​≥0 with

[C-LP]∑C∈C(i,T)xi,C≤1(i∈M),∑i∈M ∑C∈C(i,T), C∋jxi,C≥1(j∈J).\text{[C-LP]}\qquad \sum_{C \in \mathcal C(i,T)} x_{i,C} \le 1 \quad (i \in M), \qquad \sum_{i \in M}\ \sum_{C \in \mathcal C(i,T),\ C \ni j} x_{i,C} \ge 1 \quad (j \in J).[C-LP]C∈C(i,T)∑​xi,C​≤1(i∈M),i∈M∑​ C∈C(i,T), C∋j∑​xi,C​≥1(j∈J).

Its dual has variables yi,zj≥0y_i, z_j \ge 0yi​,zj​≥0 and constraints yi≥∑j∈Czjy_i \ge \sum_{j \in C} z_jyi​≥∑j∈C​zj​ for all iii and C∈C(i,T)C \in \mathcal C(i,T)C∈C(i,T). OPTLP\mathrm{OPT}_{LP}OPTLP​ is the least TTT at which [C-LP] is feasible, and OPTLP≤OPT\mathrm{OPT}_{LP} \le \mathrm{OPT}OPTLP​≤OPT.

In the Lean development these are configs Γ p T i, CLPFeasible Γ p T, CLPDualFeasible Γ p T y z and schedLoad p σ i, in the namespace RestrictedAssignment.Svensson.

Formalization targets

Goal: Theorem 4.1

For every instance with p≥0p \ge 0p≥0 and every T≥0T \ge 0T≥0,

[C-LP] feasible at T ⟹ ∃ σ:J→M,  σ(j)∈Γ(j) ∀j,∑j:σ(j)=ipj≤3317 T  ∀i.\text{[C-LP] feasible at } T \ \Longrightarrow\ \exists\, \sigma : J \to M,\ \ \sigma(j) \in \Gamma(j)\ \forall j,\quad \sum_{j : \sigma(j) = i} p_j \le \tfrac{33}{17}\, T \ \ \forall i .[C-LP] feasible at T ⟹ ∃σ:J→M,  σ(j)∈Γ(j) ∀j,j:σ(j)=i∑​pj​≤1733​T  ∀i.

Equivalently OPT≤3317 OPTLP\mathrm{OPT} \le \tfrac{33}{17}\,\mathrm{OPT}_{LP}OPT≤1733​OPTLP​. The statement is scale-free and does not define OPTLP\mathrm{OPT}_{LP}OPTLP​.

Milestones

The milestones follow the paper's proof, which normalizes OPTLP=1\mathrm{OPT}_{LP} = 1OPTLP​=1 and sets R=16/17R = 16/17R=16/17:

  1. a dual solution with ∑iyi<∑jzj\sum_i y_i < \sum_j z_j∑i​yi​<∑j​zj​ makes [C-LP] infeasible;
  2. the local search, Algorithm 2 (ExtendSchedule), keeps its partial schedule valid (load at most 1+R1 + R1+R, at most one big job per machine);
  3. when the algorithm has no potential move, an explicit pair (y∗,z∗)(y^*, z^*)(y∗,z∗) is dual feasible (Claim 4.7) and has ∑y∗<∑z∗\sum y^* < \sum z^*∑y∗<∑z∗ (Claim 4.8);
  4. hence, if [C-LP] is feasible, a potential move always exists (Lemma 4.6);
  5. the algorithm has no infinite run (Lemma 4.9);
  6. [C-LP] feasible at T=1T = 1T=1 gives a schedule of makespan at most 1+16/171 + 16/171+16/17.

Three facts from Section 2 complete the list: normalization by scaling, OPTLP≤OPT\mathrm{OPT}_{LP} \le \mathrm{OPT}OPTLP​≤OPT, and monotonicity of feasibility in TTT.

Significance

The theorem shows that the configuration LP is a strictly stronger relaxation than those behind the factor-222 algorithms. With the known polynomial-time approximate solvability of the LP, it gives a polynomial-time algorithm that estimates the optimal makespan of restricted assignment within 33/17+ϵ33/17 + \epsilon33/17+ϵ. The local search in the proof finds a schedule of the same quality, but it is not known to run in polynomial time. Later work lowered the constant to 11/611/611/6 (Jansen and Rohwedder, 2017) along the same lines.

The result is proved on paper. As far as known, no part of it has a machine-checked proof. Formalizing it gives:

  • a reusable definition of the configuration LP and its dual certificate;
  • a precise, nondeterministic model of a local search whose termination rests on a lexicographic potential;
  • a check of a proof that has many cases. The formalization already exposed two edge cases:
    • Claim 4.8 fails when jnewj_{\mathrm{new}}jnew​ has size 000 and no admissible machine;
    • the termination proof needs positive job sizes. With a job of size 000, the algorithm can move it back and forth between two tied machines forever.

The milestones are stated with the corresponding hypotheses.

Difficulty

The obvious approach, rounding a fractional configuration solution, loses a factor 222. If each machine takes one configuration and the collisions of jobs chosen twice or not at all are repaired, the repair can double a load. This is where every earlier LP-based bound stalls.

The milestones along the paper's route are hard for two reasons. First, the dual pair (y∗,z∗)(y^*, z^*)(y∗,z∗) rounds job sizes down by class (big to 11/1711/1711/17, medium to 9/179/179/17). Proving ∑y∗<∑z∗\sum y^* < \sum z^*∑y∗<∑z∗ requires a case analysis over how each blocked machine came to be blocked. The two claims are therefore false for arbitrary states of the search and hold only for states the algorithm actually reaches, so the invariants of reachable states have to be formalized too. Second, the search both adds and removes blockers, so no simple quantity decreases at every step. Termination needs a potential defined on the whole history of the search.

Formalization scope

Jobs and machines are finite types with decidable equality, sizes are real numbers with pj≥0p_j \ge 0pj​≥0, and admissible machines are a Finset per job. Schedules are total maps J→MJ \to MJ→M with σ(j)∈Γ(j)\sigma(j) \in \Gamma(j)σ(j)∈Γ(j) stated explicitly. Partial schedules are maps J→J \toJ→ Option M. Constants are exact rationals in R\mathbb RR. Values of moves live in Lex (ℝ × ℝ).

Algorithm 2 is a step relation Step, not a function. The move of minimum lexicographic value is a hypothesis on the chosen pair, so every tie-breaking rule is covered. The blocker tree is stored as its list of blockers in insertion order. Claims 4.7, 4.8 and Lemma 4.6 quantify over states reachable from the initial state, as their proofs require. Lemma 4.9 asserts that no infinite run exists.

Three statements would trivialize the goal, and the formalization rules them out:

  • a schedule allowed to use machines outside Γ(j)\Gamma(j)Γ(j);
  • a target T<0T < 0T<0;
  • an LP missing either constraint row.

Theorem 1.1 (polynomial time), the separation oracle, and Section 3's two-size case are not part of the mission.

Useful contributions include:

  • the weak-duality certificate;
  • the scaling and monotonicity facts;
  • the invariants of reachable states (each job lies in at most one blocker, blockers on a machine are never reassigned while present);
  • the two claims and the termination argument.

The configuration LP definitions are reusable for the Santa Claus problem and for bin packing.

Selected references

  • O. Svensson, Santa Claus Schedules Jobs on Unrelated Machines, arXiv:1011.1168v2, 2011; SIAM J. Comput. 41(5), 2012. https://arxiv.org/abs/1011.1168
  • J. K. Lenstra, D. B. Shmoys, É. Tardos, Approximation algorithms for scheduling unrelated parallel machines, Math. Programming 46, 1990. https://doi.org/10.1007/BF01585745
  • N. Bansal, M. Sviridenko, The Santa Claus problem, STOC 2006. https://doi.org/10.1145/1132516.1132522
  • A. Asadpour, U. Feige, A. Saberi, Santa Claus meets hypergraph matchings, APPROX 2008; ACM Trans. Algorithms 8(3), 2012. https://doi.org/10.1145/2229163.2229168
  • K. Jansen, L. Rohwedder, On the configuration-LP of the restricted assignment problem, SODA 2017. https://arxiv.org/abs/1611.01934
13 thms2 active usersReviewed
CombinatoricsGraph TheoryOperations Research+1·Captain: mikedeng1

Project Scheduling with Time Windows and Scarce Resources II: A Time-Feasible Strict Order Is Feasible iff It Breaks Up Every Minimal Forbidden SetTextbook

Motivation

Resource-constrained project scheduling asks for start times of the activities of a project so that prescribed time lags between activities are respected and, at every moment, the activities in progress do not require more of any renewable resource (staff, machines, reactors) than is available. When the time lags include maximum time lags (deadlines relative to other activities), even finding a feasible schedule is NP-hard, and the feasible region is in general neither convex nor connected. Branch-and-bound methods for this problem (the problem PS∣temp∣Cmax⁡PS|temp|C_{\max}PS∣temp∣Cmax​ in the notation of Neumann, Schwindt & Zimmermann) do not search over schedules directly. They search over strict orders of the activities, that is, over sets of precedence constraints "jjj starts after iii has finished".

This mission formalizes the theory behind that search, as developed by Bartusch, Möhring & Radermacher (1988) and presented in §2.3 of Neumann, Schwindt & Zimmermann, Project Scheduling with Time Windows and Scarce Resources (2nd ed., Springer 2003). Its goal, Theorem 2.3.10, says when a strict order resolves every resource conflict.

Setting

A project has activities V={0,1,…,n+1}V = \{0, 1, \dots, n+1\}V={0,1,…,n+1}, where 000 and n+1n+1n+1 are fictitious activities marking the project's start and completion and 1,…,n1, \dots, n1,…,n are the real activities (n≥1n \ge 1n≥1). Activity iii has duration pi∈Z≥0p_i \in \mathbb Z_{\ge 0}pi​∈Z≥0​, with p0=pn+1=0p_0 = p_{n+1} = 0p0​=pn+1​=0 and pi>0p_i > 0pi​>0 for real activities. Time lags are encoded in the project network NNN: an arc ⟨i,j⟩∈E\langle i, j\rangle \in E⟨i,j⟩∈E with integer weight δij\delta_{ij}δij​ imposes Sj−Si≥δijS_j - S_i \ge \delta_{ij}Sj​−Si​≥δij​. The book's standing assumptions give, for every node iii, a path from 000 to iii of nonnegative length and a path from iii to n+1n+1n+1 of length at least pip_ipi​.

A schedule is a vector S∈Rn+2S \in \mathbb R^{n+2}S∈Rn+2 with S0=0S_0 = 0S0​=0 and Si≥0S_i \ge 0Si​≥0. It is time-feasible if Sj−Si≥δijS_j - S_i \ge \delta_{ij}Sj​−Si​≥δij​ for all arcs. The set of time-feasible schedules is ST\mathcal S_TST​.

Each renewable resource k∈Rk \in \mathcal Rk∈R has a capacity RkR_kRk​, and activity iii uses rik≤Rkr_{ik} \le R_krik​≤Rk​ units of it while in progress, with r0k=rn+1,k=0r_{0k} = r_{n+1,k} = 0r0k​=rn+1,k​=0. The active set at time ttt is A(S,t)={i∣Si≤t<Si+pi}\mathcal A(S,t) = \{ i \mid S_i \le t < S_i + p_i\}A(S,t)={i∣Si​≤t<Si​+pi​}, and SSS is resource-feasible if ∑i∈A(S,t)rik≤Rk\sum_{i \in \mathcal A(S,t)} r_{ik} \le R_k∑i∈A(S,t)​rik​≤Rk​ for all kkk and all t≥0t \ge 0t≥0. The feasible region S\mathcal SS consists of the schedules that are both time-feasible and resource-feasible.

A strict order O⊆V×VO \subseteq V \times VO⊆V×V is an asymmetric, transitive relation. Its order polyhedron is

ST(O)={S∈ST∣Sj≥Si+pi for all (i,j)∈O}.\mathcal S_T(O) = \{ S \in \mathcal S_T \mid S_j \ge S_i + p_i \ \text{for all } (i,j) \in O\}.ST​(O)={S∈ST​∣Sj​≥Si​+pi​ for all (i,j)∈O}.

OOO is time-feasible if ST(O)≠∅\mathcal S_T(O) \ne \emptysetST​(O)=∅, and feasible if moreover ST(O)⊆S\mathcal S_T(O) \subseteq \mathcal SST​(O)⊆S. The order network N(O)N(O)N(O) adds to NNN, for each (i,j)∈O(i,j) \in O(i,j)∈O, an arc ⟨i,j⟩\langle i,j\rangle⟨i,j⟩ of weight pip_ipi​, or raises the weight of an existing arc to max⁡(δij,pi)\max(\delta_{ij}, p_i)max(δij​,pi​). A schedule SSS induces the strict order O(S)={(i,j)∣i≠j, Sj≥Si+pi}O(S) = \{(i,j) \mid i \ne j,\ S_j \ge S_i + p_i\}O(S)={(i,j)∣i=j, Sj​≥Si​+pi​}.

A set F⊆VF \subseteq VF⊆V is forbidden if ∑i∈Frik>Rk\sum_{i \in F} r_{ik} > R_k∑i∈F​rik​>Rk​ for some resource kkk. It is a minimal forbidden set if no proper subset of it is forbidden. F\mathcal FF denotes the set of minimal forbidden sets.

Formalization targets

Goal: Theorem 2.3.10 (Bartusch et al. 1988)

For every time-feasible strict order OOO,

O feasible  ⟺  ∀F∈F ∃ i,j∈F: N(O) has a path from i to j of length≥pi.O \text{ feasible} \iff \forall F \in \mathcal F\ \exists\, i, j \in F:\ N(O) \text{ has a path from } i \text{ to } j \text{ of length} \ge p_i .O feasible⟺∀F∈F ∃i,j∈F: N(O) has a path from i to j of length≥pi​.

Milestones

  1. Proposition 2.3.3. A strict order OOO is time-feasible if and only if N(O)N(O)N(O) has no cycle of positive length.
  2. Bartusch et al.'s criterion (quoted in the proof of Theorem 2.3.10). A schedule SSS is resource-feasible if and only if every F∈FF \in \mathcal FF∈F contains distinct i,ji, ji,j with Sj≥Si+piS_j \ge S_i + p_iSj​≥Si​+pi​.
  3. Proposition 2.3.6. For time-feasible SSS, the strict order O(S)O(S)O(S) is feasible if and only if S∈SS \in \mathcal SS∈S.
  4. Theorem 2.3.7. S=⋃O∈OST(O)\mathcal S = \bigcup_{O \in \mathcal O} \mathcal S_T(O)S=⋃O∈O​ST​(O), where O\mathcal OO is the finite set of inclusion-minimal feasible strict orders.
  5. Remark 2.3.11. A time-feasible schedule partitions FFF if and only if every A(S,t)∩F\mathcal A(S,t) \cap FA(S,t)∩F, t≥0t \ge 0t≥0, is feasible. A time-feasible order is feasible if and only if it breaks up all (equivalently, all minimal) forbidden sets. A time-feasible schedule is feasible if and only if it partitions all forbidden sets.

Significance

Theorem 2.3.10 turns the feasibility of a strict order, which is a statement about infinitely many schedules and all times ttt, into a finite check: one longest-path computation in N(O)N(O)N(O) for each minimal forbidden set. Together with Proposition 2.3.3 and the structural Theorem 2.3.7, it shows that S\mathcal SS is a finite union of polyhedra indexed by feasible strict orders. This justifies the enumeration schemes of Chapter 2 of the book (branching on the pairs that break up a minimal forbidden set) and the notions of active and stable schedules developed in later sections.

All results in this mission are proved in the literature. For the resource-feasibility criterion, the book cites Bartusch et al. (1988) instead of proving it. To our knowledge, none of these results has been machine-checked. A formal development would give a verified foundation for the order-based description of the feasible region, on which later missions of this series (active schedules, delaying modes, stable schedules) build.

Difficulty

The sufficiency half of the goal is short once the criterion is available: a path of length ≥pi\ge p_i≥pi​ in N(O)N(O)N(O) forces Sj≥Si+piS_j \ge S_i + p_iSj​≥Si​+pi​ on the whole order polyhedron. The necessity half carries the content. If for some minimal forbidden set FFF no path in N(O)N(O)N(O) between elements of FFF reaches the required length, one must construct a schedule in ST(O)\mathcal S_T(O)ST​(O) in which all activities of FFF are simultaneously in progress. This means adding the reverse constraints Sj−Si<piS_j - S_i < p_iSj​−Si​<pi​ for all i,j∈Fi, j \in Fi,j∈F to the temporal system without creating a cycle of positive length, while keeping S0=0S_0 = 0S0​=0 and S≥0S \ge 0S≥0. The obvious reading "no single arc gives a precedence, so they can overlap" fails because maximum time lags combine into long paths through activities outside FFF. The standing assumption that every node is reachable from 000 by a path of nonnegative length is needed here: without it the equivalence is false.

Formalization scope

  • The activity set is Fin (n + 2): 0 is the project start and Fin.last (n + 1) the project completion. Durations and resource data are natural numbers, arc weights are integers, and start times are real numbers.
  • Strict orders are finite sets of pairs, Finset (Fin (n+2) × Fin (n+2)), required to be asymmetric and transitive.
  • Resource constraints hold for every t≥0t \ge 0t≥0. The book's (2.1.4) writes 0≤t≤dˉ0 \le t \le \bar d0≤t≤dˉ. In Chapter 2 schedules are not bounded by dˉ\bar ddˉ, and the book's proofs and Remark 2.3.11 use all t≥0t \ge 0t≥0. This is a convention of the whole series, not a strengthening.
  • A path is a walk (nodes may repeat) and its length is the sum of its arc weights. A cycle of positive length is a closed walk with at least one arc and positive length. For a time-feasible order, N(O)N(O)N(O) has no cycle of positive length. In that case "some path of length ≥pi\ge p_i≥pi​" coincides with the book's "longest path length ≥pi\ge p_i≥pi​", so no supremum over paths appears.
  • The standing assumptions of the book form a single predicate Project.StandingAssumptions, which is a hypothesis of every theorem: n≥1n \ge 1n≥1; p0=pn+1=0p_0 = p_{n+1} = 0p0​=pn+1​=0 and pi>0p_i > 0pi​>0 otherwise; no loops; r0k=rn+1,k=0r_{0k} = r_{n+1,k} = 0r0k​=rn+1,k​=0 and rik≤Rkr_{ik} \le R_krik​≤Rk​; and the two path conditions of p. 8.
  • Minimal forbidden sets and inclusion-minimal feasible orders use Mathlib's Minimal, taken among forbidden sets and among feasible strict orders respectively.
  • The goal is an equivalence, and both directions are required. Weakening it to sufficiency, or dropping the time-feasibility of OOO or the minimality of FFF, would change the theorem. Keeping the book's cut-off t≤dˉt \le \bar dt≤dˉ would also change it, because a schedule could then have an unresolved conflict after dˉ\bar ddˉ and still be called feasible.
  • Theorem 1.3.3 of Chapter 1 (a time-feasible schedule exists if and only if the network has no cycle of positive length) is needed for Proposition 2.3.3 and is restated here for N(O)N(O)N(O). Chapter 1's mission is drafted separately.
  • Useful infrastructure beyond this mission: longest-path potentials on integer-weighted digraphs without positive cycles (feasibility of difference constraints), and the walk and cycle API on Network. Contributions of this general lemma layer are welcome.

Selected references

  • K. Neumann, C. Schwindt, J. Zimmermann, Project Scheduling with Time Windows and Scarce Resources, 2nd ed., Springer, 2003. https://doi.org/10.1007/978-3-540-24800-2
  • M. Bartusch, R. H. Möhring, F. J. Radermacher, Scheduling project networks with resource constraints and time windows, Annals of Operations Research 16 (1988), 201–240. https://doi.org/10.1007/BF02283745
9 thms2 active usersReviewed
Graph TheoryLinear OptimizationOperations Research+1·Captain: mikedeng1

Project Scheduling with Time Windows and Scarce Resources VI: Stable, Semistable, Pseudostable and Quasistable Schedules Are Extreme Points of the Feasible RegionTextbook

Motivation

Resource-constrained project scheduling with minimum and maximum time lags is the model behind make-to-order production, process-industry batch planning and large engineering projects. When the objective is the project duration or another regular function (nondecreasing in every start time), an optimum can be found among schedules that cannot be shifted to the left. Many objectives in practice are nonregular: net present value, earliness–tardiness costs, resource levelling and resource investment. For these, delaying an activity can pay, and "shift as far left as possible" no longer identifies a finite set of candidate schedules.

Neumann, Nübel and Schwindt (Math. Methods Oper. Res. 52, 2000) answered this with classes of schedules defined by the absence of pairs of opposite shifts: stable, semistable, pseudostable and quasistable schedules, the mirror image of active, semiactive, pseudoactive and quasiactive schedules. Section 3.2 of Neumann, Schwindt and Zimmermann, Project Scheduling with Time Windows and Scarce Resources (Springer 2003), shows that these classes are exactly the extreme points of the feasible region and of its natural convex pieces. The classification of objective functions in §3.3, and every enumeration scheme of the later chapter, rests on that correspondence.

Setting

A project has activities V={0,1,…,n+1}V=\{0,1,\dots,n+1\}V={0,1,…,n+1} with n≥1n\ge1n≥1. Activity 000 is the project beginning and n+1n+1n+1 the project completion. Activity iii has an integer duration pip_ipi​, with p0=pn+1=0p_0=p_{n+1}=0p0​=pn+1​=0 and pi>0p_i>0pi​>0 otherwise. The project network NNN has node set VVV and arcs ⟨i,j⟩∈E\langle i,j\rangle\in E⟨i,j⟩∈E with integer weights δij\delta_{ij}δij​, each encoding a temporal constraint Sj−Si≥δijS_j-S_i\ge\delta_{ij}Sj​−Si​≥δij​. A prescribed deadline dˉ∈N\bar d\in\mathbb Ndˉ∈N is included as the backward arc ⟨n+1,0⟩\langle n+1,0\rangle⟨n+1,0⟩ of weight −dˉ-\bar d−dˉ. Renewable resources kkk have capacities RkR_kRk​, and activity iii uses rik≤Rkr_{ik}\le R_krik​≤Rk​ units while it runs.

A schedule is a vector S∈Rn+2S\in\mathbb R^{n+2}S∈Rn+2 of start times. The time-feasible region ST\mathcal S_TST​ collects the schedules with S0=0S_0=0S0​=0, S≥0S\ge0S≥0 and Sj−Si≥δijS_j-S_i\ge\delta_{ij}Sj​−Si​≥δij​ on every arc; it is a polyhedron, and a polytope when every activity precedes n+1n+1n+1 as in Remarks 1.1.2. A schedule is resource-feasible if at every time t≥0t\ge0t≥0 the running activities A(S,t)={i∣Si≤t<Si+pi}\mathcal A(S,t)=\{i\mid S_i\le t<S_i+p_i\}A(S,t)={i∣Si​≤t<Si​+pi​} use at most RkR_kRk​ units of every resource. The feasible region is S=ST∩SR\mathcal S=\mathcal S_T\cap\mathcal S_RS=ST​∩SR​. It is in general neither convex nor connected.

A schedule induces the strict order O(S)={(i,j)∣i≠j, Sj≥Si+pi}O(S)=\{(i,j)\mid i\ne j,\ S_j\ge S_i+p_i\}O(S)={(i,j)∣i=j, Sj​≥Si​+pi​}. For a strict order OOO, the order polytope is ST(O)={S∈ST∣Sj≥Si+pi ((i,j)∈O)}\mathcal S_T(O)=\{S\in\mathcal S_T\mid S_j\ge S_i+p_i\ ((i,j)\in O)\}ST​(O)={S∈ST​∣Sj​≥Si​+pi​ ((i,j)∈O)}. The order OOO is feasible if ∅≠ST(O)⊆S\emptyset\ne\mathcal S_T(O)\subseteq\mathcal S∅=ST​(O)⊆S. The schedule polytope of SSS is ST(O(S))\mathcal S_T(O(S))ST​(O(S)).

A shift moves a schedule SSS to S′≠SS'\neq SS′=S. It is global if both are feasible, local if in addition a continuous path inside S\mathcal SS joins them, order-preserving if O(S)⊆O(S′)O(S)\subseteq O(S')O(S)⊆O(S′), and order-monotone if O(S)O(S)O(S) and O(S′)O(S')O(S′) are comparable. Two shifts from SSS to S′S'S′ and S′′S''S′′ are opposite if S′′−S=λ(S′−S)S''-S=\lambda(S'-S)S′′−S=λ(S′−S) with λ<0\lambda<0λ<0. A feasible schedule is stable, semistable, pseudostable or quasistable if no pair of opposite global, local, order-monotone or order-preserving shifts, respectively, starts at it. It is antiactive if no global right-shift starts at it.

Formalization targets

Goal: Theorem 3.2.10

For every feasible schedule SSS:

(a) S antiactive  ⟺  S maximal in S,(b) S stable  ⟺  S∈ext⁡S,(c) S semistable  ⟺  S∈ext⁡CS, CS the component of S containing S,(d) S pseudostable  ⟺  S∈ext⁡ST(O) for all feasible O⊆O(S),(e) S quasistable  ⟺  S∈ext⁡ST(O(S)).\begin{aligned} &\text{(a) } S\text{ antiactive}\iff S\text{ maximal in }\mathcal S, \qquad \text{(b) } S\text{ stable}\iff S\in\operatorname{ext}\mathcal S,\\ &\text{(c) } S\text{ semistable}\iff S\in\operatorname{ext}C_S,\ C_S\text{ the component of }\mathcal S\text{ containing }S,\\ &\text{(d) } S\text{ pseudostable}\iff S\in\operatorname{ext}\mathcal S_T(O)\ \text{for all feasible }O\subseteq O(S),\\ &\text{(e) } S\text{ quasistable}\iff S\in\operatorname{ext}\mathcal S_T(O(S)). \end{aligned}​(a) S antiactive⟺S maximal in S,(b) S stable⟺S∈extS,(c) S semistable⟺S∈extCS​, CS​ the component of S containing S,(d) S pseudostable⟺S∈extST​(O) for all feasible O⊆O(S),(e) S quasistable⟺S∈extST​(O(S)).​

Milestones

  • Lemma 3.2.4: opposite order-preserving or order-monotone shifts can be taken uniform (all moved activities move by one common amount).
  • Lemma 3.2.8: pseudostable schedules are the local extreme points of S\mathcal SS, the points on no segment that lies entirely in S\mathcal SS.
  • Lemma 3.2.9: when SSS is not pseudostable, a segment through SSS can be found inside one order polytope ST(O)\mathcal S_T(O)ST​(O) with O⊆O(S)O\subseteq O(S)O⊆O(S) feasible.
  • Proposition 3.2.13: the quasistable schedules, and every class below them in Fig. 3.2.6, form finite sets.
  • Proposition 3.2.16: every vertex of ST\mathcal S_TST​ is the unique solution of S0=0S_0=0S0​=0, Sj−Si=δijS_j-S_i=\delta_{ij}Sj​−Si​=δij​ on the arcs of a spanning tree of NNN; for the minimal point, an outtree rooted at 000.
  • Theorem 3.2.18: SSS is quasistable iff it is the unique solution of such a tree system in the schedule network N(O(S))N(O(S))N(O(S)).
  • Remark 3.2.7: every activity of a quasistable schedule is tied to another one by a tight duration or time lag, so quasistable schedules are integer-valued.

Significance

The theorem makes four shift-defined classes computable objects: extreme points of explicit polytopes, or of a finite union of them. Together with Proposition 3.2.13, it gives each class of nonregular objective functions in §3.3 a finite candidate set of schedules among which an optimum can be sought (§3.2, p. 207). Theorem 3.2.18 gives the certificate for quasistable schedules: a spanning tree of the schedule network, which the later sections use to enumerate vertices.

The results are proved in the book, except Lemma 3.2.9, whose proof is cited to Neumann, Nübel and Schwindt (2000). As far as a search of the platform shows, none of them has been formalized. A formalization supplies the missing details, among them that connected and path components of S\mathcal SS coincide and the degenerate vertices behind the tree description. It also produces a reusable library of schedule classes on real-valued start times.

Difficulty

Part (b) is close to the definition, since a pair of opposite global shifts is a segment through SSS with feasible endpoints. The content is elsewhere. In (c) the definition speaks of continuous trajectories and the right-hand side of connected components, so the proof needs local path-connectedness of a finite union of polytopes. In (d) the feasible region is not convex: an order-monotone shift keeps SSS and S′S'S′ in a common order polytope, but S′S'S′ and S′′S''S′′ may lie in different ones. The segment through SSS has to be moved into a single order polytope ST(O)\mathcal S_T(O)ST​(O) with O⊆O(S)O\subseteq O(S)O⊆O(S), and that is Lemma 3.2.9. Proposition 3.2.16 and Theorem 3.2.18 need the passage from n+2n+2n+2 linearly independent tight constraints to a spanning tree. They must allow degenerate vertices, where several trees describe the same point, and must represent the nonnegativity constraints Si≥0S_i\ge0Si​≥0 by arcs of the network.

Formalization scope

Activities are Fin (n + 2); start times are real vectors Fin (n + 2) → ℝ with the pointwise order. Durations, capacities and requirements are natural numbers, and time lags integers. The deadline is the arc ⟨n+1,0⟩\langle n+1,0\rangle⟨n+1,0⟩ of weight −dˉ-\bar d−dˉ, which is always present, as §3.1 prescribes. Resource constraints are imposed for every t≥0t\ge0t≥0, not only for 0≤t≤dˉ0\le t\le\bar d0≤t≤dˉ as (3.1.2) writes; the proofs use the first reading. Extreme points are Mathlib's Set.extremePoints ℝ, maximal points are Maximal for the pointwise order, and components are connectedComponentIn. A local shift carries an explicit continuous map from unitInterval into S\mathcal SS. Strict orders are asymmetric, transitive relations on VVV. A spanning tree is an arc set of size n+1n+1n+1 whose underlying simple graph is connected. Its arcs must be arcs of NNN, resp. of N(O(S))N(O(S))N(O(S)), with their network weights, so an arbitrary equation system does not count.

The schedule classes are defined through shifts and nothing else. Defining "stable" as "extreme point", or "pseudostable" as "local extreme point", would make the goal and Lemma 3.2.8 tautologies, and such encodings are ruled out. Proposition 3.2.16 carries the book's standing convention (§1.2, p. 8) that every node is reached from 000 by a walk of nonnegative length. Without it the statement is false.

The definitions duplicate, under this mission's namespace, the model of the book's Chapter 2 missions (order polytopes, shifts, active classes). They are written to be merged with those once published. Contributions on the geometry of finite unions of polytopes, and on spanning-tree bases of difference constraint systems, are reusable beyond this mission.

Selected references

  • K. Neumann, C. Schwindt, J. Zimmermann, Project Scheduling with Time Windows and Scarce Resources, 2nd ed., Springer, 2003, §3.1–3.2. https://doi.org/10.1007/978-3-540-24800-2
  • K. Neumann, H. Nübel, C. Schwindt, Active and stable project scheduling, Mathematical Methods of Operations Research 52 (2000), 441–465. https://doi.org/10.1007/s001860000092
  • M. Bartusch, R. H. Möhring, F. J. Radermacher, Scheduling project networks with resource constraints and time windows, Annals of Operations Research 16 (1988), 199–240. https://doi.org/10.1007/BF02283745
12 thms1 active userReviewed
Complexity TheoryOperations ResearchOptimization+1·Captain: mikedeng1

Project Scheduling with Time Windows and Scarce Resources IX: Deciding Feasibility with Cumulative Resources Is NP-Complete Even for Acyclic Project NetworksTextbook

Motivation

Project scheduling with cumulative resources models production and logistics projects in which activities fill and empty storage: an activity withdraws material from an inventory when it starts and deposits its output when it completes, and every inventory must stay between a safety stock and a storage capacity. Neumann, Schwindt and Zimmermann treat this model in §2.12 of Project Scheduling with Time Windows and Scarce Resources (2nd ed., Springer 2003, doi:10.1007/978-3-540-24800-2) and use it in their process-industry applications.

Before any optimization, a scheduler must know whether a feasible schedule exists at all. Theorem 2.12.1 of the book answers the complexity of this question: it is NP-complete, and it stays NP-complete when the project network has no cycles. The contrast with renewable resources (machines, workers) is the point of the theorem: with renewable resources, the feasibility problem is NP-complete as well (Theorem 2.3.13, after Bartusch, Möhring and Radermacher, 1988), but an acyclic network always admits a feasible schedule when every requirement is within capacity.

The mission also collects the two other reductions the book proves in full: Proposition 2.5.4 (recognizing whether an activity lies in some minimal delaying alternative, the branching object of the book's branch-and-bound procedures, is NP-complete) and Proposition 3.4.2 (maximizing weighted start-time deviations, a resource-levelling objective, is NP-hard without any resource constraints).

Setting

A project has activities V={0,1,…,n+1}V=\{0,1,\dots,n+1\}V={0,1,…,n+1} with n≥1n\ge1n≥1; activity 000 is the project beginning and n+1n+1n+1 the project completion. Activity iii has a duration pi∈Np_i\in\mathbb Npi​∈N, with p0=pn+1=0p_0=p_{n+1}=0p0​=pn+1​=0. The project network NNN has arc set EEE; an arc ⟨i,j⟩\langle i,j\rangle⟨i,j⟩ with integer weight δij\delta_{ij}δij​ imposes the temporal constraint Sj−Si≥δijS_j-S_i\ge\delta_{ij}Sj​−Si​≥δij​ on the start times. A schedule is a real vector S=(Si)i∈VS=(S_i)_{i\in V}S=(Si​)i∈V​ with S0=0S_0=0S0​=0 and Si≥0S_i\ge0Si​≥0; it is time-feasible if it meets every temporal constraint.

Cumulative resources k∈Rγk\in\mathcal R^\gammak∈Rγ carry integer demands rikr_{ik}rik​: rik<0r_{ik}<0rik​<0 depletes −rik-r_{ik}−rik​ units at the start SiS_iSi​, rik>0r_{ik}>0rik​>0 replenishes rikr_{ik}rik​ units at the completion Si+piS_i+p_iSi​+pi​, and r0kr_{0k}r0k​ is the initial stock. The inventory at time ttt is

rk(S,t)=∑i: rik<0, Si≤trik+∑i: rik>0, Si+pi≤trik.r_k(S,t)=\sum_{i:\ r_{ik}<0,\ S_i\le t} r_{ik}+\sum_{i:\ r_{ik}>0,\ S_i+p_i\le t} r_{ik}.rk​(S,t)=i: rik​<0, Si​≤t∑​rik​+i: rik​>0, Si​+pi​≤t∑​rik​.

With safety stock R‾k\underline R_kR​k​ and storage capacity R‾k\overline R_kRk​ (integers, R‾k≤∑i∈Vrik≤R‾k\underline R_k\le\sum_{i\in V}r_{ik}\le\overline R_kR​k​≤∑i∈V​rik​≤Rk​ by (2.12.1)), SSS is feasible if it is time-feasible and R‾k≤rk(S,t)≤R‾k\underline R_k\le r_k(S,t)\le\overline R_kR​k​≤rk​(S,t)≤Rk​ for every kkk and every t≥0t\ge0t≥0. The decision problem of PSc∣temp∣Cmax⁡PSc|temp|C_{\max}PSc∣temp∣Cmax​ asks whether a feasible schedule exists.

For renewable resources k∈Rk\in\mathcal Rk∈R with capacities RkR_kRk​ and requirements rik∈Nr_{ik}\in\mathbb Nrik​∈N, a set F⊆VF\subseteq VF⊆V is forbidden if ∑i∈Frik>Rk\sum_{i\in F}r_{ik}>R_k∑i∈F​rik​>Rk​ for some kkk. A delaying alternative for FFF is a set B⊆FB\subseteq FB⊆F such that F∖BF\setminus BF∖B is not forbidden; it is minimal if no proper subset of BBB is one.

In PS∞∣temp,dˉ∣fPS\infty|temp,\bar d|fPS∞∣temp,dˉ∣f there are no resources, schedules must also satisfy Sn+1≤dˉS_{n+1}\le\bar dSn+1​≤dˉ, and the objective here is f(S)=−∑i∈V∑j>iwij∣Sj−Si∣f(S)=-\sum_{i\in V}\sum_{j>i}w_{ij}|S_j-S_i|f(S)=−∑i∈V​∑j>i​wij​∣Sj​−Si​∣ with weights wij≥0w_{ij}\ge0wij​≥0.

NP and NP-completeness are taken in the sense of Cook's Turing-machine formulation, with instances written in binary.

Formalization targets

Goal: Theorem 2.12.1

Assuming PARTITION is NP-complete,

L={codes of instances of PSc∣temp∣Cmax⁡ with a feasible schedule}  and  Lacyc=L∩{N acyclic}L=\{\text{codes of instances of }PSc|temp|C_{\max}\text{ with a feasible schedule}\}\ \text{ and }\ L_{\mathrm{acyc}}=L\cap\{N\text{ acyclic}\}L={codes of instances of PSc∣temp∣Cmax​ with a feasible schedule}  and  Lacyc​=L∩{N acyclic}

are both NP-complete.

Milestones

  1. Membership (proof of Theorem 2.12.1): L∈NPL\in\mathrm{NP}L∈NP and Lacyc∈NPL_{\mathrm{acyc}}\in\mathrm{NP}Lacyc​∈NP.
  2. Reduction correctness (proof of Theorem 2.12.1): for sizes s(1),…,s(ν)s(1),\dots,s(\nu)s(1),…,s(ν) with even sum, the project with r0=rn+1=−∑s(i)/2r_0=r_{n+1}=-\sum s(i)/2r0​=rn+1​=−∑s(i)/2, ri=s(i)r_i=s(i)ri​=s(i), R‾=R‾=0\underline R=\overline R=0R​=R=0, d0,n+1min⁡=1d^{\min}_{0,n+1}=1d0,n+1min​=1 has an acyclic network, and it has a feasible schedule iff the sizes split into two parts of equal sum.
  3. Polynomial transformation: PARTITION≤pLacyc\mathrm{PARTITION}\le_p L_{\mathrm{acyc}}PARTITION≤p​Lacyc​.
  4. Proof of Proposition 2.5.4, one resource: for j∗∈B⊆Fj^*\in B\subseteq Fj∗∈B⊆F, BBB is a minimal delaying alternative iff R−min⁡j∈Brj<∑i∈F∖Bri≤RR-\min_{j\in B}r_j<\sum_{i\in F\setminus B}r_i\le RR−minj∈B​rj​<∑i∈F∖B​ri​≤R.
  5. Proof of Proposition 2.5.4, with rj∗=1r_{j^*}=1rj∗​=1: a minimal delaying alternative contains j∗j^*j∗ iff some A⊆F∖{j∗}A\subseteq F\setminus\{j^*\}A⊆F∖{j∗} has ∑i∈Ari=R\sum_{i\in A}r_i=R∑i∈A​ri​=R.
  6. Proposition 2.5.4: assuming SUBSET SUM is NP-complete, deciding whether some minimal delaying alternative for a forbidden set FFF contains j∗∈Fj^*\in Fj∗∈F is NP-complete.
  7. Proof of Proposition 3.4.2: a graph has a cut of at least MMM edges iff the constructed instance has a schedule with Si∈{0,1}S_i\in\{0,1\}Si​∈{0,1} and ∑i<jwij∣Sj−Si∣≥M\sum_{i<j}w_{ij}|S_j-S_i|\ge M∑i<j​wij​∣Sj​−Si​∣≥M.
  8. Proposition 3.4.2: assuming SIMPLE MAX CUT is NP-complete, the decision version of PS∞∣temp,dˉ∣−∑∑wij∣Sj−Si∣PS\infty|temp,\bar d|-\sum\sum w_{ij}|S_j-S_i|PS∞∣temp,dˉ∣−∑∑wij​∣Sj​−Si​∣ is NP-hard.

The goal follows from milestones 1 and 3 together with the transfer of NP-completeness along ≤p\le_p≤p​ (on the platform as CookPvsNP.npComplete_of_polyReducible).

Significance

The result. Theorem 2.12.1 explains why the book's methods for cumulative resources enumerate precedence relations between depleting and replenishing activities (minimal surplus and shortage sets, Theorem 2.12.4) instead of relying on a constructive feasibility test: unless P = NP, no polynomial algorithm decides feasibility, even for acyclic networks, where the renewable-resource case is trivial. Proposition 2.5.4 does the same for the branching scheme of §2.5, and Proposition 3.4.2 places the resource-levelling objectives of Chapter 3 among the hard ones.

Formalizing it. The three results are proved in the book, as short reductions whose delicate steps are left implicit: the polynomial size of a certificate for real-valued schedules, the handling of instances outside the construction (odd sums, empty index sets, oversized items), and the passage from an optimization problem to its decision version. None of the three reductions is machine-checked anywhere known. The mission states them against a single Turing-machine model and a single binary encoding, reusing the published definitions CookPvsNP_defs, so that the reductions compose with the Cook–Levin development already on the platform.

Difficulty

The mathematical content of the reductions is short; the difficulty is in the complexity-theoretic layer. Two steps resist the obvious argument.

First, NP membership. The book's certificate is a schedule, and a schedule is a real vector: it is not a string. A verifier needs a finite certificate of polynomial length, and it is not immediate that a feasible instance has a feasible schedule with small rational (or integer) start times, since the inventory constraints involve strict orderings between event times.

Second, polynomial-time computability in a concrete Turing-machine model. The transformation must compute, on a one-tape machine, binary codes of sums and halves of the input sizes, an arc list of quadratic length, and must map malformed strings to fixed no-instances. Informal "clearly polynomial" arguments have to become explicit machine constructions or a reusable library of closure properties.

Formalization scope

The Lean development fixes the following conventions.

  • Activities are Fin (n + 2), with the completion Fin.last (n + 1); resources are Fin m. Start times are real.
  • The inventory constraints hold for every t≥0t\ge0t≥0, not only for 0≤t≤dˉ0\le t\le\bar d0≤t≤dˉ as (2.12.2) is printed; the book's proofs use this reading.
  • Real activities may have duration 000 in PSc∣temp∣Cmax⁡PSc|temp|C_{\max}PSc∣temp∣Cmax​: the reduction of Theorem 2.12.1 uses only such activities.
  • Instances are coded as lists of integers written in binary over the alphabet {0,1,−,#}\{0,1,-,\#\}{0,1,−,#}; arc weights are listed for every ordered pair of activities together with an arc indicator. Well-formedness (standing assumptions such as n≥1n\ge1n≥1, p0=pn+1=0p_0=p_{n+1}=0p0​=pn+1​=0, no loops, (2.12.1), rik≤Rkr_{ik}\le R_krik​≤Rk​) is part of each language.
  • "Acyclic" means the nodes admit a numbering increasing along every arc.
  • The NP-completeness of PARTITION, SUBSET SUM and SIMPLE MAX CUT (Karp, 1972) enters as a hypothesis of the corresponding theorem; these are not results of the book.
  • Proposition 3.4.2 is stated for the decision version of the optimization problem, with natural-number weights and threshold.

A trivializing formalization is ruled out: the languages contain only codes of well-formed instances, the encoding is injective, and the hypotheses on the source problems are true theorems, so the goal cannot hold vacuously or by a degenerate encoding.

A complete development needs closure properties of polynomial-time computable functions in Cook's model (composition, binary arithmetic, list manipulation), transitivity of ≤p\le_p≤p​, and a small-certificate lemma for systems of difference constraints with strict and non-strict inequalities. These are reusable for every NP-hardness proof stated in the same framework. Contributions to any of them, to the instance-level milestones 2, 4, 5 and 7, or to the NP-completeness of PARTITION, SUBSET SUM and SIMPLE MAX CUT in this model, are welcome.

Selected references

  • K. Neumann, C. Schwindt, J. Zimmermann, Project Scheduling with Time Windows and Scarce Resources, 2nd ed., Springer, 2003. doi:10.1007/978-3-540-24800-2
  • M. Bartusch, R. H. Möhring, F. J. Radermacher, Scheduling project networks with resource constraints and time windows, Annals of Operations Research 16, 1988.
  • M. R. Garey, D. S. Johnson, Computers and Intractability: A Guide to the Theory of NP-Completeness, W. H. Freeman, 1979.
  • R. M. Karp, Reducibility among combinatorial problems, in Complexity of Computer Computations, Plenum, 1972. doi:10.1007/978-1-4684-2001-2_9
  • S. Cook, The P versus NP Problem, Clay Mathematics Institute problem description. claymath.org
14 thms3 active usersReviewed
CombinatoricsOperations ResearchOptimization+1·Captain: mikedeng1

Online Scheduling of a Single Machine to Minimize Total Weighted Completion Time: Delayed SWPT Has Competitive Ratio 2Research Paper

Motivation

A single machine must process nnn jobs that arrive over time. Job jjj is released at time rjr_jrj​, needs pjp_jpj​ units of uninterrupted processing, and has weight wj>0w_j > 0wj​>0; the goal is to minimize the total weighted completion time ∑jwjCj\sum_j w_j C_j∑j​wj​Cj​. Offline, with all release dates equal to zero, Smith's rule (sequence by nondecreasing pj/wjp_j/w_jpj​/wj​) is optimal (Smith 1956); with arbitrary release dates the problem 1 ∣ rj ∣ ∑wjCj1\,|\,r_j\,|\,\sum w_j C_j1∣rj​∣∑wj​Cj​ is strongly NP-hard (Lenstra, Rinnooy Kan and Brucker 1977).

In the online version the scheduler learns of job jjj only at time rjr_jrj​, and at each moment must either start a released job or keep the machine idle. Its quality is measured by its competitive ratio: the worst case, over all instances, of the ratio between the online schedule's cost and the offline optimum. Release-date scheduling is one of the basic test cases of online optimization.

Timeline:

  • 1996. Hoogeveen and Vestjens show that no online algorithm has competitive ratio below 2, even with equal weights, and give the 2-competitive algorithm Delayed SPT for equal weights.
  • 1997. Hall, Schulz, Shmoys and Wein give a (3+ε)(3+\varepsilon)(3+ε)-competitive algorithm for arbitrary weights, based on geometric intervals and linear programming.
  • 1998. Phillips, Stein and Wein give another 2-competitive algorithm for equal weights, which does not extend to arbitrary weights.
  • 2002. Goemans, Queyranne, Schulz, Skutella and Wang obtain a (1+2)(1+\sqrt2)(1+2​)-competitive deterministic algorithm from an LP relaxation.
  • 2004. Anderson and Potts show that Delayed SWPT has competitive ratio exactly 2 for arbitrary positive weights, matching the lower bound.

Setting

An instance has jobs j∈J={1,…,n}j \in J = \{1,\dots,n\}j∈J={1,…,n} with integer release dates rj≥0r_j \ge 0rj​≥0, integer processing times pj≥1p_j \ge 1pj​≥1 and real weights wj>0w_j > 0wj​>0. A schedule assigns each job an integer start time SjS_jSj​. It is feasible if Sj≥rjS_j \ge r_jSj​≥rj​ for every jjj and no two intervals [Sj,Sj+pj)[S_j, S_j + p_j)[Sj​,Sj​+pj​) overlap; idle time is allowed. Its cost is C(S)=∑jwj(Sj+pj)C(S) = \sum_j w_j (S_j + p_j)C(S)=∑j​wj​(Sj​+pj​).

Delayed SWPT runs over unit time slots [t,t+1)[t, t+1)[t,t+1). When the machine is available at time ttt, it looks at the jobs released by ttt and not yet started, and selects one with the smallest ratio pj/wjp_j/w_jpj​/wj​. Ties go to the smaller pjp_jpj​, then to the smaller index. If pj≤tp_j \le tpj​≤t, it starts jjj at ttt and the machine is busy until t+pjt + p_jt+pj​. Otherwise the machine stays idle and the rule is applied again at t+1t+1t+1. The resulting schedule is written π\piπ, or dswpt I in Lean. In particular no job starts before time pjp_jpj​.

The proof uses three auxiliary problems:

  • the doubled problem (2P), with data (2rj,2pj,wj)(2r_j, 2p_j, w_j)(2rj​,2pj​,wj​);
  • the extended problem (E), with release dates rj′=max⁡{pj,f(rj)}r'_j = \max\{p_j, f(r_j)\}rj′​=max{pj​,f(rj​)}, where f(t)f(t)f(t) is the first time at or after ttt at which π\piπ leaves the machine free;
  • one unit-length gap job gtg_tgt​ for each slot [t,t+1)[t,t+1)[t,t+1) in which Delayed SWPT idles although a job jjj is available. The gap job has release date f(rj)f(r_j)f(rj​) and weight wj/pjw_j/p_jwj​/pj​.

The schedule πE\pi_EπE​ of (E) runs the original jobs as in π\piπ and each gtg_tgt​ in [t,t+1)[t,t+1)[t,t+1).

Formalization targets

Goal: Theorem 8

min⁡{ρ  :  ∑jwjCj(π)≤ρ∑jwjCj(S) for every instance and every feasible schedule S}=2.\min\Bigl\{\rho \;:\; \sum_j w_j C_j(\pi) \le \rho \sum_j w_j C_j(S)\ \text{for every instance and every feasible schedule } S\Bigr\} = 2.min{ρ:j∑​wj​Cj​(π)≤ρj∑​wj​Cj​(S) for every instance and every feasible schedule S}=2.

Lean: IsLeast {ρ | ∀ n I S, IsFeasible I.r I.p S → cost I.w I.p (dswpt I) ≤ ρ * cost I.w I.p S} 2. Both halves are required: the upper bound 222 and the fact that no smaller constant is valid for this algorithm.

Milestones

  1. πj≥pj\pi_j \ge p_jπj​≥pj​ for every job (§2) and rj′≤max⁡{2rj,pj}r'_j \le \max\{2r_j, p_j\}rj′​≤max{2rj​,pj​} (§3.2).
  2. πE\pi_EπE​ is feasible for (E) (§3.2).
  3. Lemma 1. If π∗\pi^*π∗ and μ∗\mu^*μ∗ are optimal for (P) and (2P), then C(μ∗)=2 C(π∗)C(\mu^*) = 2\,C(\pi^*)C(μ∗)=2C(π∗).
  4. Lemma 2. πE\pi_EπE​ is optimal for (E).
  5. Lemma 3. If μ∗\mu^*μ∗ is optimal for (2P) and a feasible σE\sigma_EσE​ for (E) satisfies
∑j∈JwjCj(σE)+∑g∈GwgCg(σE)≤∑j∈JwjCj(μ∗)+∑g∈GwgCg(πE),(1)\sum_{j\in J} w_j C_j(\sigma_E) + \sum_{g\in G} w_g C_g(\sigma_E) \le \sum_{j\in J} w_j C_j(\mu^*) + \sum_{g\in G} w_g C_g(\pi_E), \tag{1}j∈J∑​wj​Cj​(σE​)+g∈G∑​wg​Cg​(σE​)≤j∈J∑​wj​Cj​(μ∗)+g∈G∑​wg​Cg​(πE​),(1)

then C(π)≤2 C(S)C(\pi) \le 2\,C(S)C(π)≤2C(S) for every feasible SSS. 6. Inequality (1) holds for some feasible σE\sigma_EσE​, for every optimal μ∗\mu^*μ∗ of (2P) (§§3.4–3.6).

Significance

The theorem shows that a deterministic online algorithm can match the lower bound of Hoogeveen and Vestjens for arbitrary positive weights. This settles the best competitive ratio for deterministic online algorithms for 1 ∣ rj ∣ ∑wjCj1\,|\,r_j\,|\,\sum w_j C_j1∣rj​∣∑wj​Cj​. The algorithm needs no linear program. The analysis also does not compare the algorithm with a lower bound on the optimum. Instead it shows that the online schedule is optimal for a modified problem (E), and it converts an optimal schedule of (2P) into a schedule of (E).

The result was proved on paper in 2004. Neither Mathlib nor the Prove2Me catalog contains a machine-checked proof of it, or of any competitive ratio for online scheduling with release dates. This mission provides several reusable pieces:

  • an executable, verified-terminating definition of an online scheduling rule;
  • the doubling lemma for release-date problems;
  • the optimality criterion behind Lemma 2;
  • the block-by-block exchange argument of §§3.3–3.6.

Difficulty

The obvious argument fails at Lemma 2. Delayed SWPT is far from optimal for (P) itself, and its idle time is unbounded in relative terms. The proof therefore has to show that the inserted gap jobs make every idle slot "justified", so that a preemptive best-available argument becomes valid for (E). That argument rests on an optimality criterion of Belouadah, Posner and Potts (1992), which is not in Mathlib.

The second difficulty is inequality (1). Once μ∗\mu^*μ∗ is doubled and the gap jobs are inserted, nongap jobs must be shifted, and the gain of each gap-generating job must be charged against the delay of the gap jobs in its block. That accounting (Lemmas 4–7 of the paper) is an induction over blocks with signed differences of completion times.

The natural first idea, plain online SWPT (start the available job with the smallest pj/wjp_j/w_jpj​/wj​ whenever the machine is free), has no finite competitive ratio (Example 1 of the paper), so the delay πj≥pj\pi_j \ge p_jπj​≥pj​ is essential to the bound and must be tracked through the whole argument.

Formalization scope

Conventions committed to in Lean:

  • Data. Jobs are Fin n (0-based, so "smallest index" is the order of Fin n). Times are natural numbers, the paper's standing integer-data assumption (p. 688), and weights are real. Every instance carries pj≥1p_j \ge 1pj​≥1 and wj>0w_j > 0wj​>0.
  • Schedules and optimality. Schedules are integer start times. Feasibility, cost and optimality are defined for any finite job type, so (E), with job type Fin n ⊕ gapTimes I, uses the same notions. "Optimal" means optimal among all feasible nonpreemptive schedules with integer start times.
  • The algorithm. Delayed SWPT is a def: a unit-time simulation that compares ratios by cross-multiplication and re-applies the rule at every slot. It runs to the horizon ∑j(rj+2pj)+1\sum_j (r_j + 2p_j) + 1∑j​(rj​+2pj​)+1. A sorry-free check (not uploaded) shows that every job has started by then, and that the simulation reproduces Examples 3 and 4 of the paper, including the gap times 0,2,3,4,5,60,2,3,4,5,60,2,3,4,5,6 of Table 2.
  • Completion times. In (2P) the completion time is μj∗+2pj\mu^*_j + 2p_jμj∗​+2pj​, and gap jobs have unit length.

The goal quantifies over every feasible schedule of every instance. It cannot be met by restricting the competitor to schedules without idle time or to list schedules, by dropping release-date feasibility, or by leaving jobs unscheduled.

Out of scope:

  • The general lower bound "no online algorithm beats 2" (Example 2 of the paper, due to Hoogeveen and Vestjens) is not part of the mission. The lower half of the goal concerns Delayed SWPT only.
  • The Belouadah–Posner–Potts optimality criterion is an external ingredient of Lemma 2. Solvers may formalize it as a supporting theorem.

Infrastructure that a complete development needs:

  • simulation invariants for the algorithm;
  • exchange and left-shift arguments for single-machine schedules;
  • the job-splitting relaxation behind the best-available criterion.

The schedule vocabulary and the criterion are reusable for other release-date scheduling results. Contributions toward the block lemmas of §§3.3–3.6 (Lemmas 4–7, the bound (9)) are welcome as supporting theorems.

Selected references

  • E. J. Anderson and C. N. Potts, Online Scheduling of a Single Machine to Minimize Total Weighted Completion Time, Mathematics of Operations Research 29(3), 686–697, 2004. https://doi.org/10.1287/moor.1040.0092
  • J. A. Hoogeveen and A. P. A. Vestjens, Optimal On-Line Algorithms for Single-Machine Scheduling, IPCO 1996, LNCS 1084, 404–414. https://doi.org/10.1007/3-540-61310-2_30
  • L. A. Hall, A. S. Schulz, D. B. Shmoys and J. Wein, Scheduling to Minimize Average Completion Time: Off-line and On-line Approximation Algorithms, Mathematics of Operations Research 22(3), 513–544, 1997. https://doi.org/10.1287/moor.22.3.513
  • C. Phillips, C. Stein and J. Wein, Minimizing Average Completion Time in the Presence of Release Dates, Mathematical Programming 82, 199–223, 1998. https://doi.org/10.1007/BF01585872
  • M. X. Goemans, M. Queyranne, A. S. Schulz, M. Skutella and Y. Wang, Single Machine Scheduling with Release Dates, SIAM Journal on Discrete Mathematics 15(2), 165–192, 2002. https://doi.org/10.1137/S089548019936223X
  • H. Belouadah, M. E. Posner and C. N. Potts, Scheduling with Release Dates on a Single Machine to Minimize Total Weighted Completion Time, Discrete Applied Mathematics 36(3), 213–231, 1992. https://doi.org/10.1016/0166-218X(92)90255-9
  • J. K. Lenstra, A. H. G. Rinnooy Kan and P. Brucker, Complexity of Machine Scheduling Problems, Annals of Discrete Mathematics 1, 343–362, 1977. https://doi.org/10.1016/S0167-5060(08)70743-X
  • W. E. Smith, Various Optimizers for Single-Stage Production, Naval Research Logistics Quarterly 3, 59–66, 1956. https://doi.org/10.1002/nav.3800030106
11 thms3 active usersReviewed
Control TheoryOperations ResearchProbability+1·Captain: mikedeng1

Dynamic Scheduling of a System with Two Parallel Servers in Heavy Traffic with Resource Pooling: The Threshold Policy Is Asymptotically OptimalResearch Paper

Motivation

Many service systems route several classes of work to servers with overlapping skills: call centers with cross-trained agents, manufacturing cells with flexible machines, computing clusters with heterogeneous processors. Choosing which server works on which class at each moment is a dynamic scheduling problem. Exact optimal policies are out of reach except in toy cases, so heavy-traffic theory replaces the queueing system by a Brownian control problem, solves that limit problem, and then asks for a policy in the original system whose performance converges to the Brownian optimum. This programme was proposed by Harrison (Harrison 1988), and the parallel server system studied here is the example Harrison used (Harrison, Ann. Appl. Probab. 1998) to show that the greedy static priority rule can be very inefficient.

Bell and Williams (2001) gave the first proof of asymptotic optimality of a continuous-review policy for this system, with renewal arrivals and general service times. Harrison (1998) had treated Poisson arrivals and deterministic service times with a discrete-review policy and a pathwise criterion. Harrison and López (Queueing Systems, 1999) identified the complete resource pooling condition for general parallel server systems. The threshold policy and the proof method of Bell and Williams were later extended to multiserver systems (Bell and Williams, Electron. J. Probab., 2005).

Setting

There are two job classes and two servers. Server 1 serves class 1 (activity 1); server 2 serves class 1 (activity 2) and class 2 (activity 3). A sequence of such systems is indexed by r→∞r\to\inftyr→∞. On a probability space, i.i.d. sequences uˇk(i)\check u_k(i)uˇk​(i) (k=1,2k=1,2k=1,2) and vˇj(i)\check v_j(i)vˇj​(i) (j=1,2,3j=1,2,3j=1,2,3), i≥1i\ge1i≥1, are fixed: strictly positive, mutually independent, with mean one and finite variances αk2,βj2\alpha_k^2,\beta_j^2αk2​,βj2​. In system rrr the interarrival times are ukr(i)=uˇk(i)/λkru_k^r(i)=\check u_k(i)/\lambda_k^rukr​(i)=uˇk​(i)/λkr​ and the service times are vjr(i)=vˇj(i)/μjrv_j^r(i)=\check v_j(i)/\mu_j^rvjr​(i)=vˇj​(i)/μjr​. The renewal processes Akr(t)A_k^r(t)Akr​(t) and Sjr(t)S_j^r(t)Sjr​(t) count arrivals and potential service completions.

A scheduling control policy is an allocation T=(T1,T2,T3)T=(T_1,T_2,T_3)T=(T1​,T2​,T3​), where Tj(t)T_j(t)Tj​(t) is the time devoted to activity jjj in [0,t][0,t][0,t]. Each Tj(t)T_j(t)Tj​(t) is a random variable, each TjT_jTj​ is continuous and nondecreasing from 000, and so are the idle times I1=t−T1I_1=t-T_1I1​=t−T1​ and I2=t−T2−T3I_2=t-T_2-T_3I2​=t−T2​−T3​. The queue lengths

Q1(t)=A1(t)−S1(T1(t))−S2(T2(t)),Q2(t)=A2(t)−S3(T3(t))Q_1(t)=A_1(t)-S_1(T_1(t))-S_2(T_2(t)),\qquad Q_2(t)=A_2(t)-S_3(T_3(t))Q1​(t)=A1​(t)−S1​(T1​(t))−S2​(T2​(t)),Q2​(t)=A2​(t)−S3​(T3​(t))

must be nonnegative. Policies may anticipate the future. The rates satisfy Assumption 3.1: λ1>μ1\lambda_1>\mu_1λ1​>μ1​, 1−(λ1−μ1)/μ2=λ2/μ31-(\lambda_1-\mu_1)/\mu_2=\lambda_2/\mu_31−(λ1​−μ1​)/μ2​=λ2​/μ3​, and the rates converge at rate 1/r1/r1/r to limits with second-order parameters θ1,θ2\theta_1,\theta_2θ1​,θ2​. Assumption 3.2 is h1μ2≥h2μ3h_1\mu_2\ge h_2\mu_3h1​μ2​≥h2​μ3​, and Assumption 3.3 gives finite exponential moments near 000. With Q^r(t)=r−1Qr(r2t)\hat Q^r(t)=r^{-1}Q^r(r^2t)Q^​r(t)=r−1Qr(r2t) the cost is

J^r(Tr)=E(∫0∞e−γt h⋅Q^r(t) dt).\hat J^r(T^r)=\mathbf E\Big(\int_0^\infty e^{-\gamma t}\,h\cdot\hat Q^r(t)\,dt\Big).J^r(Tr)=E(∫0∞​e−γth⋅Q^​r(t)dt).

The threshold policy with Lr=[clog⁡r]L^r=[c\log r]Lr=[clogr] works as follows. Server 1 works whenever it has a class 1 job available. Server 2 serves class 1 with preemptive-resume priority when more than LrL^rLr class 1 jobs are present, and otherwise serves class 2. The Brownian benchmark is built from a two-dimensional Brownian motion X~\tilde XX~ with drift θ\thetaθ and diagonal covariance, from y=(1,μ2/μ3)y=(1,\mu_2/\mu_3)y=(1,μ2​/μ3​), and from the reflected process W~∗=y⋅X~+V~∗\tilde W^*=y\cdot\tilde X+\tilde V^*W~∗=y⋅X~+V~∗ with V~∗(t)=−inf⁡s≤ty⋅X~(s)\tilde V^*(t)=-\inf_{s\le t}y\cdot\tilde X(s)V~∗(t)=−infs≤t​y⋅X~(s). Its cost is J∗=E∫0∞e−γth2 W~∗(t)/y2 dtJ^*=\mathbf E\int_0^\infty e^{-\gamma t}h_2\,\tilde W^*(t)/y_2\,dtJ∗=E∫0∞​e−γth2​W~∗(t)/y2​dt.

Formalization targets

Goal: Theorem 5.3

For ccc larger than a constant c0c_0c0​ that depends only on the model data, and for every sequence {Tr}\{T^r\}{Tr} of scheduling control policies,

lim inf⁡r→∞J^r(Tr) ≥ J∗ = lim⁡r→∞J^r(Tr,∗),J∗<∞.\liminf_{r\to\infty}\hat J^r(T^r)\ \ge\ J^*\ =\ \lim_{r\to\infty}\hat J^r(T^{r,*}),\qquad J^*<\infty .r→∞liminf​J^r(Tr) ≥ J∗ = r→∞lim​J^r(Tr,∗),J∗<∞.

Milestones

  • Proposition B.1: the one-dimensional Skorokhod problem, its explicit solution and its minimality.
  • Appendix A, (181) and (184): Cramér-type deviation bounds for delayed renewal processes.
  • Theorem 7.2: after first reaching LrL^rLr, the class 1 queue stays within Lr−1L^r-1Lr−1 of the threshold, with probability tending to one.
  • Theorem 7.1: (Q^1r,I^1r)⇒(0,0)(\hat Q_1^r,\hat I_1^r)\Rightarrow(0,0)(Q^​1r​,I^1r​)⇒(0,0) under the threshold policy.
  • Lemma 8.1: the fluid-scaled threshold allocations converge to Tˉ∗(t)=(t,λ1−μ1μ2t,λ2μ3t)\bar T^*(t)=(t,\frac{\lambda_1-\mu_1}{\mu_2}t,\frac{\lambda_2}{\mu_3}t)Tˉ∗(t)=(t,μ2​λ1​−μ1​​t,μ3​λ2​​t).
  • Theorem 5.2 (state-space collapse): (Q^1r,Q^2r,I^1r,I^2r)⇒(0,Q~2∗,0,I~2∗)(\hat Q_1^r,\hat Q_2^r,\hat I_1^r,\hat I_2^r)\Rightarrow(0,\tilde Q_2^*,0,\tilde I_2^*)(Q^​1r​,Q^​2r​,I^1r​,I^2r​)⇒(0,Q~​2∗​,0,I~2∗​).
  • Lemma 9.3: along a subsequence achieving a finite lim inf⁡\liminfliminf cost, the fluid-scaled processes converge to (0,λt,μt,Tˉ∗,0)(0,\lambda t,\mu t,\bar T^*,0)(0,λt,μt,Tˉ∗,0).

A further draft theorem states that Definition 5.1 determines an admissible allocation, unique pathwise, whenever Lr≥1L^r\ge1Lr≥1.

Significance

The theorem proves that a simple state-dependent rule, which sends server 2 to class 1 only when the class 1 queue exceeds a logarithmic safety stock, is asymptotically optimal among all policies, including those that anticipate the future. The limiting cost is the explicit optimum of the Brownian control problem. The proof gives a template for heavy-traffic asymptotic optimality under complete resource pooling: a lower bound valid for every policy, and state-space collapse under the proposed policy. The residual process analysis of Section 7 shows how a threshold of order log⁡r\log rlogr makes starvation of server 1 negligible on the diffusion time scale.

The paper's results are proved but not machine-checked; no formal proof exists in any proof assistant. The mission asks for formal statements of the paper's main theorem and its supporting lemmas, followed by formal proofs. Parts of the development are independent of the paper: the one-dimensional Skorokhod map, renewal large deviation bounds, and convergence encodings on path space.

Difficulty

The lower bound must hold for arbitrary, possibly anticipating, policies, so no Markov structure is available. The argument has to pass through fluid limits of an arbitrary cost-minimizing subsequence and a pathwise minimality property, and Fatou's lemma for the limit needs uniform control. For the upper bound, the obvious approach, a static priority rule, is known to fail: it starves server 1 and produces a large class 1 queue. With a threshold policy, the hard step is to show that the class 1 queue, once at the threshold, rarely moves Lr−1L^r-1Lr−1 away from it over a time interval of length r2tr^2tr2t. That requires large deviation estimates for renewal processes started at random, multiparameter stopping times. Showing that J^r(Tr,∗)\hat J^r(T^{r,*})J^r(Tr,∗) converges to J∗J^*J∗, rather than only that the processes converge in distribution, also requires uniform integrability of the scaled queue lengths.

Formalization scope

Classes and activities are indexed by Fin 2 and Fin 3. The i.i.d. sequences keep the paper's index base i≥1i\ge1i≥1, and the systems are indexed by n∈Nn\in\mathbb Nn∈N with r=rn∈[1,∞)r=r_n\in[1,\infty)r=rn​∈[1,∞), rn→∞r_n\to\inftyrn​→∞. Time is real, and every condition is imposed for t≥0t\ge0t≥0. Admissibility is exactly (11)–(14). Measurability in (11) is with respect to the completion of P\mathbf PP, since the paper's space is complete. Finiteness of the renewal processes everywhere on Ω\OmegaΩ, which the paper obtains by discarding a null set, is a hypothesis. Queue lengths are real, costs are lower Lebesgue integrals in [0,∞][0,\infty][0,∞], counting processes take values in N∪{∞}\mathbb N\cup\{\infty\}N∪{∞}, and Λ\LambdaΛ, Λ∗\Lambda^*Λ∗ take values in the extended reals.

The constant c0c_0c0​ is existential and is chosen after the model data and before ccc, the policies and the Brownian motions. The threshold relations are required only for the systems with Lr≥1L^r\ge1Lr≥1, which are all but finitely many. Each convergence to a deterministic limit (Theorem 7.1, Lemmas 8.1 and 9.3) is stated as u.o.c. convergence in probability, the paper's own equivalence (p. 633). Theorem 5.2 is stated in coupling form: there are copies of the processes on one probability space, with Skorokhod paths and the same laws, that converge almost surely uniformly on compacts. This is equivalent to weak convergence in D4\mathbf D^4D4 to a limit with continuous paths. J∗J^*J∗ is defined by (44) from an arbitrary pair of independent standard Brownian motions (Mathlib's IsBrownianReal), not by a closed form.

Two formalizations would make the goal trivial, and both are excluded. Leaving out the requirement that Tr,∗T^{r,*}Tr,∗ actually follow the policy would make the goal false or empty. Narrowing the class of competing policies, for example to non-anticipating ones, would weaken the theorem. A draft theorem also states that the threshold allocation exists and is unique pathwise, so the hypothesis on Tr,∗T^{r,*}Tr,∗ can be satisfied.

The development needs renewal theory (functional central limit theorems, Cramér bounds), multiparameter stopping times, tightness in D\mathbf DD, the Skorokhod representation theorem, the reflection map, and properties of reflected Brownian motion. Contributions are welcome at every level: proofs of milestones, reusable lemmas on renewal processes and the Skorokhod map, and further lemmas of the paper (Lemmas 7.5, 7.6 and 9.2 are not yet stated).

Selected references

  • S. L. Bell and R. J. Williams, Dynamic scheduling of a system with two parallel servers in heavy traffic with resource pooling: asymptotic optimality of a threshold policy, Ann. Appl. Probab. 11 (2001) 608–649. https://doi.org/10.1214/aoap/1015345343
  • J. M. Harrison, Heavy traffic analysis of a system with parallel servers: asymptotic optimality of discrete-review policies, Ann. Appl. Probab. 8 (1998) 822–848.
  • J. M. Harrison and M. J. López, Heavy traffic resource pooling in parallel-server systems, Queueing Systems 33 (1999) 339–368.
  • J. M. Harrison, Brownian models of queueing networks with heterogeneous customer populations, in Stochastic Differential Systems, Stochastic Control Theory and Their Applications, Springer (1988) 147–186.
  • S. L. Bell and R. J. Williams, Dynamic scheduling of a parallel server system in heavy traffic with complete resource pooling: asymptotic optimality of a threshold policy, Electron. J. Probab. 10 (2005) 1044–1115.
  • J. M. Harrison, Brownian Motion and Stochastic Flow Systems, Wiley (1985).
14 thms1 active userReviewed
Linear OptimizationOperations ResearchOptimization·Captain: mikedeng1

Project Scheduling with Time Windows and Scarce Resources III: Active, Semiactive, Pseudoactive and Quasiactive Schedules Are Minimal Points of the Feasible RegionTextbook

Motivation

Exact and heuristic methods for resource-constrained project scheduling do not search the whole continuum of start-time vectors. They enumerate a finite candidate set that is guaranteed to contain an optimal schedule. For machine scheduling and precedence-only project scheduling the classical candidate sets (semiactive and active schedules) are defined by shifting single activities earlier. With general time lags — minimum and maximum delays between the starts of activities — several activities can be rigidly tied together, and single-activity shifts no longer describe the right candidate sets.

Neumann, Nübel and Schwindt (Neumann et al. 2000) introduced shifts of sets of activities and four resulting classes of schedules: active, semiactive, pseudoactive and quasiactive. Section 2.4 of Neumann, Schwindt and Zimmermann, Project Scheduling with Time Windows and Scarce Resources (Springer 2003), characterizes each class geometrically as the minimal points of a subset of the feasible region. The branch-and-bound procedures of §2.5 of the book enumerate exactly these objects: each enumeration node is a strict order OOO together with the minimal point of its order polyhedron.

Setting

A project has activities V={0,1,…,n+1}V=\{0,1,\dots,n+1\}V={0,1,…,n+1}; 000 and n+1n+1n+1 are fictitious activities marking the project beginning and completion, and 1,…,n1,\dots,n1,…,n are the real activities. Activity iii has an integer duration pip_ipi​, with p0=pn+1=0p_0=p_{n+1}=0p0​=pn+1​=0 and pi>0p_i>0pi​>0 otherwise. Time lags are the arcs ⟨i,j⟩∈E\langle i,j\rangle\in E⟨i,j⟩∈E of the project network NNN with integer weights δij\delta_{ij}δij​. A schedule is a vector S=(S0,…,Sn+1)S=(S_0,\dots,S_{n+1})S=(S0​,…,Sn+1​) of real start times with S0=0S_0=0S0​=0 and Si≥0S_i\ge0Si​≥0. It is time-feasible if Sj−Si≥δijS_j-S_i\ge\delta_{ij}Sj​−Si​≥δij​ for all ⟨i,j⟩∈E\langle i,j\rangle\in E⟨i,j⟩∈E; these schedules form the polyhedron ST\mathcal S_TST​.

There are renewable resources k∈Rk\in\mathcal Rk∈R with capacity RkR_kRk​; activity iii uses rik≤Rkr_{ik}\le R_krik​≤Rk​ units while it is in progress. With the active set A(S,t)={i∣Si≤t<Si+pi}\mathcal A(S,t)=\{i\mid S_i\le t<S_i+p_i\}A(S,t)={i∣Si​≤t<Si​+pi​}, a schedule is resource-feasible if ∑i∈A(S,t)rik≤Rk\sum_{i\in\mathcal A(S,t)}r_{ik}\le R_k∑i∈A(S,t)​rik​≤Rk​ for every kkk and every t≥0t\ge0t≥0. The feasible region is S=ST∩SR\mathcal S=\mathcal S_T\cap\mathcal S_RS=ST​∩SR​. It is in general neither convex nor connected.

A schedule induces the strict order O(S)={(i,j)∣i≠j, Sj≥Si+pi}O(S)=\{(i,j)\mid i\ne j,\ S_j\ge S_i+p_i\}O(S)={(i,j)∣i=j, Sj​≥Si​+pi​}. For a strict order OOO, the order polyhedron is ST(O)={S∈ST∣Sj≥Si+pi ∀(i,j)∈O}\mathcal S_T(O)=\{S\in\mathcal S_T\mid S_j\ge S_i+p_i\ \forall (i,j)\in O\}ST​(O)={S∈ST​∣Sj​≥Si​+pi​ ∀(i,j)∈O}. OOO is feasible if ∅≠ST(O)⊆S\emptyset\ne\mathcal S_T(O)\subseteq\mathcal S∅=ST​(O)⊆S. ST(O(S))\mathcal S_T(O(S))ST​(O(S)) is the schedule polyhedron of SSS.

A left-shift from SSS to S′S'S′ means S′≤SS'\le SS′≤S componentwise and S′≠SS'\ne SS′=S. For feasible S≠S′S\ne S'S=S′, the shift is global; it is local if a continuous trajectory x:[0,1]→Sx:[0,1]\to\mathcal Sx:[0,1]→S joins SSS to S′S'S′; it is order-preserving if O(S)⊆O(S′)O(S)\subseteq O(S')O(S)⊆O(S′) and order-monotone if O(S)⊆O(S′)O(S)\subseteq O(S')O(S)⊆O(S′) or O(S)⊇O(S′)O(S)\supseteq O(S')O(S)⊇O(S′). A feasible schedule is active, semiactive, pseudoactive or quasiactive if no global, local, order-monotone or order-preserving left-shift, respectively, starts at it. A minimal point of M⊆Rn+2\mathcal M\subseteq\mathbb R^{n+2}M⊆Rn+2 is a point S∈MS\in\mathcal MS∈M such that no S′∈MS'\in\mathcal MS′∈M satisfies S′≤SS'\le SS′≤S, S′≠SS'\ne SS′=S.

Formalization targets

Goal: Theorem 2.4.9

For a feasible schedule SSS:

(a) S active  ⟺  S is a minimal point of S,(b) S semiactive  ⟺  S is a minimal point of a component of S,(c) S pseudoactive  ⟺  S is the minimal point of ST(O) for every feasible strict order O⊆O(S),(d) S quasiactive  ⟺  S is the minimal point of ST(O(S)).\begin{aligned} &\text{(a) } S \text{ active} &&\iff S \text{ is a minimal point of } \mathcal S,\\ &\text{(b) } S \text{ semiactive} &&\iff S \text{ is a minimal point of a component of } \mathcal S,\\ &\text{(c) } S \text{ pseudoactive} &&\iff S \text{ is the minimal point of } \mathcal S_T(O) \text{ for every feasible strict order } O\subseteq O(S),\\ &\text{(d) } S \text{ quasiactive} &&\iff S \text{ is the minimal point of } \mathcal S_T(O(S)). \end{aligned}​(a) S active(b) S semiactive(c) S pseudoactive(d) S quasiactive​​⟺S is a minimal point of S,⟺S is a minimal point of a component of S,⟺S is the minimal point of ST​(O) for every feasible strict order O⊆O(S),⟺S is the minimal point of ST​(O(S)).​

Part (a) is close to a restatement of the definitions. The content lies in (b), which passes from trajectories to connected components; in (c), which replaces a condition on shifts by a condition on finitely many polyhedra; and in (d), which reduces quasiactivity to a single polyhedron.

Milestones

  1. Lemma 2.4.7: for a strict order OOO with ST(O)≠∅\mathcal S_T(O)\ne\emptysetST​(O)=∅, lb ST(O)lb\,\mathcal S_T(O)lbST​(O) is the unique minimal point of ST(O)\mathcal S_T(O)ST​(O).
  2. §2.4, p. 39: an order-monotone shift is local.
  3. §2.4, p. 42: AS⊆SAS⊆PAS⊆QAS\mathcal{AS}\subseteq\mathcal{SAS}\subseteq\mathcal{PAS}\subseteq\mathcal{QAS}AS⊆SAS⊆PAS⊆QAS.
  4. §2.4, p. 44: the pseudoactive schedules are exactly the local minimal points of S\mathcal SS in the Euclidean metric.
  5. Remark 2.4.10 (a): if S≠∅\mathcal S\ne\emptysetS=∅, some minimal point of S\mathcal SS is an optimal schedule.
  6. Remark 2.4.10 (b): quasiactive schedules are integer-valued, and S≠∅\mathcal S\neq\emptysetS=∅ iff an integer-valued optimal schedule exists.
  7. Proposition 2.10.2: Sn+1≤dˉ=∑i∈Vmax⁡(pi,max⁡⟨i,j⟩∈Eδij)S_{n+1}\le\bar d=\sum_{i\in V}\max(p_i,\max_{\langle i,j\rangle\in E}\delta_{ij})Sn+1​≤dˉ=∑i∈V​max(pi​,max⟨i,j⟩∈E​δij​) for every quasiactive SSS.

Significance

The characterization makes each schedule class checkable and enumerable. By (d), deciding quasiactivity is a longest-path computation in the schedule network. Deciding activeness is NP-hard (Neumann et al. 2000); the same holds for semiactive and pseudoactive schedules, which is why exact algorithms enumerate the quasiactive schedules. Remark 2.4.10 and Proposition 2.10.2 then give the two facts every such algorithm relies on: an optimal schedule lies among the (integer-valued) quasiactive schedules, and all of them fit into the horizon [0,dˉ][0,\bar d][0,dˉ]. Regular objective functions other than the project duration (§2.10) inherit the same candidate sets.

On the formal side, the mission produces a reusable model of PS∣temp∣Cmax⁡PS|temp|C_{\max}PS∣temp∣Cmax​ with real start times and general time lags: time-feasible and resource-feasible schedules, schedule-induced orders, order polyhedra and the four schedule classes. No part of this material is formalized on Prove2Me or, as far as is known, anywhere else. The results are all proved in the literature (Neumann et al. 2000; the book gives proofs or calls them obvious); the work here is to formalize them.

Difficulty

The obvious argument for (b) says "a trajectory stays in one component, so local shifts move within components". The converse needs that two schedules in the same connected component of S\mathcal SS are joined by a path inside S\mathcal SS. That is false for general sets and has to come from the structure of S\mathcal SS as a finite union of order polyhedra (the basic structural theorem of Bartusch, Möhring and Radermacher), which is not part of this mission's statements and must be proved on the way.

For (c), the difficulty is that an order-monotone shift may shrink the order O(S)O(S)O(S). The proof has to produce, from a feasible sub-order O⊆O(S)O\subseteq O(S)O⊆O(S) whose polyhedron has a smaller minimal point, a shift that is short enough to keep every overlap of SSS. This requires the resource feasibility of whole order polyhedra, i.e. that ST(O(S))⊆S\mathcal S_T(O(S))\subseteq\mathcal SST​(O(S))⊆S for feasible SSS. Resource feasibility is a condition on all times t≥0t\ge0t≥0, while the orders only record pairwise relations between activities.

Formalization scope

Activities are Fin (n + 2), with 0 and Fin.last (n + 1) the fictitious ones. Durations are natural numbers, arc weights integers, and start times real. Resource requirements and capacities are natural numbers. The resource constraints hold for every t≥0t\ge0t≥0; (2.1.4) writes 0≤t≤dˉ0\le t\le\bar d0≤t≤dˉ, but the book's proofs use the unrestricted form. Minimal points are Mathlib's Minimal for the componentwise order on Fin (n + 2) → ℝ. Components in (b) are connected components (connectedComponentIn), while local shifts are defined by continuous trajectories from the unit interval, as in Definition 2.4.3. The theorem is stated for feasible SSS, since the schedule classes consist of feasible schedules by definition. The lower bound lblblb is a vector of real infima and is used only for nonempty order polyhedra.

Defining "active" as "minimal point of S\mathcal SS", or any class through its right-hand side, would make the goal trivial. That is ruled out: every class is defined through the shifts of Definitions 2.4.1–2.4.6, including the trajectory condition and the orders O(S)O(S)O(S).

Remark 2.4.8 (the minimal point of ST(O)\mathcal S_T(O)ST​(O) is the vector of longest path lengths in N(O)N(O)N(O)) is not stated, since it needs path lengths and the reachability conventions of Remarks 1.1.2. Contributions of that network layer, and of the structural theorem S=⋃OST(O)\mathcal S=\bigcup_O\mathcal S_T(O)S=⋃O​ST​(O) (Theorem 2.3.7), are welcome as supporting lemmas.

Selected references

  • K. Neumann, C. Schwindt, J. Zimmermann, Project Scheduling with Time Windows and Scarce Resources, 2nd ed., Springer, 2003. https://doi.org/10.1007/978-3-540-24800-2
  • K. Neumann, H. Nübel, C. Schwindt, Active and stable project scheduling, Mathematical Methods of Operations Research 52 (2000), 441–465. https://doi.org/10.1007/s001860000092
  • M. Bartusch, R. H. Möhring, F. J. Radermacher, Scheduling project networks with resource constraints and time windows, Annals of Operations Research 16 (1988), 201–240. https://doi.org/10.1007/BF02283745
  • A. Sprecher, R. Kolisch, A. Drexl, Semi-active, active, and non-delay schedules for the resource-constrained project scheduling problem, European Journal of Operational Research 80 (1995), 94–102. https://doi.org/10.1016/0377-2217(93)E0294-8
10 thms2 active usersReviewed
Convex OptimizationOperations ResearchOptimization·Captain: mikedeng1

Project Scheduling with Time Windows and Scarce Resources VII: A Locally Quasiconcave Objective Always Has a Quasistable Optimal ScheduleTextbook

Motivation

Resource-constrained project scheduling asks for start times of the activities of a project that respect precedence-type time lags and the capacities of renewable resources (machines, crews, equipment). Classical project scheduling minimizes the project duration, a regular objective: delaying an activity never helps. Many objectives met in practice are not regular. The resource investment problem minimizes the cost of the resource capacities that must be procured; resource levelling problems minimize fluctuations of resource usage over time; the resource renting problem trades fixed procurement against time-dependent renting costs; net present value and earliness–tardiness objectives reward late as well as early starts. For such objectives the familiar fact that "some active schedule is optimal" fails, and algorithms need another finite set of candidate schedules that is guaranteed to contain an optimum.

Chapter 3 of Neumann, Schwindt and Zimmermann, Project Scheduling with Time Windows and Scarce Resources (2nd ed., Springer 2003, doi:10.1007/978-3-540-24800-2), organizes the objective functions of project scheduling into seven classes and pairs each class with a class of schedules that contains an optimal schedule. This mission formalizes §3.3 of that chapter. The classification goes back to Neumann, Nübel and Schwindt (2000) and Zimmermann (2001); the two locally defined classes, and the matching schedule classes of quasiactive and quasistable schedules, are the book's device for covering discontinuous resource-based objectives.

Setting

A project consists of activities V={0,1,…,n+1}V=\{0,1,\dots,n+1\}V={0,1,…,n+1}, n≥1n\ge 1n≥1, where 000 and n+1n+1n+1 are fictitious activities marking the project beginning and completion. Activity iii has an integer duration pip_ipi​ (p0=pn+1=0p_0=p_{n+1}=0p0​=pn+1​=0, pi>0p_i>0pi​>0 otherwise). The project network has an arc set EEE with integer weights δij\delta_{ij}δij​; a schedule is a vector S=(S0,…,Sn+1)S=(S_0,\dots,S_{n+1})S=(S0​,…,Sn+1​) of real start times with S0=0S_0=0S0​=0, S≥0S\ge 0S≥0, and it is time-feasible if Sj−Si≥δijS_j-S_i\ge\delta_{ij}Sj​−Si​≥δij​ for all ⟨i,j⟩∈E\langle i,j\rangle\in E⟨i,j⟩∈E. A maximum project duration dˉ∈N\bar d\in\mathbb Ndˉ∈N is prescribed through a backward arc ⟨n+1,0⟩\langle n+1,0\rangle⟨n+1,0⟩ of weight −dˉ-\bar d−dˉ, so Sn+1≤dˉS_{n+1}\le\bar dSn+1​≤dˉ. Each renewable resource kkk has capacity RkR_kRk​, activity iii uses rikr_{ik}rik​ units while in progress, and rk(S,t)r_k(S,t)rk​(S,t) is the total usage at time ttt. The feasible region S\mathcal SS consists of the time-feasible schedules with rk(S,t)≤Rkr_k(S,t)\le R_krk​(S,t)≤Rk​ for all kkk and ttt.

For an objective function f:R≥0n+2→Rf:\mathbb R^{n+2}_{\ge 0}\to\mathbb Rf:R≥0n+2​→R, problem PS∣temp,dˉ∣fPS|temp,\bar d|fPS∣temp,dˉ∣f asks for an optimal schedule: some S∈SS\in\mathcal SS∈S with f(S)≤f(S′)f(S)\le f(S')f(S)≤f(S′) for all S′∈SS'\in\mathcal SS′∈S.

A schedule induces the strict order O(S)={(i,j)∣i≠j, Sj≥Si+pi}O(S)=\{(i,j)\mid i\ne j,\ S_j\ge S_i+p_i\}O(S)={(i,j)∣i=j, Sj​≥Si​+pi​} of precedences it realizes. The equal-order set of SSS is

ST=(O(S))={S′ time-feasible∣Sj′≥Si′+pi ∀(i,j)∈O(S), O(S′)=O(S)},\mathcal S_T^{=}(O(S))=\{S'\text{ time-feasible}\mid S'_j\ge S'_i+p_i\ \forall (i,j)\in O(S),\ O(S')=O(S)\},ST=​(O(S))={S′ time-feasible∣Sj′​≥Si′​+pi​ ∀(i,j)∈O(S), O(S′)=O(S)},

a polytope with part of its boundary removed. The distinct equal-order sets partition S\mathcal SS into finitely many pieces.

Schedule classes are defined through shifts. A shift from a feasible SSS to a feasible S′≠SS'\ne SS′=S is order-preserving if O(S)⊆O(S′)O(S)\subseteq O(S')O(S)⊆O(S′); it is a left-shift if S′≤SS'\le SS′≤S. Two shifts from SSS to S′S'S′ and S′′S''S′′ are opposite if S′′−S=λ(S′−S)S''-S=\lambda(S'-S)S′′−S=λ(S′−S) with λ<0\lambda<0λ<0. A feasible schedule is active if no feasible left-shift exists, quasiactive if no order-preserving left-shift exists, stable if no pair of opposite shifts to feasible schedules exists, and quasistable if no pair of opposite order-preserving shifts exists.

Objective classes: fff is regular if S≤S′S\le S'S≤S′ implies f(S)≤f(S′)f(S)\le f(S')f(S)≤f(S′); quasiconcave on a set MMM if f(λS+(1−λ)S′)≥min⁡[f(S),f(S′)]f(\lambda S+(1-\lambda)S')\ge\min[f(S),f(S')]f(λS+(1−λ)S′)≥min[f(S),f(S′)] for S,S′∈MS,S'\in MS,S′∈M, λ∈[0,1]\lambda\in[0,1]λ∈[0,1]; lower semicontinuous if f(S)≤lim inf⁡S′→Sf(S′)f(S)\le\liminf_{S'\to S}f(S')f(S)≤liminfS′→S​f(S′) on R≥0n+2\mathbb R^{n+2}_{\ge 0}R≥0n+2​. Then fff is locally regular (class 6) if it is lower semicontinuous and regular on every equal-order set ST=(O(S))\mathcal S_T^{=}(O(S))ST=​(O(S)), S∈SS\in\mathcal SS∈S, and locally quasiconcave (class 7) if it is lower semicontinuous and quasiconcave on every such set.

Formalization targets

Goal: Theorem 3.3.13

For every locally quasiconcave fff,

S≠∅ ⟹ ∃ S quasistable with f(S)=min⁡S′∈Sf(S′).\mathcal S\ne\emptyset\ \Longrightarrow\ \exists\,S\ \text{quasistable with}\ f(S)=\min_{S'\in\mathcal S}f(S').S=∅ ⟹ ∃S quasistable with f(S)=S′∈Smin​f(S′).

Milestones

  • Class 1 (§3.3.2): every regular fff has an active optimal schedule when S≠∅\mathcal S\ne\emptysetS=∅.
  • Class 5 (§3.3.6): every quasiconcave fff has a stable optimal schedule when S≠∅\mathcal S\ne\emptysetS=∅.
  • Eq. (3.3.11): the equal-order sets form a finite partition of S\mathcal SS.
  • Propositions 3.3.5 and 3.3.6: the resource investment objective ∑kckmax⁡trk(S,t)\sum_k c_k\max_t r_k(S,t)∑k​ck​maxt​rk​(S,t) with ck≥0c_k\ge 0ck​≥0 is constant on each equal-order set and lower semicontinuous, hence locally regular.
  • Theorem 3.3.9: every locally regular fff has a quasiactive optimal schedule when S≠∅\mathcal S\ne\emptysetS=∅.

Significance

Quasiactive and quasistable schedules are finite in number: they are the minimal points and the vertices of the finitely many schedule polytopes. Theorem 3.3.13 therefore turns the minimization of any locally quasiconcave objective over a disconnected, non-convex feasible region into a finite search. Class 7 contains the resource levelling objectives ∑ck∑rkt2\sum c_k\sum r_{kt}^2∑ck​∑rkt2​ and ∑ck∑okt\sum c_k\sum o_{kt}∑ck​∑okt​, the total variation of the resource profiles, and the resource renting objective (Propositions 3.3.10 and 3.3.12, and Nübel 2001). The enumeration schemes and decision sets of §3.5–3.7 rest on this result, and Theorem 3.3.9 plays the same role for class 6 (resource investment, changeover times).

The results are proved in the book and the cited papers. As far as a search of the platform shows, none of them, and none of the schedule classes, has a machine-checked formalization; Mathlib supplies lower semicontinuity and quasiconcavity but nothing about schedules. The mission produces a checked version of the classification theorems in the book's exact generality: general time lags (cycles in the network allowed), real start times, and arbitrary objectives given only by their class.

Difficulty

The optimum need not exist a priori: objectives of classes 6 and 7 are discontinuous, and the feasible region is a finite union of polytopes that is in general disconnected. Existence of a minimizer needs compactness of S\mathcal SS (which depends on the deadline arc and the network's path structure) together with lower semicontinuity.

The main obstacle is that the objective is only controlled piecewise. Quasiconcavity holds on each equal-order set separately, and an equal-order set is not closed: a schedule polytope ST(O(S))\mathcal S_T(O(S))ST​(O(S)) also contains schedules inducing strictly larger orders, where the hypothesis on fff says nothing about its relation to the values on ST=(O(S))\mathcal S_T^{=}(O(S))ST=​(O(S)). The obvious argument, taking an optimal schedule and invoking quasiconcavity along the segment of a pair of opposite order-preserving shifts, only relates fff at points of one equal-order set, and it does not by itself produce a schedule that admits no such pair at all. The same issue arises for Theorem 3.3.9 with order-preserving left-shifts, which may cross from one equal-order set into another.

Formalization scope

Activities are Fin (n + 2), with 0 and Fin.last (n + 1) fictitious. Start times are real; objective functions are total functions (Fin (n + 2) → ℝ) → ℝ whose regularity, quasiconcavity and lower semicontinuity are required only on the nonnegative orthant (lower semicontinuity is Mathlib's LowerSemicontinuousOn on the orthant). The deadline Sn+1≤dˉS_{n+1}\le\bar dSn+1​≤dˉ is the network's backward arc, as in §3.1. The project structure records the book's standing property (p. 8) that from each node iii there is a path to n+1n+1n+1 of length at least pip_ipi​; this bounds every activity by dˉ\bar ddˉ. The resource constraints are imposed for all t≥0t\ge 0t≥0, which under that property is the book's 0≤t≤dˉ0\le t\le\bar d0≤t≤dˉ. The peak max⁡trk(S,t)\max_t r_k(S,t)maxt​rk​(S,t) in the resource investment objective is a supremum in N\mathbb NN over t≥0t\ge 0t≥0 of a nonempty finite set, hence attained.

"Optimal" always means minimizing fff over the whole feasible region S\mathcal SS, and the theorems quantify over every function in the class; a formalization with a fixed objective, or with optimality over a single polytope or a single equal-order set, would be a different and weaker statement. The schedule classes are defined through shifts, never as minimal or extreme points, so no statement is true by definition. The only hypothesis besides the class of fff is S≠∅\mathcal S\ne\emptysetS=∅.

The mission restates locally the project model, the induced orders and the shift classes also drafted by the companion missions on schedule classes of this series. Useful contributions beyond the milestones: compactness of S\mathcal SS and closedness of the schedule polytopes, the representation of S\mathcal SS as a finite union of feasible order polytopes, and the finiteness of the sets of quasiactive and quasistable schedules.

Selected references

  • K. Neumann, C. Schwindt, J. Zimmermann, Project Scheduling with Time Windows and Scarce Resources, 2nd ed., Springer, 2003, §3.3. doi:10.1007/978-3-540-24800-2
  • K. Neumann, H. Nübel, C. Schwindt, Active and stable project scheduling, Mathematical Methods of Operations Research 52 (2000), cited in the book as Neumann et al. (2000).
  • J. Zimmermann, Ablauforientiertes Projektmanagement: Modelle, Verfahren und Anwendungen, Gabler, 2001.
11 thms2 active usersReviewed
Graph TheoryLinear OptimizationOperations Research+1·Captain: mikedeng1

Project Scheduling with Time Windows and Scarce Resources VIII: A Vertex Schedule Maximizes the Net Present Value iff Its Spanning-Tree Subprojects Have the Right SignsTextbook

Motivation

Long-running projects such as construction, plant engineering or software development involve payments to and from the contractor at many points in time: disbursements when activities are carried out, progress payments when milestones are reached. When the planning horizon is long, money received later is worth less, and the natural financial objective is the net present value of all cash flows. Scheduling a project to maximize its net present value subject to minimum and maximum time lags was studied by Russell (1970) and Grinold (1972), and the problem is the prototype of a nonregular objective: delaying an activity can be profitable, because disbursements lose value when they are postponed.

This mission follows Chapter 3 of Neumann, Schwindt and Zimmermann, Project Scheduling with Time Windows and Scarce Resources (2nd ed., Springer 2003). The book shows that the net present value objective belongs to the class of binary-monotone objective functions (§3.3.5), and it uses this in §3.9.1 to give a combinatorial optimality criterion for the resource-free problem: a vertex schedule is optimal exactly when the subprojects cut off by the arcs of a spanning tree have net present values of the right sign (Proposition 3.9.2). That criterion drives the book's parametric analysis of the net present value as a function of the discount rate and the deadline.

Setting

A project consists of activities V={0,1,…,n+1}V=\{0,1,\dots,n+1\}V={0,1,…,n+1}, n≥1n\ge1n≥1, where 000 is the project beginning and n+1n+1n+1 the project completion. Activity iii has an integer duration pip_ipi​, with p0=pn+1=0p_0=p_{n+1}=0p0​=pn+1​=0 and pi>0p_i>0pi​>0 otherwise. Temporal constraints are the arcs of a project network N=⟨V,E;δ⟩N=\langle V,E;\delta\rangleN=⟨V,E;δ⟩: an arc ⟨i,j⟩\langle i,j\rangle⟨i,j⟩ with integer weight δij\delta_{ij}δij​ requires Sj−Si≥δijS_j-S_i\ge\delta_{ij}Sj​−Si​≥δij​ for the start times SiS_iSi​. A maximum project duration dˉ\bar ddˉ is the arc ⟨n+1,0⟩\langle n+1,0\rangle⟨n+1,0⟩ with weight −dˉ-\bar d−dˉ. The time-feasible region is

ST={S∈R≥0n+2∣S0=0, Sj−Si≥δij (⟨i,j⟩∈E)}.\mathcal S_T=\{S\in\mathbb R^{n+2}_{\ge0}\mid S_0=0,\ S_j-S_i\ge\delta_{ij}\ (\langle i,j\rangle\in E)\}.ST​={S∈R≥0n+2​∣S0​=0, Sj​−Si​≥δij​ (⟨i,j⟩∈E)}.

Let 0<β≤10<\beta\le10<β≤1 be the discount rate (β=1/(1+I)\beta=1/(1+I)β=1/(1+I) for an interest rate III) and ciF∈Rc_i^F\in\mathbb RciF​∈R the cash flow of activity iii, paid at its completion time Ci=Si+piC_i=S_i+p_iCi​=Si​+pi​. The problem (3.9.1) is

minimize f(S)=−∑i∈VciFβSi+pisubject to S∈ST,\text{minimize } f(S)=-\sum_{i\in V}c_i^F\beta^{S_i+p_i}\quad\text{subject to } S\in\mathcal S_T,minimize f(S)=−i∈V∑​ciF​βSi​+pi​subject to S∈ST​,

and a minimizer is a time-optimal schedule. A vertex of ST\mathcal S_TST​ is an extreme point. A spanning tree G=⟨V,EG⟩G=\langle V,E^G\rangleG=⟨V,EG⟩ is associated with SSS if EG⊆EE^G\subseteq EEG⊆E, EGE^GEG has n+1n+1n+1 arcs and a connected underlying undirected graph, and SSS is the unique solution of S0=0S_0=0S0​=0, Sj−Si=δijS_j-S_i=\delta_{ij}Sj​−Si​=δij​ for ⟨i,j⟩∈EG\langle i,j\rangle\in E^G⟨i,j⟩∈EG. Deleting a tree arc ⟨i,j⟩\langle i,j\rangle⟨i,j⟩ splits GGG into two subtrees; VijV_{ij}Vij​ is the node set of the one not containing 000. The arc is forward if the tree path from 000 passes it from iii to jjj and backward otherwise, and

npvij(S)=∑h∈VijchFβSh+phnpv^{ij}(S)=\sum_{h\in V_{ij}}c_h^F\beta^{S_h+p_h}npvij(S)=h∈Vij​∑​chF​βSh​+ph​

is the net present value of the subproject VijV_{ij}Vij​. Finally, fff is binary-monotone if it is monotone on every line {S+λz≥0∣λ∈R}\{S+\lambda z\ge0\mid\lambda\in\mathbb R\}{S+λz≥0∣λ∈R} with direction z∈{0,1}n+2z\in\{0,1\}^{n+2}z∈{0,1}n+2 (Definition 3.3.2).

Formalization targets

Goal: Proposition 3.9.2, pinned reading

Assume every node is reached from 000 by a path of nonnegative length (the standing convention of §1.2) and let SSS be a vertex of ST\mathcal S_TST​.

(sufficiency)G associated with S,  npvij(S)≥0 on forward arcs, npvij(S)≤0 on backward arcs ⟹ S time-optimal;\text{(sufficiency)}\quad G \text{ associated with } S,\ \ npv^{ij}(S)\ge0 \text{ on forward arcs},\ npv^{ij}(S)\le0 \text{ on backward arcs}\ \Longrightarrow\ S \text{ time-optimal};(sufficiency)G associated with S,  npvij(S)≥0 on forward arcs, npvij(S)≤0 on backward arcs ⟹ S time-optimal; (necessity, β<1)S time-optimal ⟹ ∃ G associated with S satisfying the sign conditions.\text{(necessity, } \beta<1)\quad S \text{ time-optimal}\ \Longrightarrow\ \exists\, G \text{ associated with } S \text{ satisfying the sign conditions}.(necessity, β<1)S time-optimal ⟹ ∃G associated with S satisfying the sign conditions.

The book states "if and only if … for each arc of the corresponding spanning tree", where the corresponding tree is chosen using optimality. The two directions above are the reading that makes the statement well defined: sufficiency for every associated tree, necessity for some associated tree.

Milestones

  1. §3.3.5: the net present value objective is binary-monotone and sum-separable.
  2. §3.9.1: if ST\mathcal S_TST​ is nonempty and bounded, some vertex of ST\mathcal S_TST​ is time-optimal.
  3. Proposition 3.2.16: every vertex of ST\mathcal S_TST​ has an associated spanning tree, an outtree rooted at 000 if the vertex is a minimal point.
  4. Proposition 3.5.4: a directed forest with at least one node has a source with at most one successor or a sink with exactly one predecessor.

Significance

Proposition 3.9.2 turns a nonconvex continuous optimization problem into a finite check on a spanning tree. Read as an economic statement, it says that at an optimal schedule no subproject with positive net present value can be started earlier and no subproject with negative net present value can be postponed. The book builds on it the parametric procedure of §3.9.1, which tracks the optimal tree as the discount rate or the deadline varies (Propositions 3.9.3 and 3.9.4), and the steepest descent method of §3.5.2 terminates exactly when the criterion holds.

The results are proved in the book, partly by reference to network optimization (Ahuja et al., 1993) and to Schwindt and Zimmermann (2001, 2002). None of them is formalized on the platform or, as far as is known, anywhere else. A formal proof would give the first machine-checked optimality certificate for a nonregular project scheduling objective, and the spanning-tree description of vertices (Proposition 3.2.16) is shared with Mission VI of this series.

Difficulty

The objective fff is neither convex nor concave when cash flows of both signs occur, so local optimality at a vertex does not imply global optimality by a convexity argument, and a first-order check along the edges of ST\mathcal S_TST​ is not obviously enough. The criterion is also not a statement about one tree: a degenerate vertex, where more than n+1n+1n+1 temporal constraints are binding, has several associated trees, and the sign conditions may hold on some and fail on others. Necessity therefore requires producing a suitable tree, not checking a given one. Finally, the combinatorial objects (the subtree VijV_{ij}Vij​, forward and backward orientation relative to the root) have to be connected to the geometry of ST\mathcal S_TST​ through Proposition 3.2.16, whose proof in the book is a citation.

Formalization scope

Activities are Fin (n + 2) with 0 the project beginning and Fin.last (n+1) the project completion; start times are real; durations are natural numbers and arc weights integers. The deadline is a structure field together with the backward arc ⟨n+1,0⟩\langle n+1,0\rangle⟨n+1,0⟩ of weight −dˉ-\bar d−dˉ. βx\beta^xβx is Real.rpow, and every statement assumes 0<β≤10<\beta\le10<β≤1 as the book does (p. 203). Vertices are Set.extremePoints ℝ. A spanning tree is a Finset of n+1n+1n+1 arcs whose SimpleGraph.fromRel is connected; VijV_{ij}Vij​ is the set of nodes not reachable from 000 once the arc is deleted.

Three readings are committed and disclosed in the item statements. Necessity is stated only for β<1\beta<1β<1: at β=1\beta=1β=1 the objective is constant, every schedule is optimal, and the sign conditions can fail on every tree. The standing convention of §1.2 (a path of nonnegative length from 000 to every node) is a hypothesis of Proposition 3.2.16 and of the goal; without it a vertex can be fixed by Si≥0S_i\ge0Si​≥0 rather than by arcs of NNN, and necessity fails. The existence of an optimal vertex assumes ST\mathcal S_TST​ nonempty and bounded, which the book asserts in §3.1. Chapter 3's resource constraints do not occur in this mission, which concerns PS∞∣temp,dˉ∣fPS\infty|temp,\bar d|fPS∞∣temp,dˉ∣f only.

The goal cannot be discharged by choosing the tree freely: associated trees must consist of arcs of NNN that are binding at SSS and determine SSS uniquely, and sufficiency must hold for every such tree. Contributions welcome beyond the milestones: a proof of Proposition 3.2.16 reusable by Mission VI, and a general lemma relating binding spanning trees of difference constraints to extreme points.

Selected references

  • K. Neumann, C. Schwindt, J. Zimmermann, Project Scheduling with Time Windows and Scarce Resources, 2nd ed., Springer, 2003, §3.1 (p. 203), §3.3.5 (pp. 224–225), §3.5.2 (p. 252), §3.9.1 (pp. 333–334). https://doi.org/10.1007/978-3-540-24800-2
  • A. H. Russell, "Cash flows in networks", Management Science 16 (1970), 357–373. https://doi.org/10.1287/mnsc.16.5.357
  • R. C. Grinold, "The payment scheduling problem", Naval Research Logistics Quarterly 19 (1972), 123–136.
  • C. Schwindt, J. Zimmermann, "A steepest ascent approach to maximizing the net present value of projects", Mathematical Methods of Operations Research 53 (2001), 435–450.
  • C. Schwindt, J. Zimmermann, "Parametrische Optimierung als Instrument zur Bewertung von Investitionsprojekten", Zeitschrift für Betriebswirtschaft 72 (2002), 593–617.
  • R. K. Ahuja, T. L. Magnanti, J. B. Orlin, Network Flows, Prentice Hall, 1993.
  • C. Berge, Graphs and Hypergraphs, North-Holland, Amsterdam, 1976.
9 thms2 active usersReviewed
Control TheoryOperations ResearchProbability+1·Captain: mikedeng1

Scheduling a Multi Class Queue with Many Exponential Servers: Asymptotic Optimality in Heavy Traffic: The HJB-Based Preemptive Policy Is Asymptotically Optimal Among Work-Conserving PoliciesResearch Paper

Motivation

Large call centers route several types of customers to a common pool of agents. When the pool is large and highly utilized, the relevant asymptotic regime is the quality-and-efficiency-driven (QED) or Halfin–Whitt regime (Halfin & Whitt 1981). The number of servers nnn grows while the offered load stays within O(n)O(\sqrt n)O(n​) of nnn. Waiting is then neither negligible nor overwhelming (Gans, Koole & Mandelbaum 2003).

Which class should a freed agent serve next? Exact optimization of a multi-class many-server queue with abandonment is intractable. The standard route is to solve a limiting diffusion control problem and translate its optimal control back into a policy for the queue. Atar, Mandelbaum and Reiman (Ann. Appl. Probab. 2004) carried this out for kkk customer classes, exponential service and abandonment, general renewal arrivals and general convex-type holding costs. They proved that the translated policy is asymptotically optimal. This mission formalizes that result for the preemptive policy.

Context:

  • Harrison & Zeevi (2004) studied the same multi-class many-server problem.
  • Bell & Williams (2001) proved asymptotic optimality of a threshold policy for a two-server system in conventional heavy traffic.
  • The present paper is the first to cover the QED regime with general costs and abandonment.

Setting

There are k≥1k\ge1k≥1 customer classes and nnn identical servers.

Primitives.

  • Arrivals. Class-iii customers arrive according to a renewal process AinA^n_iAin​ with interarrival times Uˇi(j)/λin\check U_i(j)/\lambda^n_iUˇi​(j)/λin​. Here the Uˇi(j)\check U_i(j)Uˇi​(j) are i.i.d., positive, of mean one and squared coefficient of variation CU,i2C^2_{U,i}CU,i2​.
  • Service. Service times are exponential with rate μin\mu^n_iμin​, represented by Poisson processes SinS^n_iSin​.
  • Abandonment. Waiting customers abandon at rate θin≥0\theta^n_i\ge0θin​≥0, represented by Poisson processes RinR^n_iRin​.

State. Xin(t)X^n_i(t)Xin​(t) is the number of class-iii customers in the system, Ψin(t)\Psi^n_i(t)Ψin​(t) the number in service and Φin=Xin−Ψin\Phi^n_i=X^n_i-\Psi^n_iΦin​=Xin​−Ψin​ the number waiting. The dynamics are

Xin(t)=Xi0,n+Ain(t)−Rin(∫0tΦin)−Sin(∫0tΨin),Ψn,Φn∈Z+k,∑iΨin≤n.X^n_i(t)=X^{0,n}_i+A^n_i(t)-R^n_i\Big(\int_0^t\Phi^n_i\Big)-S^n_i\Big(\int_0^t\Psi^n_i\Big),\qquad \Psi^n,\Phi^n\in\mathbb Z^k_+,\quad \textstyle\sum_i\Psi^n_i\le n .Xin​(t)=Xi0,n​+Ain​(t)−Rin​(∫0t​Φin​)−Sin​(∫0t​Ψin​),Ψn,Φn∈Z+k​,∑i​Ψin​≤n.

Policies.

  • A scheduling control policy (SCP) is the process Ψn\Psi^nΨn.
  • It is admissible if it does not anticipate the future beyond the time of the next arrival: past information is independent of future primitive increments.
  • It is work-conserving if no server idles while customers wait: (1⋅Xn−n)+=1⋅Φn(\mathbb 1\cdot X^n-n)^+=\mathbb 1\cdot\Phi^n(1⋅Xn−n)+=1⋅Φn.

Scaling and cost. In the QED scaling n−1λin→λin^{-1}\lambda^n_i\to\lambda_in−1λin​→λi​ with ∑iλi/μi=1\sum_i\lambda_i/\mu_i=1∑i​λi​/μi​=1. With ρi=λi/μi\rho_i=\lambda_i/\mu_iρi​=λi​/μi​ the centred processes are X^n=n−1/2(Xn−ρn)\hat X^n=n^{-1/2}(X^n-\rho n)X^n=n−1/2(Xn−ρn), Φ^n=n−1/2Φn\hat\Phi^n=n^{-1/2}\Phi^nΦ^n=n−1/2Φn and Ψ^n=n−1/2(Ψn−ρn)\hat\Psi^n=n^{-1/2}(\Psi^n-\rho n)Ψ^n=n−1/2(Ψn−ρn). The cost is

Cn=E∫0∞e−γtL~(Φ^n(t),Ψ^n(t)) dt.C^n=E\int_0^\infty e^{-\gamma t}\tilde L(\hat\Phi^n(t),\hat\Psi^n(t))\,dt .Cn=E∫0∞​e−γtL~(Φ^n(t),Ψ^n(t))dt.

The limiting control problem. It controls

X(t)=x+rW(t)+∫0tb(X(s),u(s)) ds,b(x,u)=ℓ+(μ−θ)(1⋅x)+u−μx,X(t)=x+rW(t)+\int_0^t b(X(s),u(s))\,ds,\qquad b(x,u)=\ell+(\mu-\theta)(\mathbb 1\cdot x)^+u-\mu x,X(t)=x+rW(t)+∫0t​b(X(s),u(s))ds,b(x,u)=ℓ+(μ−θ)(1⋅x)+u−μx,

where the control uuu takes values in the simplex Sk\mathbb S^kSk and WWW is a kkk-dimensional Brownian motion. The data are ri=(λiCU,i2+λi)1/2r_i=(\lambda_iC^2_{U,i}+\lambda_i)^{1/2}ri​=(λi​CU,i2​+λi​)1/2 and ℓi=λ^i−ρiμ^i\ell_i=\hat\lambda_i-\rho_i\hat\mu_iℓi​=λ^i​−ρi​μ^​i​. Its value V(x)V(x)V(x) is the infimum of E∫0∞e−γtL(X,u) dtE\int_0^\infty e^{-\gamma t}L(X,u)\,dtE∫0∞​e−γtL(X,u)dt, with L(x,u)=L~((1⋅x)+u,x−(1⋅x)+u)L(x,u)=\tilde L((\mathbb 1\cdot x)^+u,x-(\mathbb 1\cdot x)^+u)L(x,u)=L~((1⋅x)+u,x−(1⋅x)+u).

HJB equation and the proposed policy. The HJB equation is 12∑iri2∂iif+H(x,Df)−γf=0\tfrac12\sum_ir_i^2\partial_{ii}f+H(x,Df)-\gamma f=021​∑i​ri2​∂ii​f+H(x,Df)−γf=0 with H(x,p)=inf⁡u∈Sk[b(x,u)⋅p+L(x,u)]H(x,p)=\inf_{u\in\mathbb S^k}[b(x,u)\cdot p+L(x,u)]H(x,p)=infu∈Sk​[b(x,u)⋅p+L(x,u)]. Let hhh be a measurable selection of its minimizers. The proposed preemptive policy (P-SCP) sets the queue vector to Θ[(1⋅Xn−n)+h(X^n)]\Theta[(\mathbb 1\cdot X^n-n)^+h(\hat X^n)]Θ[(1⋅Xn−n)+h(X^n)], an integer rounding, and falls back to a static priority rule when that is infeasible.

Formalization targets

Goal: Theorem 2(i)

For a Cpol2C^2_{\mathrm{pol}}Cpol2​ solution fff of the HJB equation, a measurable minimizer selection hhh, and initial states with X^0,n→x\hat X^{0,n}\to xX^0,n→x:

lim⁡n→∞E∫0∞e−γtL~(Φ^tn,∗,Ψ^tn,∗) dt  ≤  lim inf⁡n→∞E∫0∞e−γtL~(Φ^tn,Ψ^tn) dt\lim_{n\to\infty}E\int_0^\infty e^{-\gamma t}\tilde L(\hat\Phi^{n,*}_t,\hat\Psi^{n,*}_t)\,dt\;\le\;\liminf_{n\to\infty}E\int_0^\infty e^{-\gamma t}\tilde L(\hat\Phi^n_t,\hat\Psi^n_t)\,dtn→∞lim​E∫0∞​e−γtL~(Φ^tn,∗​,Ψ^tn,∗​)dt≤n→∞liminf​E∫0∞​e−γtL~(Φ^tn​,Ψ^tn​)dt

This holds for every sequence of work-conserving admissible SCPs, and the left-hand limit exists and is finite. No constants are hard-coded.

Milestones

The milestones follow the proof:

  • on the diffusion side, Proposition 2 (well-posedness), Proposition 4 (stability and moment bounds), Proposition 5(i)–(ii) (growth and continuity of VVV) and Theorem 3 (VVV is the unique Cpol2C^2_{\mathrm{pol}}Cpol2​ HJB solution, and an optimal Markov policy exists);
  • on the queueing side, Proposition 1 (feedback rules give admissible SCPs), Lemmas 2–3 (moment bounds), Lemma 4(i)–(ii) (FCLT for the primitives and the fluid limit (Ψˉn,Φˉn)⇒(ρ,0)(\bar\Psi^n,\bar\Phi^n)\Rightarrow(\rho,0)(Ψˉn,Φˉn)⇒(ρ,0)), and Theorem 4(i)–(ii): lim inf⁡≥V(x)\liminf\ge V(x)liminf≥V(x) always, and lim sup⁡≤V(x)\limsup\le V(x)limsup≤V(x) under condition (49).

Significance

The result. Theorem 2(i) justifies using the diffusion control problem as a design tool for multi-class many-server systems. The policy is explicit given hhh, and it is optimal in the limit against all non-anticipating work-conserving policies, including those that use the full history and the time of the next arrival. The proof also identifies the limit cost with V(x)V(x)V(x).

Formalizing it. The result is proved on paper, with some steps (Proposition 1, the principle of optimality, the time-change and martingale limit theorems) given as sketches or citations. No part of it is machine-checked. A formalization requires:

  • a counting-process model of the queue;
  • a careful definition of non-anticipation;
  • a pathwise controlled SDE;
  • classical solvability of a semilinear elliptic HJB equation on Rk\mathbb R^kRk;
  • a weak-convergence argument in Skorokhod space.

Each of these is reusable well beyond this paper.

Difficulty

The obvious argument would show that X^n\hat X^nX^n converges to the controlled diffusion and pass the costs to the limit. This fails for two reasons:

  • the comparison class contains arbitrary non-Markov, history-dependent policies, so the queue does not converge to a single controlled diffusion;
  • the optimal selector hhh is in general discontinuous (for linear costs it is), so the proposed policy is not a continuous function of the state.

The proof instead compares every policy with the HJB solution through Itô's formula on the prelimit processes. This needs:

  • uniform moment bounds;
  • tightness of the integral processes;
  • the convergence of stochastic integrals of Kurtz and Protter;
  • and, for the proposed policy, the fact that the rounding Θ\ThetaΘ and the priority fallback perturb the minimizer by O(n−1/2)O(n^{-1/2})O(n−1/2).

Existence of a classical HJB solution on all of Rk\mathbb R^kRk, with only Hölder-continuous costs and polynomial growth, rests on a bounded-domain existence theorem for fully nonlinear elliptic equations.

Formalization scope

The Lean development commits to the following conventions.

  • Indexing and norms. Classes are Fin k with k≥1k\ge1k≥1; paper class iii is index i−1i-1i−1, so "class kkk" (highest priority, rounding remainder of Θ\ThetaΘ) is the last index. Vectors are Fin k → ℝ and ∥⋅∥\|\cdot\|∥⋅∥ is the paper's ℓ1\ell^1ℓ1 norm; the paper's ∣⋅∣|\cdot|∣⋅∣ on vectors is read the same way.
  • Probability space and paths. All systems share one complete probability space. Time is real and every condition is for t≥0t\ge0t≥0. The paper's "without loss" path regularity (finite arrival counts, Poisson paths Z+\mathbb Z_+Z+​-valued, nondecreasing and càdlàg) holds for every ω\omegaω.
  • Poisson processes are defined by independent Poisson increments; rate 000 gives the zero process.
  • Policies. A policy is a pair of real processes (Ψn,Xn)(\Psi^n,X^n)(Ψn,Xn) with integer values. Admissibility is Definition 2 verbatim, with the future σ\sigmaσ-field built from the next arrival time τin(t)\tau^n_i(t)τin​(t). Work conservation is (18).
  • Costs and value are lower Lebesgue integrals in [0,∞][0,\infty][0,∞], and lim⁡\limlim/lim inf⁡\liminfliminf are taken there. The integrands are nonnegative under work conservation.
  • Admissible systems range over sample spaces Ω : Type (universe 0). "Complete filtered probability space" means PPP complete with all null sets in F0\mathcal F_0F0​. Brownian motion is Mathlib's IsBrownianReal per coordinate, with independence and the (Ft)(\mathcal F_t)(Ft​)-Brownian property stated explicitly. VVV is the infimum over systems and their controlled processes.
  • Discount rate. γ>0\gamma>0γ>0 is a hypothesis; the paper leaves it implicit.
  • Initial states are integer vectors X0,n∈Z+kX^{0,n}\in\mathbb Z^k_+X0,n∈Z+k​ with n−1/2(X0,n−ρn)→xn^{-1/2}(X^{0,n}-\rho n)\to xn−1/2(X0,n−ρn)→x. The literal "X^0,n∈n−1/2Zk\hat X^{0,n}\in n^{-1/2}\mathbb Z^kX^0,n∈n−1/2Zk" would require ρin∈Z\rho_in\in\mathbb Zρi​n∈Z. Assumption 1(ii) is not imposed: each policy chooses its own initial split.
  • Lemma 3 is stated for all nnn beyond a threshold that depends on the sequence, with constants c,mˉc,\bar mc,mˉ chosen before xxx and the sequence. The printed all-nnn bound with ccc independent of xxx fails when the early terms X^0,n\hat X^{0,n}X^0,n are large.
  • Weak convergence to a continuous limit uses the coupling form CouplingConverges of the published BellWilliams2001.ThresholdPolicy.Paths; convergence to a deterministic limit is UocInProb.

The goal hypothesizes fff and hhh with the pointwise identity b(x,h(x))⋅Df(x)+L(x,h(x))=H(x,Df(x))b(x,h(x))\cdot Df(x)+L(x,h(x))=H(x,Df(x))b(x,h(x))⋅Df(x)+L(x,h(x))=H(x,Df(x)) for all xxx. An arbitrary "optimal Markov control policy" may differ from a minimizer selection on the Lebesgue-null lattice where X^n\hat X^nX^n lives, and that formalization would make the goal false. Restricting the comparators to feedback, Markov or nonpreemptive policies, fixing kkk, dropping abandonment, specializing to Poisson arrivals or linear costs, or imposing a common initial split would each trivialize or weaken the statement and is ruled out.

Not formalized:

  • Lemma 4(iii) (tightness);
  • Lemma 5 (Kurtz–Protter, which needs semimartingale theory absent from Mathlib);
  • Lemma 6 (convergence of Stieltjes integrals at limit points);
  • Proposition 5(iii);
  • the nonpreemptive results, Theorem 2(ii)–(iii).

Contributions are welcome on any milestone, and especially on infrastructure: Poisson and renewal processes, functional central limit theorems in Skorokhod space, classical solvability of elliptic HJB equations, and measurable selection of minimizers.

Selected references

  • R. Atar, A. Mandelbaum, M. I. Reiman, Scheduling a multi class queue with many exponential servers: asymptotic optimality in heavy traffic, Ann. Appl. Probab. 14(3), 2004. https://arxiv.org/abs/math/0407058
  • S. Halfin, W. Whitt, Heavy-traffic limits for queues with many exponential servers, Oper. Res. 29(3), 1981. https://doi.org/10.1287/opre.29.3.567
  • N. Gans, G. Koole, A. Mandelbaum, Telephone call centers: tutorial, review, and research prospects, Manuf. Serv. Oper. Manag. 5(2), 2003. https://doi.org/10.1287/msom.5.2.79.16071
  • J. M. Harrison, A. Zeevi, Dynamic scheduling of a multiclass queue in the Halfin–Whitt heavy traffic regime, Oper. Res. 52(2), 2004. https://doi.org/10.1287/opre.1040.0109
  • S. L. Bell, R. J. Williams, Dynamic scheduling of a system with two parallel servers in heavy traffic with resource pooling: asymptotic optimality of a threshold policy, Ann. Appl. Probab. 11(3), 2001. https://doi.org/10.1214/aoap/1015345343
  • T. G. Kurtz, P. Protter, Weak limit theorems for stochastic integrals and stochastic differential equations, Ann. Probab. 19(3), 1991. https://doi.org/10.1214/aop/1176990334
16 thms1 active userReviewed
Graph TheoryOperations ResearchTheoretical Computer Science·Captain: mikedeng1

On the Approximability of Single-Machine Scheduling with Precedence Constraints 5: An r-Approximate Vertex Cover of the Variable-Cost Graph Yields an (r + ε)-Approximate Vertex Cover of GResearch Paper

Why the variable cost matters

The problem 1∣prec∣∑wjCj1|\mathrm{prec}|\sum w_jC_j1∣prec∣∑wj​Cj​ asks for an order in which to process jobs on one machine, respecting precedence constraints, so as to minimize the weighted sum of completion times. It is strongly NP-hard, and for decades the best approximation ratio known has been 222, achieved by several unrelated algorithms (LP relaxations, Sidney decompositions, primal–dual methods).

Correa and Schulz (2005) and Ambühl and Mastrolilli (2009) showed that the problem is a special case of weighted vertex cover: its objective splits into a fixed cost, the same for every feasible solution, and a variable cost, which equals the weight of a vertex cover in an auxiliary graph GPSG^S_{\mathbf P}GPS​. Approximating vertex cover in GPSG^S_{\mathbf P}GPS​ within a factor α\alphaα therefore approximates the scheduling problem within α\alphaα. Uhan observed that the classical 2-approximations owe their guarantee to the fixed cost and can be arbitrarily bad on the variable cost alone.

Section 8 of Ambühl, Mastrolilli, Mutsanas and Svensson, Math. Oper. Res. 36(4) (2011) (DOI), proves the converse: approximating the variable cost is as hard as approximating vertex cover itself. A better-than-2 algorithm for 1∣prec∣∑wjCj1|\mathrm{prec}|\sum w_jC_j1∣prec∣∑wj​Cj​ must therefore either exploit the fixed cost or improve on the best known approximation for vertex cover, a long-standing open question.

Setting

Scheduling instance. A finite set NNN of jobs, a partial order P=(N,P)\mathbf P = (N,P)P=(N,P) (reflexive; (i,j)∈P(i,j) \in P(i,j)∈P, i≠ji \ne ji=j, means iii precedes jjj), processing times pj≥0p_j \ge 0pj​≥0 and weights wj≥0w_j \ge 0wj​≥0.

Incomparable pairs. Jobs x,yx,yx,y are incomparable, x∥yx \parallel yx∥y, if neither (x,y)(x,y)(x,y) nor (y,x)(y,x)(y,x) lies in PPP. The set inc⁡(P)\operatorname{inc}(\mathbf P)inc(P) consists of the ordered pairs (x,y)(x,y)(x,y) with x∥yx \parallel yx∥y.

The vertex cover graph GPSG^S_{\mathbf P}GPS​. One node per incomparable pair (i,j)(i,j)(i,j), of weight w(i,j)=piwjw_{(i,j)} = p_i w_jw(i,j)​=pi​wj​. Distinct nodes (i,j)(i,j)(i,j) and (k,ℓ)(k,\ell)(k,ℓ) are adjacent when, in one of the two orders, j=kj=kj=k and i=ℓi=\elli=ℓ, or j=kj=kj=k and (i,ℓ)∈P(i,\ell)\in P(i,ℓ)∈P, or (i,ℓ),(k,j)∈P(i,\ell),(k,j) \in P(i,ℓ),(k,j)∈P. For a set CCC of nodes, w(C)=∑u∈Cwuw(C) = \sum_{u\in C} w_uw(C)=∑u∈C​wu​; for a vertex cover CCC this is the variable cost, and τw(GPS)\tau_w(G^S_{\mathbf P})τw​(GPS​) is its minimum over all vertex covers.

The instance S(G,k)S(G,k)S(G,k). Given a graph G=(V,E)G=(V,E)G=(V,E) with V={v1,…,vn}V = \{v_1,\dots,v_n\}V={v1​,…,vn​} and k>0k > 0k>0, the instance has jobs vi′v'_ivi′​ (processing time k−ik^{-i}k−i, weight 000) and vi′′v''_ivi′′​ (processing time 000, weight kik^{i}ki), and precedence constraints vi′<vj′′v'_i < v''_jvi′​<vj′′​ and vj′<vi′′v'_j < v''_ivj′​<vi′′​ for each edge {vi,vj}∈E\{v_i,v_j\} \in E{vi​,vj​}∈E, plus vi′<vj′′v'_i < v''_jvi′​<vj′′​ for all i<ji<ji<j. The nodes (vi′,vi′′)(v'_i, v''_i)(vi′​,vi′′​) of GPSG^S_{\mathbf P}GPS​ have weight 111 and are called heavy; all others are light. For a set CCC of nodes, CG={vi:(vi′,vi′′)∈C}C_G = \{v_i : (v'_i,v''_i)\in C\}CG​={vi​:(vi′​,vi′′​)∈C}. The vertex cover number of GGG is τ(G)\tau(G)τ(G).

Formalization targets

Goal: Theorem 8.1

For every graph GGG on nnn vertices, every r≥1r \ge 1r≥1, ε>0\varepsilon>0ε>0 and every k≥1k \ge 1k≥1 with k>n2r/εk > n^2r/\varepsilonk>n2r/ε: if CCC is a vertex cover of GPSG^S_{\mathbf P}GPS​ for S=S(G,k)S = S(G,k)S=S(G,k) with w(C)≤r τw(GPS)w(C) \le r\,\tau_w(G^S_{\mathbf P})w(C)≤rτw​(GPS​), then CGC_GCG​ is a vertex cover of GGG,

∣CG∣≤r(τ(G)+n2k),|C_G| \le r\Bigl(\tau(G) + \frac{n^2}{k}\Bigr),∣CG​∣≤r(τ(G)+kn2​),

and, when E≠∅E \ne \emptysetE=∅,

∣CG∣≤r(1+n2k)τ(G)<(r+ε) τ(G).|C_G| \le r\Bigl(1+\frac{n^2}{k}\Bigr)\tau(G) < (r+\varepsilon)\,\tau(G).∣CG​∣≤r(1+kn2​)τ(G)<(r+ε)τ(G).

The paper words the theorem as "approximating the variable cost of 1∣prec∣∑wjCj1|\mathrm{prec}|\sum w_jC_j1∣prec∣∑wj​Cj​ is as hard as approximating vertex cover"; the statement above is the mathematical content its proof establishes.

Milestones (§8, p. 664)

  1. In GPSG^S_{\mathbf P}GPS​, every heavy node has weight 111, every light node has weight at most 1/k1/k1/k, and the light nodes have total weight at most n2/kn^2/kn2/k (for k≥1k \ge 1k≥1).
  2. Heavy nodes (vi′,vi′′)(v'_i,v''_i)(vi′​,vi′′​) and (vj′,vj′′)(v'_j,v''_j)(vj′​,vj′′​) are adjacent if and only if {vi,vj}∈E\{v_i,v_j\}\in E{vi​,vj​}∈E; for k>1k>1k>1 the subgraph induced by the weight-1 nodes is isomorphic to GGG via (vi′,vi′′)↦vi(v'_i,v''_i) \mapsto v_i(vi′​,vi′′​)↦vi​.

Significance

The result. Theorem 8.1 is one half of an equivalence: by Theorem 2.1 (Correa–Schulz, Ambühl–Mastrolilli), minimizing the variable cost is a special case of weighted vertex cover; by Theorem 8.1, it is also as hard to approximate. Any hardness of approximation for vertex cover (NP-hardness of factor 1.361.361.36 by Dinur and Safra; factor 2−δ2-\delta2−δ under the unique games conjecture by Khot and Regev) transfers to the variable cost. It also explains why the known 2-approximations must rely on the fixed cost, and it frames the later result of Bansal and Khot that the full objective is hard to approximate within 2−δ2-\delta2−δ under a variant of the unique games conjecture.

Formalizing it. The theorem is proved in the paper; no machine-checked version exists. The mission produces a checked account of the reduction: the vertex cover graph of an arbitrary precedence-constrained instance, the adjacency-poset instance built from a graph, and the quantitative transfer of approximation ratios. The definition of GPSG^S_{\mathbf P}GPS​ is shared with the other missions of this series.

Difficulty

The construction is short; the care is in the bookkeeping. One must check that the precedence relation is a partial order, determine exactly which ordered pairs are incomparable, verify that two heavy nodes are adjacent only through the third clause of the adjacency rule and only when the corresponding vertices are adjacent in GGG, and bound the weights of all remaining nodes, including the many nodes of weight 000. The transfer then compares an approximate cover of GPSG^S_{\mathbf P}GPS​ with an optimal one whose heavy part comes from an optimal cover of GGG; the additive error n2/kn^2/kn2/k must be converted into a multiplicative one, which requires τ(G)≥1\tau(G)\ge 1τ(G)≥1.

A first reading of the page suggests that GPSG^S_{\mathbf P}GPS​ has at most n2n^2n2 nodes; it does not. The pairs (vi′,vj′)(v'_i,v'_j)(vi′​,vj′​) and (vi′′,vj′′)(v''_i,v''_j)(vi′′​,vj′′​) with i≠ji\ne ji=j are incomparable nodes of weight 000, so there can be up to 4n2−2n4n^2-2n4n2−2n nodes. Only nodes of positive weight are few.

Formalization scope

  • Model. Jobs form a finite type; precedence constraints are an explicit reflexive partial-order relation P : N → N → Prop. Processing times and weights are nonnegative reals. The vertex cover graph is a SimpleGraph on the subtype of incomparable ordered pairs, using the symmetric closure of the printed adjacency rule without loops. Vertex covers are Mathlib's SimpleGraph.IsVertexCover; τ(G)\tau(G)τ(G) is Mathlib's vertexCoverNum, finite for a finite graph and converted with toNat; τw(GPS)\tau_w(G^S_{\mathbf P})τw​(GPS​) is a minimum over finite vertex covers.
  • The instance. The graph is a SimpleGraph (Fin n); i : Fin n stands for vi+1v_{i+1}vi+1​, so exponents are i+1i+1i+1 and the order i<ji<ji<j is that of Fin n. Jobs are Fin n ⊕ Fin n (v′v'v′ left, v′′v''v′′ right). The parameter kkk is in R≥0\mathbb R_{\ge 0}R≥0​.
  • Added hypotheses. k≥1k \ge 1k≥1, implicit in the page ("k>n2r/εk > n^2r/\varepsilonk>n2r/ε" does not imply it when ε\varepsilonε is large, and for k<1k<1k<1 the light nodes outweigh the heavy ones). The isomorphism with GGG is stated for k>1k > 1k>1, since at k=1k=1k=1 some light nodes also have weight 111. The multiplicative bound requires E≠∅E \ne \emptysetE=∅; the additive bound holds for every graph.
  • Not formalized. The phrases "approximation algorithm", "polynomial time" and "as hard as"; the passage from vertex covers of GPSG^S_{\mathbf P}GPS​ to schedules (Theorem 2.1, cited from Correa–Schulz and Ambühl–Mastrolilli); the fixed cost. What is stated instead is the explicit map C↦CGC \mapsto C_GC↦CG​ and the ratio it achieves, r(1+n2/k)<r+εr(1+n^2/k) < r+\varepsilonr(1+n2/k)<r+ε. The false count "at most n2n^2n2 vertices" is not stated.
  • Ruled out. The goal is not a statement about an arbitrary graph or an assumed cover of GGG: it concerns the specific instance S(G,k)S(G,k)S(G,k) and every CCC that is an rrr-approximate vertex cover of its graph, and the fact that CGC_GCG​ covers GGG is a conclusion, not a hypothesis.
  • Welcome contributions. Proofs of the two milestones and of the goal; general lemmas on GPSG^S_{\mathbf P}GPS​ (weights of vertex covers, behaviour under induced subgraphs) are reusable across the series.

Selected references

  • C. Ambühl, M. Mastrolilli, N. Mutsanas, O. Svensson, On the Approximability of Single-Machine Scheduling with Precedence Constraints, Mathematics of Operations Research 36(4):653–669, 2011. https://doi.org/10.1287/moor.1110.0512
  • J. R. Correa, A. S. Schulz, Single-Machine Scheduling with Precedence Constraints, Mathematics of Operations Research 30(4):1005–1021, 2005. https://doi.org/10.1287/moor.1050.0158
  • C. Ambühl, M. Mastrolilli, Single Machine Precedence Constrained Scheduling Is a Vertex Cover Problem, Algorithmica 53(4):488–503, 2009. https://doi.org/10.1007/s00453-008-9251-6
  • I. Dinur, S. Safra, On the Hardness of Approximating Minimum Vertex Cover, Annals of Mathematics 162(1):439–485, 2005. https://doi.org/10.4007/annals.2005.162.439
  • S. Khot, O. Regev, Vertex Cover Might Be Hard to Approximate to within 2 − ε, Journal of Computer and System Sciences 74(3):335–349, 2008. https://doi.org/10.1016/j.jcss.2007.06.019
  • N. Bansal, S. Khot, Optimal Long Code Test with One Free Bit, FOCS 2009, 453–462. https://doi.org/10.1109/FOCS.2009.23
5 thms1 active userReviewed
CombinatoricsGraph TheoryOperations Research+1·Captain: mikedeng1

On the Approximability of Single-Machine Scheduling with Precedence Constraints 4: Vertex Cover in Connected Graphs of Degree ≤ 3 Reduces to Weighted Vertex Cover for Interval-Order InstancesResearch Paper

Motivation

In the single-machine scheduling problem 1∣prec∣∑wjCj1|\mathrm{prec}|\sum w_jC_j1∣prec∣∑wj​Cj​, a set NNN of nnn jobs, each with a processing time pj≥0p_j\ge 0pj​≥0 and a weight wj≥0w_j\ge 0wj​≥0, is processed on one machine without interruption, subject to precedence constraints given by a partial order PPP on NNN. The aim is to minimize the weighted sum of completion times ∑jwjCj\sum_j w_jC_j∑j​wj​Cj​. The problem is strongly NP-hard for general precedence constraints (Lawler 1978; Lenstra and Rinnooy Kan 1978), and its approximability was a recurring open question in scheduling theory (Schuurman and Woeginger 1999).

A line of work by Chudak and Hochbaum, Correa and Schulz, and Ambühl and Mastrolilli showed that the problem is a special case of minimum weighted vertex cover in a graph GPSG^S_PGPS​ built from the instance. Many problems on partial orders become polynomial when the order is an interval order, so it is natural to ask whether this one does too. Section 7 of Ambühl, Mastrolilli, Mutsanas and Svensson (Math. Oper. Res. 2011) answers no: the problem stays NP-hard on interval orders. The proof is a reduction from vertex cover in connected graphs of maximum degree 3. This mission formalizes the correctness of that reduction.

Setting

A poset P=(N,P)P=(N,P)P=(N,P) is read as a reflexive relation: (x,y)∈P(x,y)\in P(x,y)∈P means x≤yx\le yx≤y. Jobs x,yx,yx,y are incomparable if neither (x,y)(x,y)(x,y) nor (y,x)(y,x)(y,x) is in PPP, and inc⁡(P)\operatorname{inc}(P)inc(P) is the set of ordered incomparable pairs. The vertex cover graph GPSG^S_PGPS​ has one node (i,j)(i,j)(i,j) for each incomparable pair, weighted piwjp_iw_jpi​wj​. Two nodes (i,j)(i,j)(i,j) and (k,ℓ)(k,\ell)(k,ℓ) are adjacent if j=kj=kj=k and i=ℓi=\elli=ℓ, or j=kj=kj=k and (i,ℓ)∈P(i,\ell)\in P(i,ℓ)∈P, or (i,ℓ)∈P(i,\ell)\in P(i,ℓ)∈P and (k,j)∈P(k,j)\in P(k,j)∈P. Write w(CI)w(C_I)w(CI​) for the minimum weight of a vertex cover of GISG^S_IGIS​.

A poset is an interval order if each element xxx can be assigned a closed real interval [ax,bx][a_x,b_x][ax​,bx​] such that x<yx<yx<y if and only if bx<ayb_x<a_ybx​<ay​.

The reduction starts from a graph G=(V,E)G=(V,E)G=(V,E) with vertices v1,…,vNv_1,\dots,v_Nv1​,…,vN​ and a spanning tree T=(V,ET)T=(V,E_T)T=(V,ET​) rooted at v1v_1v1​, numbered so that each parent comes before its children. The paper uses a breadth-first search tree.

  • Stage 1. The graph G′G'G′ is built from TTT. Each viv_ivi​ gets a pendant path vi−u1i−u2iv_i - u^i_1 - u^i_2vi​−u1i​−u2i​. Each non-tree edge {vi,vj}∈E∖ET\{v_i,v_j\}\in E\setminus E_T{vi​,vj​}∈E∖ET​ with i<ji<ji<j gets the path vi−e1ij−e2ij−u2jv_i - e^{ij}_1 - e^{ij}_2 - u^j_2vi​−e1ij​−e2ij​−u2j​. The non-tree edges themselves are not edges of G′G'G′.
  • Stage 2. The scheduling instance SSS has jobs s0s_0s0​, s1,…,sNs_1,\dots,s_Ns1​,…,sN​, m1,…,mNm_1,\dots,m_Nm1​,…,mN​, e1,…,eNe_1,\dots,e_Ne1​,…,eN​, and bijb_{ij}bij​ for each non-tree edge. Their intervals, processing times and weights are given in a table on p. 662. For example, sjs_jsj​ has interval [i,j][i,j][i,j], processing time 1/kj1/k^j1/kj and weight kik^iki, where viv_ivi​ is the parent of vjv_jvj​. The precedence constraints III are the interval order of these intervals. With nnn the number of jobs, the parameter is k=n2+1k=n^2+1k=n2+1.
  • The set DDD. It is {(s0,s1)}∪{(si,sj):vi parent of vj}∪{(si,mi),(mi,ei)}∪{(si,bij),(bij,mj)}\{(s_0,s_1)\}\cup\{(s_i,s_j): v_i \text{ parent of } v_j\}\cup\{(s_i,m_i),(m_i,e_i)\}\cup\{(s_i,b_{ij}),(b_{ij},m_j)\}{(s0​,s1​)}∪{(si​,sj​):vi​ parent of vj​}∪{(si​,mi​),(mi​,ei​)}∪{(si​,bij​),(bij​,mj​)}. The graph GI′G'_IGI′​ is the subgraph of GISG^S_IGIS​ induced by DDD.

Formalization targets

Goal: Theorem 7.1 (p. 661)

For every connected graph GGG of maximum degree at most 333, every parent-first spanning tree TTT and every m∈Nm\in\mathbb Nm∈N, the precedence constraints III of SSS form an interval order, and

G has a vertex cover of size≤m  ⟺  ⌊w(CI)⌋≤m+∣V∣+∣E∖ET∣.G \text{ has a vertex cover of size} \le m \iff \lfloor w(C_I)\rfloor \le m + |V| + |E\setminus E_T|.G has a vertex cover of size≤m⟺⌊w(CI​)⌋≤m+∣V∣+∣E∖ET​∣.

Milestones, in the order the proof uses them

  • Claim 1 (p. 662): τ(G′)=τ(G)+∣V∣+∣E∖ET∣\tau(G') = \tau(G)+|V|+|E\setminus E_T|τ(G′)=τ(G)+∣V∣+∣E∖ET​∣, where τ\tauτ is the vertex cover number.
  • Remark 7.1 (p. 662): for jobs with intervals [a,b][a,b][a,b] and [c,d][c,d][c,d] and a≤da\le da≤d, pi≤1/k⌈b⌉p_i\le 1/k^{\lceil b\rceil}pi​≤1/k⌈b⌉ and wj≤k⌈c⌉w_j\le k^{\lceil c\rceil}wj​≤k⌈c⌉. On incomparable pairs piwj∈{1}∪[0,1/k]p_iw_j\in\{1\}\cup[0,1/k]pi​wj​∈{1}∪[0,1/k]. Moreover, piwj≥kp_iw_j\ge kpi​wj​≥k forces b<cb<cb<c, and piwj=1p_iw_j=1pi​wj​=1 forces ⌈b⌉=⌈c⌉\lceil b\rceil=\lceil c\rceil⌈b⌉=⌈c⌉.
  • Claim 2 (p. 663): an incomparable pair (i,j)(i,j)(i,j) has piwj=1p_iw_j=1pi​wj​=1 if it is in DDD, and piwj≤1/kp_iw_j\le 1/kpi​wj​≤1/k otherwise.
  • Claim 3 (p. 663): GI′≅G′G'_I\cong G'GI′​≅G′.
  • §7, p. 664: with k=n2+1k=n^2+1k=n2+1, ∑(i,j)∈inc⁡(I)∖Dpiwj<1\sum_{(i,j)\in\operatorname{inc}(I)\setminus D}p_iw_j<1∑(i,j)∈inc(I)∖D​pi​wj​<1, and hence w(CI′)=⌊w(CI)⌋w(C'_I)=\lfloor w(C_I)\rfloorw(CI′​)=⌊w(CI​)⌋.

Significance

The result. Interval orders are a standard tractable class: several scheduling and order-theoretic problems that are hard in general become polynomial on them (Papadimitriou and Yannakakis 1979). Theorem 7.1 puts 1∣prec∣∑wjCj1|\mathrm{prec}|\sum w_jC_j1∣prec∣∑wj​Cj​ outside this pattern. Section 6 of the same paper shows that the problem nonetheless has a 3/23/23/2-approximation on interval orders, so hardness and approximability are separated on this class. The paper also remarks that the proof makes weighted vertex cover NP-hard to approximate within some factor r>1r>1r>1 on the graphs GISG^S_IGIS​ arising from interval orders.

Formalizing it. The theorem is proved in the paper. Nothing in this mission is open, and none of it has been machine-checked before. The work splits into the following parts:

  • a gadget argument on unweighted vertex covers (Claim 1, after Alimonti and Kann);
  • an exact case analysis of incomparable pairs in a concrete interval order (Remark 7.1, Claim 2);
  • a graph isomorphism (Claim 3);
  • a rounding argument that links weighted and unweighted optima.

The definitions of GPSG^S_PGPS​ and of minimum-weight vertex covers are shared with the other missions of this series.

Difficulty

The construction is explicit, and each step is elementary. The work is in the bookkeeping. Claim 2 requires classifying every incomparable pair of jobs, including pairs of different kinds such as (bij,sℓ)(b_{ij}, s_\ell)(bij​,sℓ​), by comparing ceilings of interval endpoints. Half-integer endpoints (mim_imi​, bijb_{ij}bij​) are exactly what separates weight-one pairs from comparable ones. Claim 3 requires checking adjacency in GISG^S_IGIS​ for all pairs of nodes of DDD in both directions. The paper writes out two cases in each direction and calls the rest similar.

Claim 1 has a direction that is not simply local. A vertex cover of G′G'G′ that misses both endpoints of a non-tree edge has to be repaired by swapping gadget vertices, and the repair must be repeated without increasing the size.

A natural first idea is to treat the light nodes (weight at most 1/k1/k1/k) as negligible one at a time. This does not suffice: the argument needs their total weight to stay below 111, which is what forces kkk to grow with n2n^2n2.

Formalization scope

  • Graph and tree. GGG is a SimpleGraph (Fin N); vertex vi+1v_{i+1}vi+1​ is i, and the root is index 0. The tree is a TreeLayout: a parent function returning none exactly at the root, with each parent of smaller index and adjacent in GGG. The statements hold for every such layout. This is stronger than the paper's breadth-first tree, and the proof uses only "parent before child".
  • Hypotheses of the goal. Connectivity and the degree bound ((G.neighborSet v).ncard ≤ 3) are kept as in the paper. They matter only for the NP-completeness of the source problem.
  • Jobs. The jobs form an inductive type with one constructor per row of the table. Their order is a PartialOrder instance: x≤yx\le yx≤y iff x=yx=yx=y or bx<ayb_x<a_ybx​<ay​. Processing times and weights are real numbers. Section 1 of the paper asks for nonnegative integers, but the instance uses 1/kj1/k^j1/kj and the formalization follows the instance as printed.
  • Constants. The constants are explicit: k=n2+1k=n^2+1k=n2+1 with nnn the cardinality of the job type, and c=∣V∣+∣E∖ET∣c=|V|+|E\setminus E_T|c=∣V∣+∣E∖ET​∣. Remark 7.1 and Claim 2 are stated for every real k>1k>1k>1.
  • Optimum values. w(CI)w(C_I)w(CI​) is a minimum over the finite family of vertex covers. Unweighted cover numbers are Mathlib's SimpleGraph.vertexCoverNum. The floor is Nat.floor, which agrees with the integer floor because w(CI)≥0w(C_I)\ge 0w(CI​)≥0.
  • Not formalized. The goal's wording ("NP-hard") is not formalized. Neither are the NP-completeness of degree-3 vertex cover (Garey, Johnson and Stockmeyer), the polynomial size of the construction, or Theorem 2.1 (cited), which turns a vertex cover of GISG^S_IGIS​ into a schedule. What is stated is the correctness of the reduction: the instance has interval-order constraints, and its optimum decides the vertex cover question.
  • No trivialization. The instance SSS is built from GGG and TTT exactly as in the table. The goal quantifies over all graphs and layouts, never over an instance SSS assumed to have the properties.
  • Contributions. Contributions are welcome on any milestone. Claims 1 and 3 are independent of the weights, and Claim 2 is independent of the graph theory.

Selected references

  • C. Ambühl, M. Mastrolilli, N. Mutsanas, O. Svensson, On the Approximability of Single-Machine Scheduling with Precedence Constraints, Math. Oper. Res. 36(4):653–669, 2011. https://doi.org/10.1287/moor.1110.0512
  • C. Ambühl, M. Mastrolilli, Single machine precedence constrained scheduling is a vertex cover problem, Algorithmica 53(4):488–503, 2009. https://doi.org/10.1007/s00453-008-9251-1
  • J. R. Correa, A. S. Schulz, Single machine scheduling with precedence constraints, Math. Oper. Res. 30(4):1005–1021, 2005. https://doi.org/10.1287/moor.1050.0158
  • P. Alimonti, V. Kann, Some APX-completeness results for cubic graphs, Theoret. Comput. Sci. 237(1–2):123–134, 2000. https://doi.org/10.1016/S0304-3975(98)00158-3
  • M. R. Garey, D. S. Johnson, L. Stockmeyer, Some simplified NP-complete graph problems, Theoret. Comput. Sci. 1(3):237–267, 1976. https://doi.org/10.1016/0304-3975(76)90059-1
  • C. H. Papadimitriou, M. Yannakakis, Scheduling interval-ordered tasks, SIAM J. Comput. 8(3):405–409, 1979. https://doi.org/10.1137/0208031
10 thms1 active userReviewed
CombinatoricsGraph TheoryOperations Research+1·Captain: mikedeng1

On the Approximability of Single-Machine Scheduling with Precedence Constraints 1: A k-Fold Realizer of Size t Yields a Vertex Cover of Expected Weight at Most (2 − 2/(t/k)) Times OptimalResearch Paper

Motivation

Single-machine scheduling with precedence constraints, written 1∣prec∣∑wjCj1|\mathrm{prec}|\sum w_jC_j1∣prec∣∑wj​Cj​ in the notation of Graham et al., asks for an order of nnn weighted jobs on one machine that respects a given partial order and minimizes the weighted sum of completion times. The problem is strongly NP-hard (Lawler 1978; Lenstra and Rinnooy Kan 1978), and closing its approximability gap is listed by Schuurman and Woeginger among ten outstanding open problems in scheduling theory. Several 2-approximation algorithms are known (Schulz 1996; Hall et al. 1997; Chudak and Hochbaum 1999; Chekuri and Motwani 1999; Margot et al. 2003).

A line of work by Chudak and Hochbaum, Correa and Schulz, and Ambühl and Mastrolilli showed that the problem is a special case of minimum weighted vertex cover in a graph built from the precedence order. Ambühl, Mastrolilli, Mutsanas and Svensson (Math. Oper. Res. 36(4), 2011) observed that this graph is the graph of incomparable pairs of dimension theory, and used that identification to obtain (2−2/f)(2-2/f)(2−2/f)-approximations for orders of fractional dimension at most fff. This mission formalizes that framework: the identification of the two graphs and the rounding guarantee of the paper's Theorem 5.1.

Setting

An instance SSS consists of a finite set NNN of jobs, a partial order PPP on NNN (reflexive, antisymmetric, transitive; (i,j)∈P(i,j)\in P(i,j)∈P with i≠ji\ne ji=j means job iii finishes before job jjj starts), processing times pj≥0p_j\ge 0pj​≥0 and weights wj≥0w_j\ge 0wj​≥0.

Two jobs x,yx,yx,y are incomparable, x∥yx\parallel yx∥y, when neither (x,y)(x,y)(x,y) nor (y,x)(y,x)(y,x) lies in PPP. The set inc⁡(P)\operatorname{inc}(P)inc(P) of incomparable pairs consists of ordered pairs and is closed under swapping. A linear extension of PPP is a linear order L⊇PL\supseteq PL⊇P on NNN; it reverses (x,y)∈inc⁡(P)(x,y)\in\operatorname{inc}(P)(x,y)∈inc(P) when y<xy<xy<x in LLL. A nonempty multiset L1,…,LtL_1,\dots,L_tL1​,…,Lt​ of linear extensions is a k:tk:tk:t-realizer if every incomparable pair is reversed by at least kkk of them. The fractional dimension fdim⁡(P)\operatorname{fdim}(P)fdim(P) is the least ratio t/kt/kt/k over all k:tk:tk:t-realizers.

The vertex cover graph GPSG^S_PGPS​ has the incomparable pairs as nodes; nodes (i,j)(i,j)(i,j) and (k,ℓ)(k,\ell)(k,ℓ) are adjacent if j=kj=kj=k and i=ℓi=\elli=ℓ, or j=kj=kj=k and (i,ℓ)∈P(i,\ell)\in P(i,ℓ)∈P, or (i,ℓ),(k,j)∈P(i,\ell),(k,j)\in P(i,ℓ),(k,j)∈P (symmetrically closed). Node (i,j)(i,j)(i,j) has weight w(i,j)=piwjw_{(i,j)}=p_iw_jw(i,j)​=pi​wj​, and w(C)=∑u∈Cwuw(C)=\sum_{u\in C}w_uw(C)=∑u∈C​wu​. OPT\mathrm{OPT}OPT is the minimum weight of a vertex cover of GPSG^S_PGPS​. The LP relaxation [CS-LP] asks for x∈[0,1]inc⁡(P)x\in[0,1]^{\operatorname{inc}(P)}x∈[0,1]inc(P) with xu+xv≥1x_u+x_v\ge1xu​+xv​≥1 on every edge, minimizing ∑uwuxu\sum_u w_ux_u∑u​wu​xu​. For a solution xxx write Va={u:xu=a}V_a=\{u: x_u=a\}Va​={u:xu​=a}, and for a linear extension LLL let I1/2(L)I_{1/2}(L)I1/2​(L) be the pairs of V1/2V_{1/2}V1/2​ reversed in LLL.

The graph of incomparable pairs GPG_PGP​ (Felsner and Trotter 2000) also has the incomparable pairs as vertices; two of them are adjacent when the pair of them is a minimal set of incomparable pairs that no linear extension reverses entirely.

Formalization targets

Goal: Theorem 5.1 (p. 658)

For an instance SSS, a k:tk:tk:t-realizer L1,…,LtL_1,\dots,L_tL1​,…,Lt​ of PPP, and a half-integral optimal solution xxx of [CS-LP], put Ci=V1∪(V1/2∖I1/2(Li))C_i=V_1\cup\bigl(V_{1/2}\setminus I_{1/2}(L_i)\bigr)Ci​=V1​∪(V1/2​∖I1/2​(Li​)). Then every CiC_iCi​ is a vertex cover of GPSG^S_PGPS​, and

1t∑i=1tw(Ci)  ≤  (2−2t/k)OPT.\frac1t\sum_{i=1}^t w(C_i)\;\le\;\Bigl(2-\frac{2}{t/k}\Bigr)\mathrm{OPT}.t1​i=1∑t​w(Ci​)≤(2−t/k2​)OPT.

Milestones

  • Proposition 3.2 (p. 657): GPS=GPG^S_P=G_PGPS​=GP​.
  • Footnote 4 (p. 659): the pairs reversed by a linear extension are independent in GPSG^S_PGPS​.
  • Eq. (4): 1t∣{i:Li reverses u}∣≥k/t\frac1t|\{i: L_i\text{ reverses }u\}|\ge k/tt1​∣{i:Li​ reverses u}∣≥k/t for every incomparable pair uuu.
  • Eq. (5): 1t∑iw(I1/2(Li))≥kt w(V1/2)\frac1t\sum_i w(I_{1/2}(L_i))\ge \frac kt\,w(V_{1/2})t1​∑i​w(I1/2​(Li​))≥tk​w(V1/2​).
  • Hochbaum's observation (§5, p. 659): for half-integral feasible xxx, V1∪CV_1\cup CV1​∪C covers GPSG^S_PGPS​ whenever CCC covers GPS[V1/2]G^S_P[V_{1/2}]GPS​[V1/2​].
  • Eqs. (6)–(8): 1t∑iw(Ci)≤w(V1)+(1−kt)w(V1/2)≤2(1−kt)(w(V1)+12w(V1/2))≤(2−2t/k)OPT\frac1t\sum_iw(C_i)\le w(V_1)+(1-\frac kt)w(V_{1/2})\le 2(1-\frac kt)(w(V_1)+\frac12w(V_{1/2}))\le(2-\frac2{t/k})\mathrm{OPT}t1​∑i​w(Ci​)≤w(V1​)+(1−tk​)w(V1/2​)≤2(1−tk​)(w(V1​)+21​w(V1/2​))≤(2−t/k2​)OPT when PPP is not a linear order.

Significance

The result. Combined with the cited Theorem 2.1 (Ambühl–Mastrolilli 2009; Correa–Schulz 2005), which turns an α\alphaα-approximate vertex cover of GPSG^S_PGPS​ into an α\alphaα-approximate schedule, Theorem 5.1 gives a (2−2/f)(2-2/f)(2−2/f)-approximation for 1∣prec∣∑wjCj1|\mathrm{prec}|\sum w_jC_j1∣prec∣∑wj​Cj​ whenever the precedence order has an efficiently samplable realizer with t/k≤ft/k\le ft/k≤f. The paper applies it to interval orders (3/23/23/2), convex bipartite orders and semiorders (4/34/34/3), orders of bounded degree and orders of interval dimension two; for the earlier special classes it matched or improved the best known ratios, and for the last two it gave the first results. Proposition 3.2 makes the dimension theory of posets (realizers, critical pairs, fractional dimension) directly available to the vertex cover approach.

Formalizing it. The results are proved in the paper; to the best of current knowledge none of them has a machine-checked proof. The mission produces a Lean development of incomparable pairs, linear extensions, kkk-fold realizers and the hypergraph of incomparable pairs, which other dimension-theory missions can reuse, and a verified LP-rounding argument for half-integral vertex cover solutions under a distribution of independent sets.

Difficulty

Most of the rounding argument is arithmetic over finite sums. The central nontrivial step is the inclusion GP⊆GPSG_P\subseteq G^S_PGP​⊆GPS​ in Proposition 3.2: for two incomparable pairs that are not adjacent under the three-case rule, one must construct a single linear extension reversing both. This needs an extension of PPP by two new comparabilities whose transitive closure is still antisymmetric, followed by Szpilrajn's theorem; checking that every potential cycle is excluded by the three cases is the actual content. The opposite inclusion, and footnote 4, follow from transitivity and antisymmetry of linear orders. A second point of care is the inequality t≥2kt\ge 2kt≥2k used in step (7): it is not part of the definition of a realizer, and follows from each linear extension reversing exactly one of (x,y)(x,y)(x,y) and (y,x)(y,x)(y,x).

Formalization scope

  • Jobs form a finite type N; the precedence order is a relation P : N → N → Prop with IsPartialOrder, carried by the structure Instance. Processing times and weights are nonnegative reals.
  • inc⁡(P)\operatorname{inc}(P)inc(P) is the subtype IncPair P of N × N; a linear extension is a relation with IsLinearOrder containing P; a k:tk:tk:t-realizer is a family Fin t → LinearExtension P with t>0t>0t>0. Reversal of (x,y)(x,y)(x,y) means y<xy<xy<x in LLL throughout; the page's "y>xy>xy>x" in Eq. (4) and "Prob[j>i]\mathrm{Prob}[j>i]Prob[j>i]" in Eq. (5) are the same family of inequalities because inc⁡(P)\operatorname{inc}(P)inc(P) is symmetric.
  • GPSG^S_PGPS​ is the symmetric closure of the printed three-case rule on distinct nodes. GPG_PGP​ is defined through linear extensions and hyperedge minimality, never through the three-case rule, so Proposition 3.2 is a genuine statement and not a definitional equality.
  • [CS-LP] drops the constant term ∑jpjwj+∑(i,j)∈Ppiwj\sum_jp_jw_j+\sum_{(i,j)\in P}p_iw_j∑j​pj​wj​+∑(i,j)∈P​pi​wj​ of [CS-IP], which does not affect optimality. OPT\mathrm{OPT}OPT is the minimum weight of a vertex cover of GPSG^S_PGPS​, taken over a finite nonempty family.
  • Not formalized: "efficiently samplable", "polynomial time" and "randomized algorithm". The expectation over a uniformly sampled LiL_iLi​ is stated as the average 1t∑i=1t\frac1t\sum_{i=1}^tt1​∑i=1t​, which is equivalent to it and stronger than the existence of one good index. The existence of a half-integral optimal [CS-LP] solution (Nemhauser–Trotter, cited) is a hypothesis on xxx. The conversion of a vertex cover into a schedule (Theorem 2.1, cited) is not formalized; the goal is stated for vertex covers of GPSG^S_PGPS​.
  • Constants: 2−2/(t/k)2-2/(t/k)2−2/(t/k) in real arithmetic; it equals 2−2k/t2-2k/t2−2k/t, and equals 222 when k=0k=0k=0.
  • The paper assumes fdim⁡(P)≥2\operatorname{fdim}(P)\ge2fdim(P)≥2, i.e. PPP is not a linear order. Eqs. (6)–(8) carry that hypothesis as the paper does; the goal omits it because for a linear order both sides are 000.
  • Conclusion (a), that each CiC_iCi​ is a vertex cover, is part of the goal and is not assumed.

Contributions welcome: proofs of the milestones in any order, and a reusable Szpilrajn-style lemma producing a linear extension that reverses a prescribed set of compatible incomparable pairs.

Selected references

  • C. Ambühl, M. Mastrolilli, N. Mutsanas, O. Svensson, On the approximability of single-machine scheduling with precedence constraints, Math. Oper. Res. 36(4):653–669, 2011. https://doi.org/10.1287/moor.1110.0512
  • C. Ambühl, M. Mastrolilli, Single machine precedence constrained scheduling is a vertex cover problem, Algorithmica 53(4), 2009 (reference [2] of the paper).
  • J. R. Correa, A. S. Schulz, Single-machine scheduling with precedence constraints, Math. Oper. Res. 30(4):1005–1021, 2005. https://doi.org/10.1287/moor.1050.0158
  • G. R. Brightwell, E. R. Scheinerman, Fractional dimension of partial orders, Order 9(2):139–158, 1992 (reference [7]).
  • S. Felsner, W. T. Trotter, Dimension, graph and hypergraph coloring, Order 17(2):167–177, 2000 (reference [13]).
  • D. S. Hochbaum, Efficient bounds for the stable set, vertex cover and set packing problems, Discrete Appl. Math. 6(3):243–254, 1983 (reference [20]).
  • G. L. Nemhauser, L. E. Trotter, Vertex packings: structural properties and algorithms, Math. Programming 8(1):232–248, 1975 (reference [29]).
10 thms2 active usersReviewed
CombinatoricsOperations ResearchTheoretical Computer Science·Captain: mikedeng1

On the Approximability of Single-Machine Scheduling with Precedence Constraints 6: The Optimal Value of S_G Lies Between n² − an²(ln 1/a + 2) and n² − an²Research Paper

Motivation

The problem 1 ∣ prec ∣ ∑wjCj1\,|\,\mathrm{prec}\,|\,\sum w_jC_j1∣prec∣∑wj​Cj​ asks for a single-machine sequence of jobs, respecting precedence constraints, that minimizes the weighted sum of completion times. It has been known to be strongly NP-hard since Lawler (1978) and Lenstra and Rinnooy Kan (1978), several different 2-approximation algorithms are known, and closing the approximability gap is listed by Schuurman and Woeginger (1999) as one of ten outstanding open problems in scheduling theory. Ambühl, Mastrolilli, Mutsanas and Svensson (Math. Oper. Res. 36(4), 2011) give the first inapproximability result for this problem: under a widely believed complexity assumption it has no polynomial-time approximation scheme (PTAS). The bridge to that result is a quantitative link, Lemma 9.1, between the optimal value of a special bipartite scheduling instance and the maximum edge biclique of a bipartite graph, a problem whose hardness of approximation was established by Ambühl, Mastrolilli and Svensson (FOCS 2007). This mission formalizes that link.

Setting

A schedule of a finite job set is a sequence σ\sigmaσ listing every job once; the machine processes the jobs in that order from time 000 without idle time or pre-emption. Job jjj has a processing time pjp_jpj​ and a weight wjw_jwj​; its completion time CjC_jCj​ is the sum of the processing times of the jobs up to and including jjj, and the value of σ\sigmaσ is val(σ)=∑jwjCj\mathrm{val}(\sigma)=\sum_j w_jC_jval(σ)=∑j​wj​Cj​. Precedence constraints are a relation PPP on jobs: (i,j)∈P(i,j)\in P(i,j)∈P with i≠ji\ne ji=j means job iii must be completed before job jjj starts. A schedule respecting all of them is feasible, and a feasible schedule σ∗\sigma^*σ∗ of least value is optimal.

Let G=(U,V,E)G=(U,V,E)G=(U,V,E) be an nnn-by-nnn bipartite graph: ∣U∣=∣V∣=n|U|=|V|=n∣U∣=∣V∣=n and E⊆U×VE\subseteq U\times VE⊆U×V. An edge biclique is a pair A⊆UA\subseteq UA⊆U, B⊆VB\subseteq VB⊆V with A×B⊆EA\times B\subseteq EA×B⊆E, of value ∣A∣⋅∣B∣|A|\cdot|B|∣A∣⋅∣B∣; the maximum edge biclique problem (Definition 9.1) asks for one of largest value. The bipartite scheduling instance SGS_GSG​ has jobs U∪VU\cup VU∪V and precedence constraints

P=(U×V)∖E,P=(U\times V)\setminus E,P=(U×V)∖E,

so u∈Uu\in Uu∈U must precede v∈Vv\in Vv∈V exactly when (u,v)(u,v)(u,v) is not an edge. Jobs of UUU have p=1p=1p=1, w=0w=0w=0; jobs of VVV have p=0p=0p=0, w=1w=1w=1. Thus val(σ)=∑v∈VCv\mathrm{val}(\sigma)=\sum_{v\in V}C_vval(σ)=∑v∈V​Cv​, where CvC_vCv​ is the number of UUU-jobs scheduled before vvv. For i≥1i\ge1i≥1, σ(i)\sigma(i)σ(i) denotes the number of VVV-jobs scheduled before iii jobs of UUU have been scheduled.

In the Lean development these are weightedCompletion, IsOptimalSchedule, IsEdgeBiclique, maxBicliqueValue, precSG, procSG, weightSG, valSG, IsOptimalSG and vBefore in the namespace SingleMachinePrec.Biclique.

Formalization targets

Goal: Lemma 9.1 (p. 666)

If a maximum edge biclique of GGG has value an2an^2an2 with a∈(0,1]a\in(0,1]a∈(0,1], then SGS_GSG​ has an optimal schedule and every optimal schedule σ∗\sigma^*σ∗ satisfies

n2−an2(ln⁡1a+2)≤val(σ∗)≤n2−an2.n^2-an^2\Bigl(\ln\frac1a+2\Bigr)\le\mathrm{val}(\sigma^*)\le n^2-an^2 .n2−an2(lna1​+2)≤val(σ∗)≤n2−an2.

Milestones (proof of Lemma 9.1, §9, p. 666)

  1. For every edge biclique (A,B)(A,B)(A,B), a schedule in the block order U∖A→B→A→V∖BU\setminus A\to B\to A\to V\setminus BU∖A→B→A→V∖B exists, and every such schedule is feasible with
val(σ)=n2−∣A∣⋅∣B∣.\mathrm{val}(\sigma)=n^2-|A|\cdot|B| .val(σ)=n2−∣A∣⋅∣B∣.
  1. For every schedule, σ(n+1)=n\sigma(n+1)=nσ(n+1)=n and
val(σ)=∑i=1n(σ(i+1)−σ(i))i=n2−∑i=1nσ(i).\mathrm{val}(\sigma)=\sum_{i=1}^n\bigl(\sigma(i+1)-\sigma(i)\bigr)i=n^2-\sum_{i=1}^n\sigma(i).val(σ)=i=1∑n​(σ(i+1)−σ(i))i=n2−i=1∑n​σ(i).
  1. For every feasible schedule and i=1,…,ni=1,\dots,ni=1,…,n,
σ(i)(n−i+1)≤an2,σ(i)≤n.\sigma(i)(n-i+1)\le an^2,\qquad \sigma(i)\le n .σ(i)(n−i+1)≤an2,σ(i)≤n.

Significance

Lemma 9.1 shows that the optimal value of SGS_GSG​ determines the maximum edge biclique of GGG up to a factor of order ln⁡(1/a)\ln(1/a)ln(1/a) in the "area above the work line" n2−val(σ∗)n^2-\mathrm{val}(\sigma^*)n2−val(σ∗). Combined with the hardness of approximating maximum edge biclique (Theorem 9.1, cited from Ambühl, Mastrolilli and Svensson 2007) it yields Theorem 9.2: 1 ∣ prec ∣ ∑wjCj1\,|\,\mathrm{prec}\,|\,\sum w_jC_j1∣prec∣∑wj​Cj​ has no PTAS unless SAT can be decided by a probabilistic algorithm in time 2Nϵ2^{N^\epsilon}2Nϵ for every ϵ>0\epsilon>0ϵ>0. It also makes precise the two-dimensional Gantt chart picture of Eastman, Even and Isaacs (1964) and of Goemans and Williamson (2000), in which every point on the work line of a schedule defines an edge biclique.

The lemma is proved in the paper; it is not formalized anywhere to our knowledge. A formal proof certifies the combinatorial core of the no-PTAS result independently of the complexity-theoretic layer, and its definitions (the bipartite instance SGS_GSG​, edge bicliques, the profile σ(i)\sigma(i)σ(i)) are reusable for the gap inequality behind Theorem 9.2.

Difficulty

The upper bound is a direct computation on one explicit schedule. The lower bound is a statement about every feasible schedule, of which there are exponentially many, and it must hold with the explicit constant 222 and the factor ln⁡(1/a)\ln(1/a)ln(1/a) for every a∈(0,1]a\in(0,1]a∈(0,1]. The printed argument splits the sum at i=(1−a)ni=(1-a)ni=(1−a)n and uses ⌊an⌋\lfloor an\rfloor⌊an⌋, treating ananan as an integer; for general aaa (for example n=3n=3n=3, value 222, an=2/3an=2/3an=2/3) the split point is not an integer, so the printed estimate does not apply verbatim and the constant 222 has to be re-checked for non-integral ananan. On the formal side, the value identity requires relating completion times in a list to counting UUU-jobs before each VVV-job, with ties among zero-length jobs.

Formalization scope

Jobs are the disjoint union U ⊕ V of two finite types with Fintype.card U = Fintype.card V = n; EEE is a relation U → V → Prop. A schedule is a duplicate-free list containing every job; feasibility is the published LawlerPrec.MinMax.IsFeasible and completion times are the published MooreLateJobs.Shared.completionTime (time 000 start, no idle time). Processing times and weights are reals, here in {0,1}\{0,1\}{0,1}. The maximum edge biclique value is the maximum of ∣A∣⋅∣B∣|A|\cdot|B|∣A∣⋅∣B∣ over all edge bicliques, the empty ones included, so the hypothesis a>0a>0a>0 means E≠∅E\ne\emptysetE=∅. The logarithm is natural (Real.log).

Conventions and readings committed to:

  • The goal is stated for every optimal schedule, and the existence of an optimal schedule is a separate conclusion, so the bounds cannot hold vacuously. Proving the bounds for one particular schedule, or for an optimal value defined as an infimum that could be a junk default, would not be this lemma.
  • No integrality hypothesis on ananan is added.
  • Milestones 2 and 3 are stated for every schedule (respectively every feasible schedule), not only for σ∗\sigma^*σ∗; milestone 1 states the value of the block-order schedule as an equality, where the paper writes "≤⋯=\le\cdots=≤⋯=".
  • The paper's P=(U×V)∖EP=(U\times V)\setminus EP=(U×V)∖E is irreflexive; feasibility only constrains distinct jobs, so it agrees with the reflexive partial order of §1.

Not formalized: Theorem 9.1 (cited hardness of maximum edge biclique) and Theorem 9.2 (no PTAS under a complexity assumption); no polynomial-time or complexity-theoretic statement appears in the mission. Contributions welcome: proofs of the three milestones and of the goal; Mathlib's bounds on harmonic numbers (Mathlib/NumberTheory/Harmonic/Bounds.lean) are the relevant library.

Selected references

  • C. Ambühl, M. Mastrolilli, N. Mutsanas, O. Svensson, On the Approximability of Single-Machine Scheduling with Precedence Constraints, Mathematics of Operations Research 36(4):653–669, 2011. https://doi.org/10.1287/moor.1110.0512
  • C. Ambühl, M. Mastrolilli, O. Svensson, Inapproximability results for sparsest cut, optimal linear arrangement, and precedence constraint scheduling, Proc. 48th IEEE FOCS, 329–337, 2007 (reference [4] of the paper).
  • W. L. Eastman, S. Even, I. M. Isaacs, Bounds for the optimal scheduling of n jobs on m processors, Management Science 11(2):268–279, 1964 (reference [11]).
  • M. X. Goemans, D. P. Williamson, Two-dimensional Gantt charts and a scheduling algorithm of Lawler, SIAM J. Discrete Math. 13(3):281–294, 2000 (reference [15]).
  • P. Schuurman, G. J. Woeginger, Polynomial time approximation algorithms for machine scheduling: ten open problems, J. Scheduling 2(5):203–213, 1999 (reference [36]).
8 thms1 active userReviewed
Linear OptimizationOperations ResearchOptimization+1·Captain: mikedeng1

Approximation Algorithms for Precedence-Constrained Scheduling Problems on Parallel Machines That Run at Different Speeds: A min{K + 2√K + 1, 1.89 log m + O(√log m)}-Approximation for Q|prec|CmaxResearch Paper

Scheduling precedence-constrained jobs on machines of different speeds

Graham (1966) showed that list scheduling finds a schedule within a factor 222 of optimal for precedence-constrained jobs on identical parallel machines, the first performance guarantee for an approximation algorithm. When the machines run at different speeds (uniformly related machines), the same analysis breaks down, and for two decades the problem Q∣prec∣Cmax⁡Q|prec|C_{\max}Q∣prec∣Cmax​ resisted a guarantee independent of the speeds better than O(m)O(\sqrt m)O(m​).

Timeline:

  • 1974, Liu and Liu: list scheduling on machines of different speeds, with a guarantee that depends on the speeds and can be arbitrarily large even for a fixed number of machines.
  • 1980, Jaffe: list scheduling on the machines whose speed is within a factor m\sqrt mm​ of the fastest gives an O(m)O(\sqrt m)O(m​)-approximation.
  • 1978, Lenstra and Rinnooy Kan: with precedence constraints, no ρ\rhoρ-approximation with ρ<4/3\rho < 4/3ρ<4/3 exists unless P = NP. This bound already holds for identical machines.
  • 1997–1999, Chudak and Shmoys: an LP-guided variant of list scheduling achieves O(log⁡m)O(\log m)O(logm), and K+2K+1K + 2\sqrt K + 1K+2K​+1 when there are only KKK distinct speeds (J. Algorithms 30 (1999) 323–343; conference version SODA 1997).

The mission formalizes the makespan half of that paper, up to its Theorem 3.7.

Setting

An instance has nnn jobs and m≥1m \ge 1m≥1 machines. Job jjj requires pj>0p_j > 0pj​>0 units of processing, and machine iii runs at speed si>0s_i > 0si​>0, so job jjj takes pj/sip_j/s_ipj​/si​ time units on machine iii. A strict partial order ≺\prec≺ on the jobs gives precedence constraints: j≺kj \prec kj≺k means that job kkk may not start until job jjj has completed.

A schedule runs each job jjj without interruption on one machine μ(j)\mu(j)μ(j), from a start time Sj≥0S_j \ge 0Sj​≥0 to its completion time Cj=Sj+pj/sμ(j)C_j = S_j + p_j/s_{\mu(j)}Cj​=Sj​+pj​/sμ(j)​. A machine processes at most one job at a time, and j≺kj \prec kj≺k forces Cj≤SkC_j \le S_kCj​≤Sk​. Its length is Cmax⁡=max⁡jCjC_{\max} = \max_j C_jCmax​=maxj​Cj​. Cmax⁡∗C^*_{\max}Cmax∗​ is the length of an optimal schedule.

Let sˉ1>sˉ2>⋯>sˉK\bar s_1 > \bar s_2 > \cdots > \bar s_Ksˉ1​>sˉ2​>⋯>sˉK​ be the distinct speeds and mkm_kmk​ the number of machines of speed sˉk\bar s_ksˉk​. An assignment k(j)k(j)k(j) names the speed class at which job jjj is to run. Its loads are Dk=1mk∑j:k(j)=kpj/sˉkD_k = \frac{1}{m_k}\sum_{j:k(j)=k} p_j/\bar s_kDk​=mk​1​∑j:k(j)=k​pj​/sˉk​, and its chain bound CCC is the largest value of ∑j∈Cpj/sˉk(j)\sum_{j\in\mathcal C} p_j/\bar s_{k(j)}∑j∈C​pj​/sˉk(j)​ over chains C\mathcal CC of ≺\prec≺. Speed-based list scheduling is Graham's rule restricted by the assignment: whenever a machine of speed sˉk\bar s_ksˉk​ is idle, it starts the first available job jjj on the list with k(j)=kk(j) = kk(j)=k.

The linear program LP has variables xkj≥0x_{kj} \ge 0xkj​≥0, CjC_jCj​ and DDD. It minimizes DDD subject to the following constraints:

  • ∑kxkj=1\sum_k x_{kj} = 1∑k​xkj​=1;
  • 1mksˉk∑jpjxkj≤D\frac{1}{m_k\bar s_k}\sum_j p_j x_{kj} \le Dmk​sˉk​1​∑j​pj​xkj​≤D;
  • ∑k(pj/sˉk)xkj≤Cj\sum_k (p_j/\bar s_k)x_{kj} \le C_j∑k​(pj​/sˉk​)xkj​≤Cj​, and ∑k(pj/sˉk)xkj≤Cj−Cj′\sum_k (p_j/\bar s_k)x_{kj} \le C_j - C_{j'}∑k​(pj​/sˉk​)xkj​≤Cj​−Cj′​ whenever j′≺jj' \prec jj′≺j;
  • Cj≤DC_j \le DCj​≤D.

From a solution, with pˉj=∑k(pj/sˉk)xkj\bar p_j = \sum_k (p_j/\bar s_k)x_{kj}pˉ​j​=∑k​(pj​/sˉk​)xkj​, the assignment algorithm gives each job jjj the speed class k∉Bj={k:pj/sˉk>γpˉj}k \notin B_j = \{k : p_j/\bar s_k > \gamma\bar p_j\}k∈/Bj​={k:pj​/sˉk​>γpˉ​j​} of largest capacity sˉkmk\bar s_k m_ksˉk​mk​.

Formalization targets

Goal: Theorem 3.7 (p. 10)

There is an absolute constant ccc such that for every instance with m≥2m \ge 2m≥2 machines and KKK distinct speeds, the better of the two schedules below has length at most

min⁡{K+2K+1, 1.89log⁡2m+clog⁡2m}⋅Cmax⁡∗.\min\bigl\{K + 2\sqrt K + 1,\ 1.89\log_2 m + c\sqrt{\log_2 m}\bigr\}\cdot C^*_{\max}.min{K+2K​+1, 1.89log2​m+clog2​m​}⋅Cmax∗​.
  • (A) An optimal LP solution, the assignment algorithm with γ=K+1\gamma = \sqrt K + 1γ=K​+1, and speed-based list scheduling.
  • (B) The same algorithm run on speeds rounded down to powers of eee, with machines slower than sˉ1/(mlog⁡2m)\bar s_1/(m\log_2 m)sˉ1​/(mlog2​m) dropped, and read back on the original machines.

Milestones, in proof order

  • Existence of speed-based list schedules (p. 4).
  • Theorem 2.1: Cmax⁡≤C+∑kDkC_{\max} \le C + \sum_k D_kCmax​≤C+∑k​Dk​.
  • The LP lower bound Dˉ≤Cmax⁡∗\bar D \le C^*_{\max}Dˉ≤Cmax∗​ (p. 6).
  • Lemmas 3.1–3.4: chain bounds 2Dˉ2\bar D2Dˉ and (K+1)Dˉ(\sqrt K + 1)\bar D(K​+1)Dˉ, and load bounds 2KDˉ2K\bar D2KDˉ and (K+K)Dˉ(K + \sqrt K)\bar D(K+K​)Dˉ.
  • Theorem 3.5 and Corollary 3.6: the factor K+2K+1K + 2\sqrt K + 1K+2K​+1 against Cmax⁡∗C^*_{\max}Cmax∗​ and against Dˉ\bar DDˉ.
  • Rounded schedules serve the original instance (p. 9).
  • The speed rounding: at most ⌊log⁡β(αm)⌋+1\lfloor\log_\beta(\alpha m)\rfloor + 1⌊logβ​(αm)⌋+1 speeds, and the LP value grows by a factor of at most β(1+1/α)\beta(1 + 1/\alpha)β(1+1/α) (p. 10).
  • The "In fact" form of the guarantee, relative to any feasible LP solution (p. 10).

Significance

The result gives the first O(log⁡m)O(\log m)O(logm) guarantee for Q∣prec∣Cmax⁡Q|prec|C_{\max}Q∣prec∣Cmax​, independent of the speeds, and a guarantee depending only on the number of distinct speeds. Through the batching technique of Shmoys, Wein and Williamson it extends to release dates (Corollary 3.8). Since LP also relaxes the preemptive problem, it gives an O(log⁡m)O(\log m)O(logm) bound on the ratio between the nonpreemptive and preemptive optima (Corollaries 3.9, 3.10). The "In fact" form, relative to an arbitrary feasible LP solution, drives the paper's ∑wjCj\sum w_jC_j∑wj​Cj​ algorithm in §4.

The result is proved in the literature but, as far as is known, not formalized. A formal proof requires machine-checking the following:

  • the continuous-time list-scheduling argument for different speeds;
  • the filtering argument of Lin and Vitter;
  • the reduction to logarithmically many speeds, including the off-by-one count of rounded speeds that the page leaves implicit.

Later work gave a combinatorial O(log⁡m)O(\log m)O(logm)-approximation (Chekuri and Bender, 2001) and an O(log⁡m/log⁡log⁡m)O(\log m/\log\log m)O(logm/loglogm)-approximation (Li, 2017). These are not part of this mission.

Difficulty

Graham's argument has two lower bounds:

  1. the total processing along a chain;
  2. the time during which every machine is busy.

With different speeds, the first bound fails: a chain may have been run on slow machines, and its length then says nothing about Cmax⁡∗C^*_{\max}Cmax∗​. Forcing every job onto a fast machine repairs chains but can leave most machines idle, so the second bound fails. The paper only guarantees that all machines of one speed are busy at each moment of an idle period. Making this pay off requires an assignment that controls chain lengths and per-class loads simultaneously. That assignment is the delicate part: Theorem 2.1 is the bookkeeping, while Lemmas 3.2 and 3.4 rely on the LP. Two of the formal steps are routine on paper but fiddly in Lean: time-interval accounting over a continuous-time schedule, and the counting of rounded speed classes.

Formalization scope

  • Representation. Jobs are Fin n and machines Fin m with m≥1m \ge 1m≥1. pj>0p_j > 0pj​>0 and si>0s_i > 0si​>0. ≺\prec≺ is a strict partial order, and a chain is a finite set of pairwise comparable jobs. Cmax⁡C_{\max}Cmax​ is the maximum completion time, or 000 with no jobs.
  • Speed classes. The classes are computed from the speeds, so mk≥1m_k \ge 1mk​≥1 and sˉk>0\bar s_k > 0sˉk​>0 by construction. The Lean index 000 is the paper's fastest class sˉ1\bar s_1sˉ1​.
  • The algorithm as predicates. Speed-based list scheduling is the predicate the proof of Theorem 2.1 uses: jobs run at their assigned speed, and no machine of a job's speed idles while that job is available and unstarted. Every list order and every order of idle machines satisfies it. The assignment algorithm is a predicate allowing every maximizer, since the page does not break ties. Theorems 3.5 and 3.7 quantify over all optimal LP solutions, all such assignments and all such schedules. Existence is supplied by the milestones.
  • Comparator. The bound is stated against every feasible schedule of the same instance, never against the LP value or a best schedule of the rounded instance. A statement asserting only that some good schedule exists would be trivially true (the optimum witnesses it); the goal bounds the schedule the algorithm returns.
  • Constants and logarithms. log⁡m\log mlogm is log⁡2m\log_2 mlog2​m, as the paper specifies. m≥2m \ge 2m≥2 is assumed in Theorem 3.7 and in the "In fact" remark, which are asymptotic in mmm. The O(log⁡m)O(\sqrt{\log m})O(logm​) term is one absolute constant ccc, quantified before the instance, and 1.891.891.89 is the page's number.
  • Generalizations and corrections. Lemmas 3.1–3.4 are stated for every feasible LP solution, since their proofs use only feasibility. The speed rounding is relative to sˉ1\bar s_1sˉ1​, with no normalization. The count of rounded speeds is ⌊log⁡β(αm)⌋+1\lfloor\log_\beta(\alpha m)\rfloor + 1⌊logβ​(αm)⌋+1; the page writes log⁡β(αm)\log_\beta(\alpha m)logβ​(αm).
  • Not formalized. Polynomial running time is not formalized.
  • Out of scope. Corollaries 3.8–3.10, Theorem 3.11 and §4 are excluded.

Proofs of any milestone are welcome. Reusable beyond this mission are the following: the model of nonpreemptive schedules on uniformly related machines with precedence, the speed-based list-scheduling predicate with Theorem 2.1, and the LP.

Selected references

  • F. A. Chudak and D. B. Shmoys, Approximation algorithms for precedence-constrained scheduling problems on parallel machines that run at different speeds, J. Algorithms 30 (1999) 323–343 (authors' manuscript used here). https://doi.org/10.1006/jagm.1998.0987
  • R. L. Graham, Bounds for certain multiprocessing anomalies, Bell System Technical Journal 45 (1966) 1563–1581. https://doi.org/10.1002/j.1538-7305.1966.tb01709.x
  • J. M. Jaffe, Efficient scheduling of tasks without full use of processor resources, Theoretical Computer Science 12 (1980) 1–17. https://doi.org/10.1016/0304-3975(80)90002-4
  • J.-H. Lin and J. S. Vitter, ε-approximations with minimum packing constraint violation, STOC 1992, 771–782. https://doi.org/10.1145/129712.129787
  • D. B. Shmoys, J. Wein and D. P. Williamson, Scheduling parallel machines on-line, SIAM J. Computing 24 (1995) 1313–1331. https://doi.org/10.1137/S0097539793248317
  • C. Chekuri and M. A. Bender, An efficient approximation algorithm for minimizing makespan on uniformly related machines, J. Algorithms 41 (2001) 212–224. https://doi.org/10.1006/jagm.2001.1184
  • S. Li, Scheduling to minimize total weighted completion time via time-indexed linear programming relaxations, SIAM J. Computing 46 (2017) 409–440. https://doi.org/10.1137/15M1053163
16 thms2 active usersReviewed
CombinatoricsGraph TheoryTheoretical Computer Science·Captain: mikedeng1

On the Approximability of Single-Machine Scheduling with Precedence Constraints 3: The Incomparable-Pairs Graphs of Canonical Interval Orders Have Unbounded Chromatic NumberResearch Paper

Motivation

Single-machine scheduling with precedence constraints asks for an order in which one machine processes jobs while respecting prescribed comparisons between them. For the objective of minimizing total weighted completion time, the structure of the precedence order can influence the quality of approximation algorithms. Ambühl, Mastrolilli, Mutsanas, and Svensson connect one such approach to coloring a graph built from the order's incomparable pairs. A bounded number of colors would make a certain class of coloring-based guarantees uniform over the class of precedence orders. Their Theorem 4.3 shows that canonical interval orders have no such uniform bound for this particular graph. Ambühl et al., §4.2, p. 658

An interval order is a partial order whose elements can be represented by closed real intervals, with one element strictly before another when the first interval ends before the second begins. Interval orders are a familiar restriction of general precedence systems. The paper distinguishes them from semiorders, represented by intervals of equal length, for which it reports a three-element realizer bound and a corresponding scheduling guarantee. The chromatic obstruction here explains why that particular bounded-color route cannot be extended uniformly from semiorders to all interval orders. It does not assert that every scheduling approach to interval orders fails. Ambühl et al., §§3–4.2, pp. 656–658

Setting

For an integer n≥2n\ge2n≥2, let [n][n][n] be a linearly ordered set with nnn points. The canonical interval order InI_nIn​ has one element for every pair of distinct points a<ba<ba<b in [n][n][n], viewed as the closed interval [a,b][a,b][a,b]. For two such intervals, write S≤InTS\le_{I_n}TS≤In​​T when S=TS=TS=T or the right endpoint of SSS is strictly less than the left endpoint of TTT. Thus intervals that touch at an endpoint remain incomparable. The formalization represents each interval by its two-element endpoint set, and its order relation is equivalent to this endpoint rule. Ambühl et al., §4.2, p. 658

For any partial order PPP on a ground set NNN, an ordered incomparable pair is (x,y)(x,y)(x,y) with neither x≤Pyx\le_P yx≤P​y nor y≤Pxy\le_P xy≤P​x. Both (x,y)(x,y)(x,y) and (y,x)(y,x)(y,x) are vertices when xxx and yyy are incomparable. A linear extension of PPP is a linear order on the same elements that contains all comparisons of PPP. It reverses (x,y)(x,y)(x,y) if it places yyy before xxx. The graph GPG_PGP​ has the ordered incomparable pairs as vertices. Two distinct vertices form an edge when no linear extension reverses both, while each singleton can be reversed by some linear extension. This singleton condition is the minimality clause in the paper's definition through its hypergraph of incomparable pairs. Ambühl et al., §2.1, p. 655, §3, p. 656

A proper kkk-coloring assigns one of kkk colors to every vertex of GPG_PGP​ so that endpoints of an edge have different colors. The graph's chromatic number χ(GP)\chi(G_P)χ(GP​) is the least positive number of colors that works, when the graph is nonempty. The mission uses the equivalent predicate that no proper map into a fixed kkk-element color set exists once nnn is large enough. This also gives a clear interpretation at k=0k=0k=0.

Formalization targets

The goal is Theorem 4.3: for each fixed integer kkk, all sufficiently large canonical interval orders have incomparable-pairs graphs with chromatic number greater than kkk. With k≥0k\ge0k≥0, the Lean target is

∀k∈N, ∃n0≥2, ∀n≥n0,GIn is not k-colorable.\forall k\in\mathbb N,\ \exists n_0\ge2,\ \forall n\ge n_0,\quad G_{I_n}\text{ is not $k$-colorable}.∀k∈N, ∃n0​≥2, ∀n≥n0​,GIn​​ is not k-colorable.

The paper states kkk as an integer. Its negative cases are immediate from nonnegativity of chromatic numbers; the target states the substantive range. The threshold n0n_0n0​ may depend on kkk, while InI_nIn​ and GInG_{I_n}GIn​​ are constructed from nnn rather than supplied as arbitrary objects. Ambühl et al., Theorem 4.3, p. 658

Two assertions from the theorem's proof serve as milestones. First, χ(GIn)\chi(G_{I_n})χ(GIn​​) is nondecreasing as nnn increases. Second, for four endpoints i<j<ℓ<mi<j<\ell<mi<j<ℓ<m, the vertices ({i,j},{j,ℓ})(\{i,j\},\{j,\ell\})({i,j},{j,ℓ}) and ({j,ℓ},{ℓ,m})(\{j,\ell\},\{\ell,m\})({j,ℓ},{ℓ,m}) are adjacent in GInG_{I_n}GIn​​. They are recorded with their wording and provenance from §4.2. A separately published theorem on hypergraph Ramsey numbers is included as a reference because the source uses that theorem in its large-nnn argument. Ambühl et al., proof of Theorem 4.3, p. 658

Significance

The result provides a precise structural limitation: across the canonical interval orders, the chromatic numbers of GInG_{I_n}GIn​​ cannot be bounded by one constant. The graph GPG_PGP​ is a specific graph of ordered incomparable pairs, distinct from other graphs that can be associated with a scheduling instance. Thus the conclusion addresses the bounded-color approach attached to this graph, without asserting an algorithmic impossibility for interval-order scheduling. The paper contrasts this limitation with the bounded-realizer situation for semiorders. Ambühl et al., §§3–4.2, pp. 656–658

The theorem is proved in the 2011 paper. The remaining work in this mission is a machine-checked development of its definition layer, its two stated supporting assertions, and the unbounded-color conclusion. The partial-order property of InI_nIn​ is already proved in the definition file; the three theorem statements are open proof targets in the proposal. A completed formalization would also give reusable components for finite interval orders, ordered incomparable pairs, and coloring arguments in dimension theory.

Difficulty

A pair of intervals overlapping or touching is easy to recognize as incomparable, but graph adjacency has a stronger meaning: it quantifies over every linear extension of the entire partial order. A local test based only on the four displayed intervals would silently change the graph. Likewise, the fact that two vertices have different endpoint descriptions does not by itself make them adjacent. The formal argument must connect the canonical interval representation to the global extension-based edge condition, then show that a bounded coloring cannot persist as the endpoint set grows. Ambühl et al., proof of Theorem 4.3, p. 658

Formalization scope

The endpoint set is Fin n, hence indexed 0,…,n−10,\ldots,n-10,…,n−1 rather than the paper's 1,…,n1,\ldots,n1,…,n; the shift preserves order. Elements of InI_nIn​ are exactly two-element subsets of this set. The order relation includes equality and strict separation of endpoint sets and is proved to be a partial order. The graph is defined for an arbitrary binary relation so it can be reused, but every target here applies it to the concrete partial order InI_nIn​. Vertices are ordered incomparable pairs, and adjacency retains both singleton reversibility and failure of simultaneous reversibility. Defining adjacency directly from the desired four-point pattern would trivialize the target and is excluded.

Colorable n k means existence of a proper function from all vertices of GInG_{I_n}GIn​​ to Fin k. For an empty graph, zero-colorability is allowed by this representation. The theorem therefore includes a threshold n0≥2n_0\ge2n0​≥2 and quantifies over every n≥n0n\ge n_0n≥n0​; the assertion itself forces the threshold past any empty-graph exceptions. The formal target uses natural kkk; the paper's negative integer values need no separate theorem. No asymptotic notation or unspecified constants occur. The source's Ramsey number R(3:4,…,4)R(3:4,\ldots,4)R(3:4,…,4) is not hard-coded into the goal, because the source asserts existence of a suitable threshold, not that the least threshold equals that value.

The printed adjacency justification names an alternating-cycle pair set different from the two adjacent vertices in the preceding sentence. The milestone formalizes the adjacency assertion itself and records the printed explanation verbatim for review; it does not turn the mismatched pair set into a hypothesis. The mission needs finite order embeddings, linear extensions, graph colorings, and a finite Ramsey theorem. The existing published Ramsey theorem is referenced as a reusable result. No scheduling approximation algorithm, polynomial-time statement, or numerical scheduling guarantee is formalized in this mission.

Selected references

  • Christoph Ambühl, Monaldo Mastrolilli, Nikolaos Mutsanas, and Ola Svensson, On the Approximability of Single-Machine Scheduling with Precedence Constraints, Mathematics of Operations Research 36(4), 653–669, 2011. DOI: 10.1287/moor.1110.0512
7 thms3 active usersReviewed
Operations ResearchOptimizationProbability·Captain: mikedeng1

Scheduling Deteriorating Jobs on a Single Processor I: Under Linear Deterioration, Sequencing by Increasing E(X_i)/α_i Minimizes the Expected MakespanResearch Paper

Motivation

In classical single-machine stochastic scheduling, NNN jobs with independent random processing requirements XiX_iXi​ are processed one after another, and the makespan (the completion time of the last job) is the same for every schedule that never idles: it is X1+⋯+XNX_1+\dots+X_NX1​+⋯+XN​. Research therefore concentrated on weighted flow times and rewards. Browne and Yechiali (Operations Research 38(3), 1990, 495–498) studied jobs that deteriorate while they wait: the longer a job is delayed, the more processing it needs. Such models arose in the control of queueing and communication systems (Browne 1988; Browne and Yechiali 1989) and in inventory issuing, where stored items lose quality at item-specific rates. Under deterioration the actual processing times depend on the order, so the makespan, and its expectation, become functions of the schedule, and the basic question is which order minimizes the expected makespan.

Setting

There are NNN jobs, all available at time 000, and a single processor. Job iii has an initial processing requirement XiX_iXi​, a random variable on a probability space (Ω,F,P)(\Omega,\mathcal F,P)(Ω,F,P): the time needed to complete job iii if it is processed first. Under linear deterioration, a job whose processing is delayed until time ttt needs

Yi(t)=Xi+αit,Y_i(t) = X_i + \alpha_i t,Yi​(t)=Xi​+αi​t,

where αi>0\alpha_i>0αi​>0 is its deterministic growth rate. A job stops deteriorating once it is put on the processor.

Only nonpreemptive strategies without idling are allowed, so a policy is a permutation π\piπ of {1,…,N}\{1,\dots,N\}{1,…,N}, with π(i)=j\pi(i)=jπ(i)=j meaning that job jjj is the iii-th processed. The completion times follow the model: S0(π)=0S_0(\pi)=0S0​(π)=0, and the job in position kkk starts at Sk−1(π)S_{k-1}(\pi)Sk−1​(π) and takes Yπ(k)(Sk−1(π))Y_{\pi(k)}(S_{k-1}(\pi))Yπ(k)​(Sk−1​(π)), so

Sk(π)=Sk−1(π)+Xπ(k)+απ(k)Sk−1(π),k=1,…,N.S_k(\pi) = S_{k-1}(\pi) + X_{\pi(k)} + \alpha_{\pi(k)} S_{k-1}(\pi), \qquad k = 1,\dots,N.Sk​(π)=Sk−1​(π)+Xπ(k)​+απ(k)​Sk−1​(π),k=1,…,N.

The makespan is SN(π)S_N(\pi)SN​(π) and the expected makespan is E SN(π)\mathrm E\,S_N(\pi)ESN​(π). In Lean these are completionTime X α π k ω, makespan X α π ω and expectedMakespan P X α π in the namespace DeterioratingJobs.Makespan.

The paper's Lemma 1 concerns, for real numbers μi\mu_iμi​ and γi\gamma_iγi​, the sum (1)

Fμ,γ(π)=∑i=1Nμπ(i)∏r=i+1Nγπ(r),F_{\mu,\gamma}(\pi) = \sum_{i=1}^{N} \mu_{\pi(i)} \prod_{r=i+1}^{N} \gamma_{\pi(r)},Fμ,γ​(π)=i=1∑N​μπ(i)​r=i+1∏N​γπ(r)​,

the Lean lemma1Sum μ γ π (empty product =1=1=1).

Formalization targets

Goal: the expected-makespan index rule (§1, p. 496)

If the XiX_iXi​ are integrable, αi>0\alpha_i>0αi​>0, and π\piπ schedules the jobs by increasing values of E(Xi)/αi\mathrm E(X_i)/\alpha_iE(Xi​)/αi​, then

E SN(π)≤E SN(σ)for every permutation σ.\mathrm E\,S_N(\pi) \le \mathrm E\,S_N(\sigma) \qquad\text{for every permutation } \sigma .ESN​(π)≤ESN​(σ)for every permutation σ.

Milestones

  1. Lemma 1 (p. 495). If γi>1\gamma_i>1γi​>1 for all iii, the sum (1) is minimized over all permutations by any permutation ordered by increasing μi/[γi−1]\mu_i/[\gamma_i-1]μi​/[γi​−1], and maximized by any permutation ordered by decreasing values.
  2. Eq. (2) (p. 496). For every π\piπ and j≤Nj\le Nj≤N,
Sj(π)=∑i=1jXπ(i)∏r=i+1j(1+απ(r)).S_j(\pi) = \sum_{i=1}^{j} X_{\pi(i)} \prod_{r=i+1}^{j} \bigl(1+\alpha_{\pi(r)}\bigr).Sj​(π)=i=1∑j​Xπ(i)​r=i+1∏j​(1+απ(r)​).
  1. The expected makespan in the form (1) (p. 496, after (2)).
E SN(π)=∑i=1NE(Xπ(i))∏r=i+1N(1+απ(r))=FEX, 1+α(π).\mathrm E\,S_N(\pi) = \sum_{i=1}^{N} \mathrm E(X_{\pi(i)}) \prod_{r=i+1}^{N}\bigl(1+\alpha_{\pi(r)}\bigr) = F_{\mathrm E X,\,1+\alpha}(\pi).ESN​(π)=i=1∑N​E(Xπ(i)​)r=i+1∏N​(1+απ(r)​)=FEX,1+α​(π).

Significance

The result is an index rule: each job receives a number computed from its own data, E(Xi)/αi\mathrm E(X_i)/\alpha_iE(Xi​)/αi​, and sorting by that number is optimal. It needs only the means of the initial requirements, not their distributions, and it holds without independence. The same reduction to Lemma 1 gives the paper's other index rules: the variance of the makespan under independent requirements, the Poisson-shock model (5), Lévy-type growth (6) and setup/detach times (7). In inventory issuing, it says which stored item to issue first when items lose value at item-specific linear rates. Lemma 1 itself, which the paper attributes to Rau (1971) and relates to optimal search, is a general statement about ordering products of factors along a sequence.

The result is proved in the paper by an appeal to Lemma 1, whose proof is given there as one sentence ("direct upon an interchange argument"). None of these statements has a machine-checked proof on Prove2Me or in Mathlib. This mission produces a formal model of linear deterioration on a single machine, a formal proof of the interchange lemma with ties handled, and the formal index rule.

Difficulty

The algebra of one adjacent interchange is short. The work is in passing from that local comparison to optimality over all N!N!N! permutations, with ties allowed: the paper speaks of "the permutation ordered by increasing values", but with equal indices several permutations qualify, and each of them must be shown optimal. The natural route, "an optimal permutation exists and must be sorted", needs care, because a sorted permutation is not unique and the swap that improves an unsorted permutation may only weakly improve it. On the probabilistic side, the expectation of the makespan must be reduced to the expectations of the XiX_iXi​; the makespan is a polynomial in the XiX_iXi​ with deterministic coefficients, so this is linearity of the integral, but integrability has to be carried through the recursion.

Formalization scope

  • Jobs are Fin N (0-based: Lean job i is the paper's job i+1i+1i+1); a policy is π : Equiv.Perm (Fin N) with π k the job in position k, as in the paper's π(i)=j\pi(i)=jπ(i)=j. N=0N=0N=0 is allowed.
  • The probability space is (Ω, P) with [IsProbabilityMeasure P]; XiX_iXi​ is Ω → ℝ; expectations are Bochner integrals, and every theorem about them assumes each XiX_iXi​ integrable. The growth rates are deterministic reals.
  • Completion times are defined by the model recursion Sk=Sk−1+Yπ(k)(Sk−1)S_{k}=S_{k-1}+Y_{\pi(k)}(S_{k-1})Sk​=Sk−1​+Yπ(k)​(Sk−1​), never by the closed form (2), so that (2) is a theorem about the model.
  • Explicit readings of loose phrases: "the permutation ordered by increasing values of viv_ivi​" means any permutation with k↦vπ(k)k\mapsto v_{\pi(k)}k↦vπ(k)​ non-strictly increasing (Monotone), and "decreasing" means Antitone; "is minimized" means ≤\le≤ against every permutation; "expected" means the integral of an integrable random variable.
  • Added hypotheses: αi>0\alpha_i>0αi​>0 in the goal (the paper divides by αi\alpha_iαi​ without stating it) and γi>1\gamma_i>1γi​>1 in Lemma 1 (the paper applies it only with γi=1+αi\gamma_i = 1+\alpha_iγi​=1+αi​ or (1+αi)2(1+\alpha_i)^2(1+αi​)2; for γi<1\gamma_i<1γi​<1 the ordering reverses).
  • Omitted assumptions: positivity of the XiX_iXi​ and their independence. The goal holds without them, so the formal statement is slightly more general than the paper's.
  • Trivializing formalizations are excluded: defining SSS by formula (2) would make milestone 2 a definition unfolding; a strictly increasing ordering would make the goal vacuous whenever two indices tie; ordering π−1\pi^{-1}π−1 instead of π\piπ states a different theorem; dropping integrability makes all expectations 000; allowing αi=0\alpha_i=0αi​=0 makes E(Xi)/αi=0\mathrm E(X_i)/\alpha_i=0E(Xi​)/αi​=0 a meaningless index.
  • Not formalized here: the variance result (3), the Poisson model (5), the Lévy model (6), Proposition 1, setup times (7), exponential growth (9), and the NP-hardness conjecture. Proposition 2 (weighted expected completion time) is the companion mission Scheduling Deteriorating Jobs on a Single Processor II.
  • Related platform items, none of which states these results: PalmQueueing.Ordering.interchange_permutations (interchange permutations of a GI/GI/1 queue) and the additive, non-deteriorating completion-time models MooreLateJobs.Shared.completionTime and NumStochOpt.ListScheduling.Makespan.

Contributions welcome: proofs of the milestones, a reusable "sorted permutation minimizes a sum of products" lemma, and the variance index (3) as an extension.

Selected references

  • S. Browne, U. Yechiali, Scheduling Deteriorating Jobs on a Single Processor, Operations Research 38(3), 1990, 495–498. https://doi.org/10.1287/opre.38.3.495
  • J. G. Rau, Minimizing a Function of Permutations of n Integers, Operations Research 19(1), 1971, 237–240. https://doi.org/10.1287/opre.19.1.237
  • F. P. Kelly, A Remark on Search and Sequencing Problems, Mathematics of Operations Research 7(1), 1982, 154–157. https://doi.org/10.1287/moor.7.1.154
  • R. W. Conway, W. L. Maxwell, L. W. Miller, Theory of Scheduling, Addison-Wesley, 1967.
6 thms1 active userReviewed
Complexity TheoryOperations ResearchTheoretical Computer Science·Captain: mikedeng1

Complexity of Machine Scheduling Problems 1: PARTITION Reduces to Makespan and to Weighted Completion Time on Two Identical MachinesResearch Paper

Motivation

Deterministic machine scheduling asks how to process a set of jobs on a set of machines so that an overall criterion, such as the time at which the last job finishes, is as small as possible. In the early 1970s many such problems had efficient algorithms (Johnson's rule for the two-machine flow shop, Smith's ratio rule for a single machine, Lawler's rule under precedence constraints), while others resisted every attempt. The report of Brucker, Lenstra and Rinnooy Kan (Mathematisch Centrum, 1975; journal version in Annals of Discrete Mathematics 1, 1977) drew the line between the two groups systematically. It fixed the four-field notation n∣m∣ℓ,λ∣kn|m|\ell,\lambda|kn∣m∣ℓ,λ∣k that the scheduling literature still uses, and it proved NP-completeness of the "easiest" hard problems by explicit reductions in the sense of Karp.

The first family of reductions in the report, Theorem 3, concerns the simplest machine environment beyond a single machine: two identical machines. It shows that already there, minimizing the makespan and minimizing the total weighted completion time are as hard as PARTITION. These two reductions are simplified versions of reductions given by Bruno, Coffman and Sethi (1974), reference [3] of the report.

Setting

PARTITION. Given positive integers a1,…,ata_1,\dots,a_ta1​,…,at​, decide whether there is a subset SSS of T={1,…,t}T=\{1,\dots,t\}T={1,…,t} with

∑j∈Saj=∑j∈T−Saj.\sum_{j\in S}a_j=\sum_{j\in T-S}a_j .j∈S∑​aj​=j∈T−S∑​aj​.

Write A=∑j∈TajA=\sum_{j\in T}a_jA=∑j∈T​aj​ for the total.

Two identical machines. There are nnn jobs J1,…,JnJ_1,\dots,J_nJ1​,…,Jn​ and two machines M1,M2M_1,M_2M1​,M2​. Job JjJ_jJj​ has a processing time pj∈Np_j\in\mathbb Npj​∈N and a weight wj∈Nw_j\in\mathbb Nwj​∈N, and must be processed without interruption on one machine of its choice; all jobs are available at time 000. A schedule assigns to every job a machine and a starting time Bj∈NB_j\in\mathbb NBj​∈N; its completion time is Cj=Bj+pjC_j=B_j+p_jCj​=Bj​+pj​. A schedule is feasible if no two jobs on the same machine are processed at the same time, i.e. the intervals [Bj,Bj+pj)[B_j,B_j+p_j)[Bj​,Bj​+pj​) on each machine are pairwise disjoint. Idle time is allowed. Two criteria are considered:

Cmax⁡=max⁡jCj,∑jwjCj.C_{\max}=\max_j C_j,\qquad \sum_j w_jC_j .Cmax​=jmax​Cj​,j∑​wj​Cj​.

The problems n∣2∣I∣Cmax⁡n|2|I|C_{\max}n∣2∣I∣Cmax​ and n∣2∣I∣∑wjCjn|2|I|\sum w_jC_jn∣2∣I∣∑wj​Cj​ ask for a feasible schedule minimizing the respective criterion.

Reducibility. Following Section 2 of the report, each problem is replaced by its recognition version: given an instance and a threshold yyy, is there a feasible schedule with value ≤y\le y≤y? A problem P′P'P′ is reducible to PPP, written P′∝PP'\propto PP′∝P, if every instance of P′P'P′ can be transformed in polynomial time into an instance of PPP with the same answer. Instances are written as words over a finite alphabet, with every number in binary.

Formalization targets

Goal: Theorem 3

PARTITION∝n∣2∣I∣Cmax⁡andPARTITION∝n∣2∣I∣∑wjCj.\text{PARTITION}\propto n|2|I|C_{\max}\qquad\text{and}\qquad \text{PARTITION}\propto n|2|I|\textstyle\sum w_jC_j .PARTITION∝n∣2∣I∣Cmax​andPARTITION∝n∣2∣I∣∑wj​Cj​.

Both reductions use the same instance shape: n=tn=tn=t jobs with pj=ajp_j=a_jpj​=aj​.

Milestones

  1. Theorem 3(a), equivalence. With pj=ajp_j=a_jpj​=aj​ and y=12Ay=\tfrac12Ay=21​A: PARTITION has a solution iff some feasible schedule has Cmax⁡≤yC_{\max}\le yCmax​≤y.
  2. Ordering independence. With pj=wj=ajp_j=w_j=a_jpj​=wj​=aj​, if SSS is the set of jobs on M1M_1M1​ and each machine works without idle time from 000, then ∑wjCj=k(S)\sum w_jC_j=k(S)∑wj​Cj​=k(S) for every order of the jobs, where
k(S)=∑j,k∈S, j≤kajak+∑j,k∈T−S, j≤kajak;k(S)=\sum_{j,k\in S,\,j\le k}a_ja_k+\sum_{j,k\in T-S,\,j\le k}a_ja_k ;k(S)=j,k∈S,j≤k∑​aj​ak​+j,k∈T−S,j≤k∑​aj​ak​;

every feasible schedule with this assignment has value at least k(S)k(S)k(S). 3. The identity for k(S)k(S)k(S). With c=∑j∈Saj−12Ac=\sum_{j\in S}a_j-\tfrac12Ac=∑j∈S​aj​−21​A,

k(S)=k(T)−(∑j∈Saj)(∑j∈T−Saj)=∑j,k∈T, j≤kajak−(12A+c)(12A−c)=y+c2.k(S)=k(T)-\Big(\sum_{j\in S}a_j\Big)\Big(\sum_{j\in T-S}a_j\Big)=\sum_{j,k\in T,\,j\le k}a_ja_k-\big(\tfrac12A+c\big)\big(\tfrac12A-c\big)=y+c^2 .k(S)=k(T)−(j∈S∑​aj​)(j∈T−S∑​aj​)=j,k∈T,j≤k∑​aj​ak​−(21​A+c)(21​A−c)=y+c2.
  1. Theorem 3(b), equivalence. With pj=wj=ajp_j=w_j=a_jpj​=wj​=aj​ and y=∑j,k∈T, j≤kajak−14A2y=\sum_{j,k\in T,\,j\le k}a_ja_k-\tfrac14A^2y=∑j,k∈T,j≤k​aj​ak​−41​A2: PARTITION has a solution iff some feasible schedule has ∑wjCj≤y\sum w_jC_j\le y∑wj​Cj​≤y.

Significance

The result. Since PARTITION is NP-complete (Karp 1972), Theorem 3 shows that both problems are NP-hard with only two machines and a single operation per job; their recognition versions are NP-complete. Together with the single-machine and shop results in the rest of the report, it places the boundary of tractability in deterministic scheduling. The makespan problem P2∥Cmax⁡P2\|C_{\max}P2∥Cmax​ became a standard source problem for later hardness proofs and a standard target for pseudo-polynomial algorithms and approximation schemes. The weighted completion time result contrasts with the single-machine case, which Smith's ratio rule solves in polynomial time.

Formalizing it. The theorem is classical and fully proved on paper; the report prints the constructions and, for (b), a short calculation. To our knowledge no machine-checked proof exists. The mission produces (i) a precise model of nonpreemptive schedules on two identical machines with integer start times and idle time allowed, (ii) the two yes-instance equivalences with the paper's rational thresholds, (iii) the ordering-independence statement for pj=wjp_j=w_jpj​=wj​ behind part (b), and (iv) the polynomial-time computability of the reductions in a Turing machine model. Part (iv) is the formal content of "reducible" and is missing from the paper.

Difficulty

For part (a) the mathematics is short. The paper treats it as evident; a formal proof must still handle schedules with idle time and the case of odd AAA, where 12A\tfrac12A21​A is not an integer.

Part (b) rests on the claim that, when pj=wjp_j=w_jpj​=wj​, the value ∑wjCj\sum w_jC_j∑wj​Cj​ does not depend on the order of the jobs on a machine. For a single machine without idle time this is a symmetric double sum. A recognition-problem proof also needs the converse direction: no schedule with idle time beats the non-idle one, so every feasible schedule with assignment SSS has value at least k(S)k(S)k(S). The paper cites this rather than proving it.

The step the paper leaves out entirely is polynomiality. The constructions copy the input and compute 12A\tfrac12A21​A or ∑j≤kajak−14A2\sum_{j\le k}a_ja_k-\tfrac14A^2∑j≤k​aj​ak​−41​A2, and in a one-tape Turing machine model with an explicit polynomial time bound this needs binary arithmetic (sums, products, a floor) carried out on the tape. It also needs a decoder that rejects malformed words and lists containing a zero. This is routine in principle but long in practice.

Formalization scope

  • Model. Jobs are Fin n and machines Fin 2 (machine 0 is M1M_1M1​). Starting times are natural numbers. Section 3 of the report computes them from processing orders on nonnegative integer data, and both criteria are regular, so real starting times would give the same yes-instances. Processing times may be zero; a zero-length job occupies the empty interval. Schedules may contain idle time.
  • Criteria. "Cmax⁡≤yC_{\max}\le yCmax​≤y" is stated as Cj≤yC_j\le yCj​≤y for every job, which equals max⁡jCj≤y\max_jC_j\le ymaxj​Cj​≤y for n≥1n\ge1n≥1 and avoids a supremum. ∑wjCj\sum w_jC_j∑wj​Cj​ is a finite sum in N\mathbb NN.
  • Languages. PARTITION is the set of binary codes of lists of positive integers that admit a partition; a code of a list with a zero entry is not in the language. A target word codes nnn, the processing times (and weights, job by job), and a threshold y∈Ny\in\mathbb Ny∈N. The number of machines is fixed by the class and not coded. Every coded instance is in the class, so the language admits nothing outside it.
  • Reducibility is CookPvsNP.PolyReducible from the published definition CookPvsNP_defs (Cook's one-tape Turing machines, polynomial-time many-one reductions). The alphabet BSym and the binary code encNats are reused from the published ProjSchedTW.Complexity.Encoding (Neumann, Schwindt and Zimmermann). Its PARTITION language is not reused, because it allows zero sizes.
  • Thresholds. The milestones state the paper's thresholds 12A\tfrac12A21​A and ∑j≤kajak−14A2\sum_{j\le k}a_ja_k-\tfrac14A^2∑j≤k​aj​ak​−41​A2 as real numbers, exactly as printed. The goal's reduction must write a natural-number threshold; all schedule values are integers, so the floor of the printed threshold gives the same yes-instances.
  • Explicit readings. The equivalence of (a) is not printed; the report says on p. 14 that such equivalences are "trivial or clear" where not proved. "Only depends on the choice of SSS" is stated as two facts: equality for non-idle schedules and a lower bound for all feasible schedules. "It is easily seen (cf. Figure 1)" is the three-step identity, one equality per printed step. k(S)k(S)k(S) is defined by its closed form, and its link to schedules is a milestone.
  • Ruled out. A target language whose yes-instances are defined through PARTITION, an equivalence for some instance rather than the paper's construction, and a goal that drops polynomial-time computability would all make the goal vacuous or different. The statements here use the constructions as printed and Cook's reducibility.
  • Welcome contributions. Proofs of the four milestones; a library of polynomial-time Turing machine programs for binary arithmetic and list decoding over BSym, which every mission of this series needs and which is reusable for other reductions on the platform.

Selected references

  • P. Brucker, J. K. Lenstra, A. H. G. Rinnooy Kan, Complexity of Machine Scheduling Problems, Mathematisch Centrum Report BW 43/75, Amsterdam, 1975. https://ir.cwi.nl/pub/9725/9725D.pdf
  • J. K. Lenstra, A. H. G. Rinnooy Kan, P. Brucker, Complexity of machine scheduling problems, Annals of Discrete Mathematics 1 (1977) 343–362. https://doi.org/10.1016/S0167-5060(08)70743-X
  • J. Bruno, E. G. Coffman Jr., R. Sethi, Scheduling independent tasks to reduce mean finishing time, Communications of the ACM 17 (1974) 382–387. https://doi.org/10.1145/361011.361064
  • R. M. Karp, Reducibility among combinatorial problems, in Complexity of Computer Computations, Plenum, 1972, 85–103. https://doi.org/10.1007/978-1-4684-2001-2_9
  • S. A. Cook, The complexity of theorem-proving procedures, STOC 1971, 151–158. https://doi.org/10.1145/800157.805047
  • W. E. Smith, Various optimizers for single-stage production, Naval Research Logistics Quarterly 3 (1956) 59–66. https://doi.org/10.1002/nav.3800030106
11 thms2 active usersReviewed
Next

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me