Algorithm Search⌘K

Definitionintro

System optimal flow

Also called system optimum, socially optimal flow.

A feasible flow of least total latency. If each x l(x) is convex and differentiable, it is the Wardrop equilibrium for the marginal cost latencies l(x) + x l'(x).

A system optimal flow is a feasible flow of least total cost in the selfish routing model. It is the flow that a central planner picks when it can assign every traveler a route. Wardrop's second principle describes it: the average journey time is a minimum. It is the benchmark in the price of anarchy of selfish routing, and in general it is not a Wardrop equilibrium, because some travelers on it have a shorter path that they do not use.

Definition

Use the notation of the selfish routing model: an instance (G,r,ℓ)(G, r, \ell) with commodities i=1,…,ki = 1, \ldots, k, path sets Pi\mathcal{P}_i, continuous nondecreasing latencies ℓe≥0\ell_e \ge 0 and edge flows fef_e. The cost of a flow is

C(f)=∑PfP ℓP(f)=∑e∈Efe ℓe(fe).C(f) = \sum_{P} f_P \, \ell_P(f) = \sum_{e \in E} f_e \, \ell_e(f_e).

Definition. A feasible flow f∗f^* is system optimal if C(f∗)≤C(g)C(f^*) \le C(g) for every feasible flow gg.

Existence. The feasible path flows form a compact polytope, a product of simplices scaled by the rates rir_i, and CC is continuous. So a system optimal flow exists in every instance. The optimal cost is unique, but the optimal flow need not be. If every function xℓe(x)x \ell_e(x) is strictly convex, the optimal edge flows are unique.

Semiconvex latencies and marginal costs. A latency ℓ\ell is semiconvex if xℓ(x)x \ell(x) is convex on [0,∞)[0, \infty). Every nondecreasing convex latency is semiconvex, so this covers affine functions and polynomials with nonnegative coefficients. If every ℓe\ell_e is semiconvex, finding f∗f^* is a convex program: minimize a separable convex function over the flow polytope (convex optimization problem). For a differentiable latency, the marginal cost latency is

ℓe∗(x)=ddx(x ℓe(x))=ℓe(x)+x ℓe′(x).\ell^*_e(x) = \frac{d}{dx}\big(x \, \ell_e(x)\big) = \ell_e(x) + x \, \ell'_e(x).

It is the extra total cost of one more unit of traffic on ee. A new traveler pays ℓe(x)\ell_e(x), and the xx travelers already there each pay about ℓe′(x)\ell'_e(x) more.

Characterization. Let every ℓe\ell_e be semiconvex and continuously differentiable. Then a feasible flow f∗f^* is system optimal if and only if it is a Wardrop equilibrium for the latencies ℓe∗\ell^*_e. That is, for every commodity ii and paths P,P′∈PiP, P' \in \mathcal{P}_i,

fP∗>0  ⟹  ∑e∈Pℓe∗(fe∗)≤∑e∈P′ℓe∗(fe∗).f^*_P > 0 \implies \sum_{e \in P} \ell^*_e(f^*_e) \le \sum_{e \in P'} \ell^*_e(f^*_e).

Proof. Since ∫0yℓe∗(x) dx=y ℓe(y)\int_0^{y} \ell^*_e(x)\,dx = y \, \ell_e(y), the cost is C(f)=∑e∫0feℓe∗(x) dxC(f) = \sum_e \int_0^{f_e} \ell^*_e(x)\,dx. This is the potential of the Beckmann theorem for the instance with latencies ℓe∗\ell^*_e. Each ℓe∗\ell^*_e is continuous, it is nondecreasing because it is the derivative of a convex function, and it is nonnegative because ℓe≥0\ell_e \ge 0 and ℓe′≥0\ell'_e \ge 0. So the Beckmann theorem applies to ℓ∗\ell^*: the minimizers of CC are exactly the equilibria for ℓ∗\ell^*. □\square

In words, a system optimal flow is a selfish flow in which every traveler pays its marginal cost. The variational inequality form is ∑eℓe∗(fe∗)fe∗≤∑eℓe∗(fe∗)ge\sum_e \ell^*_e(f^*_e) f^*_e \le \sum_e \ell^*_e(f^*_e) g_e for all feasible gg.

Affine latencies. If ℓe(x)=aex+be\ell_e(x) = a_e x + b_e with ae,be≥0a_e, b_e \ge 0, then ℓe∗(x)=2aex+be=ℓe(2x)\ell^*_e(x) = 2 a_e x + b_e = \ell_e(2x). So if hh is a Wardrop equilibrium for ℓ\ell at the rates 2r2r, then h/2h/2 is a Wardrop equilibrium for ℓ∗\ell^* at the rates rr, and h/2h/2 is system optimal at the rates rr. An optimal flow is half of an equilibrium flow for twice the traffic.

Examples and non-examples

Pigou's network. Links ℓ1(x)=1\ell_1(x) = 1 and ℓ2(x)=x\ell_2(x) = x, rate 1. The marginal costs are ℓ1∗(x)=1\ell^*_1(x) = 1 and ℓ2∗(x)=2x\ell^*_2(x) = 2x. They are equal at f2=1/2f_2 = 1/2, so f∗=(1/2,1/2)f^* = (1/2, 1/2) with cost 1/2⋅1+1/2⋅1/2=3/41/2 \cdot 1 + 1/2 \cdot 1/2 = 3/4. The Wardrop equilibrium (0,1)(0, 1) costs 1, so the ratio is 4/34/3 (Pigou's example). Check with the affine rule: at rate 2 the equilibrium is (1,1)(1, 1), and half of it is (1/2,1/2)(1/2, 1/2).

