Reversibility and Stochastic Networks V: Optimal Capacity Allocation in a Network of QueuesTextbook
Motivation
Chapter 4 of F. P. Kelly's Reversibility and Stochastic Networks (Wiley, 1979) applies the product-form theory of Chapter 3 to concrete systems. Two of its results have numbered statements, and they answer two practical questions.
The first comes from the design of store-and-forward communication networks (telegraph and packet-switched data networks). Messages queue at channels; the designer chooses each channel's capacity subject to a budget, and wants to minimize the delay messages suffer. Because the equilibrium law at every channel is geometric under several different modelling assumptions (§4.1, pp. 95–96), the mean delay has a closed form, and the budget allocation problem becomes a small convex program with an explicit solution. This square-root capacity assignment goes back to L. Kleinrock's work on communication nets (Communication Nets, McGraw-Hill, 1964) and remains the textbook example of optimal design for a network of queues.
The second comes from compartmental models in biology, birth–illness–death processes and manpower planning (§4.5, pp. 113–115). Individuals enter a system as a Poisson stream and move through it independently. Equilibrium results follow from Chapter 3; Theorem 4.2 describes the transient behaviour exactly, starting from an empty system.
Setting
Capacity allocation (§4.1). A network has channels. Channel receives traffic at average rate and is given capacity . In equilibrium the number of messages at channel has the geometric law (4.1),
which requires . Its mean is . Capacity on channel costs per unit and the total budget is , giving the cost constraint (4.2)
The mean number of customers in the network is
and the feasible set is the set of with for every that satisfy (4.2). In Lean these are meanNumberInNetwork a φ and FeasibleCapacities a f F. The proof works with the Lagrangian lagrangian a f F y φ .
Compartmental model (§4.5). Individuals arrive in a Poisson stream of rate at a system of compartments that is empty at time . Let be the probability that an individual is in compartment a time after its arrival; and , since individuals may leave. Let be the number of individuals in compartment at time , and
In Lean the model is the predicate IsCompartmentModel P ν t p M T Loc, the counts are compartmentCount M Loc j, and is alpha p j t.
Formalization targets
Goal: Theorem 4.1 (p. 97)
If , , and , then
is feasible and minimizes over the feasible set, and every other feasible has .
Milestones toward the goal
- The mean of the geometric law (4.1) is (p. 97).
- For the Lagrangian is minimized over by (proof of Theorem 4.1).
- The choice makes that minimizer equal to and feasible for (4.2).
Second result: Theorem 4.2 (pp. 114–115)
The proof's generating-function identity, for ,
and the theorem itself: are independent and is Poisson with mean .
Significance
Theorem 4.1 is a closed-form design rule. Every channel first receives the capacity needed to carry its traffic; the remaining budget is shared in proportion to , not to the traffic . Sizing capacity in proportion to the load, which is the obvious rule, is therefore not optimal. The same calculation applies to any network whose stations have the geometric law (4.1), for example a manufacturing job shop (p. 97). The mean number in the network and the mean time a customer spends in it are minimized together.
Theorem 4.2 is the exact transient law of a network of infinite-server queues started empty. It holds however complicated the motion of an individual is, provided individuals move independently, and letting it recovers the equilibrium Poisson law of §4.5.
Both results are classical and proved in the book. Neither is formalized on Prove2Me. The platform has the geometric equilibrium law of the M/M/1 queue (KellyStochasticNetworks.mm1_equilibrium) but not its mean, and no result on Poisson thinning or marking by independent random locations. The formal work for Theorem 4.1 is a strict-convexity and Lagrangian-sufficiency argument in . For Theorem 4.2 it is a Poisson marking theorem in measure-theoretic probability. Both pieces are reusable.
Difficulty
For Theorem 4.1, the book's proof sets the partial derivatives of the Lagrangian to zero. A stationary point is not a global minimizer in general, so the formal proof must show that is (strictly) convex on the open region , and it must use Lagrangian sufficiency, not first-order conditions alone. The region is open and the objective is unbounded near its boundary. Feasibility of needs , which the book leaves implicit.
For Theorem 4.2, the steps of the proof that read "conditional on " have to be carried out with measure-theoretic independence. One step averages a product over independent uniform instants. Another sums the Poisson mixture into an exponential. The last turns a factorized generating function into mutual independence of counts with Poisson marginals. Mathlib has the Poisson distribution (ProbabilityTheory.poissonMeasure) but no marking or thinning theorem, and no uniqueness theorem for multivariate probability generating functions.
Formalization scope
Channels and compartments are indexed by Fin J; all rates, costs and capacities are real numbers.
Theorem 4.1. The statement carries the book's implicit hypotheses explicitly: , , , . Stability is part of the feasible set. The conclusion is global optimality over the feasible set (IsMinOn) together with feasibility of , plus strict optimality against every other feasible point. Uniqueness is a slight strengthening of the book's "the optimal allocation is", and it holds by strict convexity. A statement that satisfies (4.2), or that it is a stationary point of the Lagrangian, is not the theorem: those are one-line computations or the proof method, and the goal is stated as global optimality to rule them out.
Theorem 4.2. The model is pinned down as in the proof on p. 115:
- the number of arrivals in is Poisson with mean ;
- an i.i.d. sequence of (arrival instant, location at time ) pairs is independent of , and only its first entries are used;
- each instant is uniform on , and an individual arriving at is in compartment at time with probability , or has left.
"Individuals move independently" is formalized as this conditional independence. The are measurable sub-probabilities, not assumed to sum to one. The conclusion is mutual independence of the counts (iIndepFun) together with the Poisson probability mass function of each. Infinite time horizons and the point-process description of the system are out of scope.
Useful contributions: a reusable Lagrangian-sufficiency lemma for separable convex objectives under one linear constraint; a Poisson marking (colouring) theorem for finitely many colours; the multivariate generating-function uniqueness lemma for -valued random vectors.
Selected references
- F. P. Kelly, Reversibility and Stochastic Networks, John Wiley & Sons, 1979, Chapter 4 (§4.1, pp. 95–97; §4.5, pp. 113–115).
- L. Kleinrock, Communication Nets: Stochastic Message Flow and Delay, McGraw-Hill, 1964 (reprinted Dover, 1972).
- J. F. C. Kingman, Poisson Processes, Oxford University Press, 1993 (colouring and marking theorems).