Theorem 5, pp. 10–11, M/M/n+M half (Whitt 2004) — efficiency-driven limits of occupancy, AWT, delay, waits and PWT variance
OpenPoolOrNot.Moderate.theorem_5_PQThis is the pooled (M/M/n+M, Erlang-A) half of Theorem 5 of Cao, He, Huang and Liu, apart from part (ii) (which is Theorem 1 of Garnett, Mandelbaum and Reiman 2002). The paper attributes these limits to Whitt (2004).
Let , let be the arrival rate of the -th M/M/n+M queue ( servers of rate , one pooled queue, exponential patience of rate ), and assume (21), with (efficiency-driven overload). Let be its stationary law of the number in system, the steady-state potential waiting time (an arrival finding customers waits a sum of independent exponentials of rates , , and an arrival finding fewer than waits ), independent of , , and the stationary number in system divided by . With and :
- for every , the law of is a probability law with finite second moment and is a convergent series;
- ;
- ;
- ;
- ;
- ;
- ;
- ;
- .
In the efficiency-driven regime the potential wait of the pooled system concentrates at the deterministic value , where the fraction of customers is served; these limits are the PQ column of Theorem 5 (i), (iii)–(ix).
Formalization Note Uses ErlangA.Abandonment.stationaryDist, ErlangA.Staffing.probWait and the PWT law pwtLawP of Def_PoolOrNot_Moderate_Waiting. The parent's upper bound is not assumed: the pooled limits hold for every . Item 0 is the PQ part of the parent's strengthening guard.
import Mathlib import Definitions.Def_JSQHalfinWhitt_Tightness_Model import Definitions.Def_JSQHalfinWhitt_Tightness_Stationary import Definitions.Def_ErlangA_Abandonment_Model import Definitions.Def_ErlangA_Staffing_Model import Definitions.Def_PoolOrNot_Moderate_Chain import Definitions.Def_PoolOrNot_Moderate_Waiting open Filter Topology MeasureTheory ProbabilityTheory JSQHalfinWhitt.Tightness
namespace PoolOrNot.Moderate
/-- **Theorem 5**, pp. 10–11, M/M/n+M half (Whitt 2004), except (ii). -/
theorem theorem_5_PQ (μ θ ρ : ℝ) (lam : ℕ → ℝ) (hμ : 0 < μ) (hθ : 0 < θ)
(hlam : ∀ n : ℕ, 1 ≤ n → 0 < lam n)
(h21 : Tendsto (fun n : ℕ => lam n / ((n : ℝ) * μ)) atTop (𝓝 ρ))
(hρ1 : 1 < ρ) :
(∀ n : ℕ, 1 ≤ n →
IsProbabilityMeasure (pwtLawP n (lam n) μ θ) ∧
Integrable (fun w : ℝ => w ^ 2) (pwtLawP n (lam n) μ θ) ∧
Summable (fun k : ℕ => (k : ℝ) * ErlangA.Abandonment.stationaryDist n (lam n) μ θ k)) ∧
Tendsto (fun n : ℕ => meanOccP n (lam n) μ θ) atTop (𝓝 (qOf ρ μ θ + 1)) ∧
Tendsto (fun n : ℕ => meanAWT (pwtLawP n (lam n) μ θ) θ) atTop
(𝓝 (qOf ρ μ θ / (ρ * μ))) ∧
Tendsto (fun n : ℕ => ErlangA.Staffing.probWait n (lam n) μ θ) atTop (𝓝 1) ∧
Tendsto (fun n : ℕ => meanPWTDelayed (pwtLawP n (lam n) μ θ)) atTop
(𝓝 (Real.log ρ / θ)) ∧
Tendsto (fun n : ℕ => meanPWT (pwtLawP n (lam n) μ θ)) atTop (𝓝 (Real.log ρ / θ)) ∧
Tendsto (fun n : ℕ => meanAWTServed (pwtLawP n (lam n) μ θ) θ) atTop
(𝓝 (Real.log ρ / θ)) ∧
Tendsto (fun n : ℕ => meanAWTAband (pwtLawP n (lam n) μ θ) θ) atTop
(𝓝 (-(μ * (Real.log ρ / θ)) / (θ * qOf ρ μ θ) + 1 / θ)) ∧
Tendsto (fun n : ℕ => varPWT (pwtLawP n (lam n) μ θ)) atTop (𝓝 0) := by sorry
end PoolOrNot.Moderate