Shmoys–Tardos rounding for GAP: cost at most the LP cost, loads at most
ProvedShmoysTardos.lp_roundingThis is the rounding theorem of Shmoys and Tardos for the generalized assignment problem (GAP), in the form cited on p. 11 of Gupta–Kumar–Nagarajan–Shen.
Let there be machines and jobs, with processing times and (arbitrary real) assignment costs . Let be a feasible solution of the natural LP relaxation with makespan bound :
and let be an upper bound on over all pairs with . Then there is an integral assignment (job goes to machine ) such that
- only uses pairs in the support of : for every job ;
- its cost is at most the fractional cost: ;
- every machine load is at most : for all .
This is the integral-rounding step used for GAP-type relaxations in scheduling (e.g. step 3 of the rounding procedure in Gupta–Kumar–Nagarajan–Shen, whose Observation 2 applies it with ).
Formalization Note Only the existence of the rounded assignment is stated; the polynomial running time of the algorithm is not modelled. The makespan bound is uniform over machines, as in the cited use. The hypothesis (automatic when ) only matters when there are no jobs.
import Mathlib
namespace ShmoysTardos
/-- Shmoys–Tardos rounding for the generalized assignment problem: a fractional assignment
`y` of `n` jobs to `m` machines with fractional cost `Σ c_{ij} y_{ij}` and fractional loads
`Σ_j p_{ij} y_{ij} ≤ b` can be rounded to an integral assignment `σ`, using only pairs with
`y_{ij} > 0`, of cost at most the fractional cost and with every load at most `b + p_max`,
where `p_max` bounds `p_{ij}` on the support of `y`. -/
theorem lp_rounding {m n : ℕ} (p c : Fin m → Fin n → ℝ) (b pmax : ℝ)
(hp : ∀ i j, 0 ≤ p i j) (y : Fin m → Fin n → ℝ) (hy0 : ∀ i j, 0 ≤ y i j)
(hy1 : ∀ j, ∑ i, y i j = 1) (hload : ∀ i, ∑ j, p i j * y i j ≤ b)
(hpmax0 : 0 ≤ pmax) (hpmax : ∀ i j, 0 < y i j → p i j ≤ pmax) :
∃ σ : Fin n → Fin m, (∀ j, 0 < y (σ j) j) ∧
∑ j, c (σ j) j ≤ ∑ i, ∑ j, c i j * y i j ∧
∀ i, ∑ j ∈ Finset.univ.filter (fun j => σ j = i), p i j ≤ b + pmax := by sorry
end ShmoysTardos