(27) and §C.1, Online App. p. 7 — the closed-form q_j is a probability vector solving the departure-epoch balance equations of the M/D/1/K−1+p queue
ProvedOutpatientWalkIn.SmallCap.eq_27_departure_lawembedded-markov-chainmd1k-queuep2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1queueingstationary-distribution
Consider the M/D/1/K−1+p queue with , and . Let , let as in (24), and let be the closed form of §C.1 () and (27) (). Then the following hold.
- for , and .
- For ,
- The last balance equation, in which arrivals that find customers join with probability , holds:
These are the balance equations of the queue length right after departures (Online Appendix p. 6), together with normalization. They determine the stationary law of that chain. So the theorem says that the closed form (27) is that stationary law, which is what makes the blocking probability of the appointment queue.
Formalization Note The statement takes general , and . Every such triple arises as , for some . For , (Lean's ), and the last equation is the classical M/D/1/K one.
Preamble
import Mathlib import Definitions.Def_OutpatientWalkIn_SmallCap_MD1Queue
Formal statement
namespace OutpatientWalkIn.SmallCap
open Finset
theorem eq_27_departure_law (K : ℕ) (hK : 1 ≤ K) (p : ℝ) (hp0 : 0 < p) (hp1 : p ≤ 1) (ρ : ℝ) (hρ : 0 < ρ) :
(∀ j, j ≤ K → 0 ≤ qVec K p ρ j) ∧
(∑ j ∈ range (K + 1), qVec K p ρ j = 1) ∧
(∀ j, j + 2 ≤ K → qVec K p ρ j = alphaP ρ 0 * qVec K p ρ (j + 1) + ∑ i ∈ Ico 1 (j + 1), alphaP ρ i * qVec K p ρ (j + 1 - i) + alphaP ρ j * qVec K p ρ 0) ∧
(qVec K p ρ (K - 1) = alphaPrime p ρ 0 * qVec K p ρ K + ∑ i ∈ Ico 1 K, alphaPrime p ρ i * qVec K p ρ (K - i) + alphaPrime p ρ (K - 1) * qVec K p ρ 0) := by sorry
end OutpatientWalkIn.SmallCap
Source
Liu, van Jaarsveld, Wang, Xiao, Managing Outpatient Service with Strategic Walk-ins, SSRN 3558209 (version of 2022-07-05), Online Appendix pp. 6–7: balance equations and (24) (p. 6), §C.1 (p = 1) and §C.2, (26)–(27) (p. 7)
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.