Three parallel links. Let ℓ1(x)=x\ell_1(x) = x, ℓ2(x)=x+1\ell_2(x) = x + 1, ℓ3(x)=2x+1\ell_3(x) = 2x + 1 and r=3r = 3. The marginal costs are 2x2x, 2x+12x + 1 and 4x+14x + 1. At a common marginal cost MM the flows are M/2M/2, (M−1)/2(M - 1)/2 and (M−1)/4(M - 1)/4, with sum (5M−3)/4(5M - 3)/4. This is 3 when M=3M = 3, so f∗=(3/2,1,1/2)f^* = (3/2, 1, 1/2). The cost is 9/4+2+1=21/49/4 + 2 + 1 = 21/4. The Wardrop equilibrium (9/5,4/5,2/5)(9/5, 4/5, 2/5) costs 27/527/5, so the ratio is (27/5)/(21/4)=36/35(27/5)/(21/4) = 36/35. At rate 6 the equilibrium is (3,2,1)(3, 2, 1) with common latency 3, and half of it is f∗f^*.

Braess's network. Vertices s,v,w,ts, v, w, t, latency xx on s→vs \to v and w→tw \to t, latency 1 on v→tv \to t and s→ws \to w, latency 0 on the shortcut v→wv \to w, and rate 1. The flow with 1/21/2 on each of s→v→ts \to v \to t and s→w→ts \to w \to t costs 3/23/2. Its marginal costs are 2⋅1/2=12 \cdot 1/2 = 1 on s→vs \to v and w→tw \to t, 1 on the constant edges and 0 on the shortcut. So all three paths have marginal cost 2, and the flow is optimal. The shortcut is not used. The Wardrop equilibrium sends all traffic on the shortcut and costs 2 (Braess's paradox). An extra edge can never raise the optimal cost, because the old optimal flow stays feasible.

A non-example: a latency that is not semiconvex. Let ℓ1(x)=min⁡(x,1)\ell_1(x) = \min(x, 1), ℓ2(x)=3/2\ell_2(x) = 3/2 and rate 2. Then xℓ1(x)x \ell_1(x) is x2x^2 on [0,1][0, 1] and xx after 1, which is not convex. Away from x=1x = 1, the marginal cost on link 1 is 2x2x below 1 and 1 above 1, and on link 2 it is 3/23/2. Two flows satisfy the marginal cost condition: f1=3/4f_1 = 3/4, with cost 9/16+3/2⋅5/4=39/169/16 + 3/2 \cdot 5/4 = 39/16, and f1=2f_1 = 2, with cost 2. Only the second one is optimal. Without semiconvexity, the marginal cost condition is necessary at a smooth point but not sufficient.

A non-example: an optimal flow that a planner cannot keep without help. In Pigou's network, the travelers on link 1 of f∗=(1/2,1/2)f^* = (1/2, 1/2) pay 1 while link 2 has latency 1/21/2. Each of them gains by a switch, so f∗f^* is not an equilibrium for ℓ\ell. A toll of 1/21/2 on link 2 makes it one: then both links cost 1 (marginal cost tolls).

  • Wardrop equilibrium. The first principle: every used path is a shortest path for the actual latencies. It is the Wardrop equilibrium, and its cost divided by C(f∗)C(f^*) is the price of anarchy of the instance.
  • Marginal cost tolls. The toll τe=fe∗ ℓe′(fe∗)\tau_e = f^*_e \, \ell'_e(f^*_e) on each edge makes f∗f^* a Wardrop equilibrium for the latencies ℓe(x)+τe\ell_e(x) + \tau_e, since these agree with ℓe∗\ell^*_e at f∗f^* (NRTV Theorem 18.27; marginal cost tolls).
  • Minimum cost flow. If every latency is a constant cec_e, then C(f)=∑ecefeC(f) = \sum_e c_e f_e, the problem is a minimum cost flow with no capacities, and each commodity takes a shortest path. Then the equilibrium is optimal too. With semiconvex latencies the problem is a convex cost flow problem.
  • Bicriteria bound. A Wardrop equilibrium at the rates rr costs at most a system optimal flow at the rates 2r2r, for every continuous nondecreasing latency (Roughgarden-Tardos bound).
  • Stackelberg routing. A leader controls a fraction of the traffic and routes it so that the selfish rest comes close to the optimum (Stackelberg routing).
  • User-optimized and system-optimized. Dafermos and Sparrow (1969) named the Wardrop equilibrium and the system optimal flow this way, after Wardrop's first and second principles.

References

  1. J. G. Wardrop, Some theoretical aspects of road traffic research, Proceedings of the Institution of Civil Engineers 1(3) (1952), 325-362, the second principle (the average journey time is a minimum)
  2. Martin Beckmann, C. B. McGuire and Christopher B. Winsten, Studies in the Economics of Transportation, Yale University Press, 1956, Part I (efficient use of a road network compared with the equilibrium, and congestion tolls)
  3. Stella C. Dafermos and Frederick T. Sparrow, The traffic assignment problem for a general network, Journal of Research of the National Bureau of Standards, Section B 73B(2) (1969), 91-118, the terms user-optimized and system-optimized, and the conditions for a system-optimized flow
  4. Noam Nisan, Tim Roughgarden, Eva Tardos and Vijay V. Vazirani (eds.), Algorithmic Game Theory, Cambridge University Press, 2007, Chapter 18, Tim Roughgarden, Routing games, Proposition 18.9 and Corollary 18.10 (optimal flows as equilibria for marginal cost functions) and Theorem 18.27 (marginal cost taxes)
  5. Tim Roughgarden and Eva Tardos, How bad is selfish routing?, Journal of the ACM 49(2) (2002), 236-259, the characterization of optimal flows by marginal cost latencies and the bicriteria bound

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/KA2E95/text.yaml