Algorithm Search⌘K

Modelcore

Selfish routing model

Also called nonatomic routing game, nonatomic selfish routing.

A directed network with a continuous nondecreasing latency on each edge and a continuum of travelers per commodity, each of whom picks a path of least latency.

The selfish routing model is a game in which a large population of travelers each choose a path through a directed network, and the delay of each edge grows with the traffic on it. Each traveler is so small that a single change of path does not change any delay, so the traffic is a continuous flow and the players are nonatomic. Its equilibria are the Wardrop equilibria, and the model is the base of the price of anarchy for networks. In the atomic congestion game each player is one unit of traffic and does change the delays; that model has other equilibria and other bounds.

The machine

The network. G=(V,E)G = (V, E) is a directed graph, and parallel edges are allowed. There are kk commodities (on this page kk is the number of commodities). Commodity ii has a source sis_i, a sink tit_i and a traffic rate ri>0r_i > 0. Pi\mathcal{P}_i is the set of simple sis_i-tit_i paths, assumed nonempty, and P=P1∪⋯∪Pk\mathcal{P} = \mathcal{P}_1 \cup \cdots \cup \mathcal{P}_k.

Latencies. Each edge ee has a latency function ℓe:[0,∞)→[0,∞)\ell_e : [0, \infty) \to [0, \infty). The standing assumptions are that each ℓe\ell_e is continuous and nondecreasing. Some results add a condition on the class of latency functions:

  • affine: ℓe(x)=aex+be\ell_e(x) = a_e x + b_e with ae,be≥0a_e, b_e \ge 0;
  • polynomial of degree at most dd with nonnegative coefficients;
  • semiconvex: x ℓe(x)x \, \ell_e(x) is convex (this is needed for the marginal cost form of the system optimal flow).

Flows. A flow is a vector f=(fP)P∈Pf = (f_P)_{P \in \mathcal{P}} with fP≥0f_P \ge 0 and ∑P∈PifP=ri\sum_{P \in \mathcal{P}_i} f_P = r_i for each commodity ii. The flow on edge ee is fe=∑P∋efPf_e = \sum_{P \ni e} f_P. The same object in edge form is a flow fei≥0f^i_e \ge 0 for each commodity that satisfies flow conservation at every vertex vv:

∑e leaves vfei  −  ∑e enters vfei  =  {riif v=si,−riif v=ti,0otherwise,fe=∑i=1kfei.\sum_{e \text{ leaves } v} f^i_e \;-\; \sum_{e \text{ enters } v} f^i_e \;=\; \begin{cases} r_i & \text{if } v = s_i, \\ -r_i & \text{if } v = t_i, \\ 0 & \text{otherwise,} \end{cases} \qquad f_e = \sum_{i=1}^{k} f^i_e .

A path flow gives an edge flow by fei=∑P∈Pi, P∋efPf^i_e = \sum_{P \in \mathcal{P}_i,\, P \ni e} f_P. Conversely, by flow decomposition, an edge flow splits into flows on sis_i-tit_i paths and flows around cycles. Removing the cycle parts lowers some edge flows and so raises no latency. The set of feasible path flows is a polytope, so it is convex and compact.

The players and their costs. The travelers of commodity ii form the interval [0,ri][0, r_i] with its length as the measure. Each traveler chooses one path in Pi\mathcal{P}_i, and the choices of all travelers give the flow ff. A traveler on path PP has the cost

ℓP(f)=∑e∈Pℓe(fe),\ell_P(f) = \sum_{e \in P} \ell_e(f_e),

and wants it small. This is a cost game: costs are minimized on all pages of this group. One traveler has measure 0, so a change of path by one traveler does not change ff. A traveler on PP gains by a switch to P′∈PiP' \in \mathcal{P}_i exactly when ℓP′(f)<ℓP(f)\ell_{P'}(f) < \ell_P(f). A flow in which no traveler gains is a Nash equilibrium of the game, called a Wardrop equilibrium: for every ii and every pair P,P′∈PiP, P' \in \mathcal{P}_i with fP>0f_P > 0, ℓP(f)≤ℓP′(f)\ell_P(f) \le \ell_{P'}(f). Each traveler picks one path, so these equilibria are pure. A mixed strategy adds nothing, because a flow already describes a split of the traffic.

An instance is the triple (G,r,ℓ)(G, r, \ell). Example: Pigou's network has two vertices ss and tt, two parallel edges with ℓ1(x)=1\ell_1(x) = 1 and ℓ2(x)=x\ell_2(x) = x, and one commodity with r=1r = 1. A flow is a pair (1−x,x)(1 - x, x) with 0≤x≤10 \le x \le 1 (Pigou's example).

What it counts

The model measures a flow by its total latency, the social cost

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

The two sums are equal: expand ℓP(f)\ell_P(f) as a sum over the edges of PP and exchange the order of summation. C(f)C(f) divided by the total rate is the average travel time. A flow f∗f^* of least cost is a system optimal flow. It exists, because CC is continuous on the compact set of flows.

The price of anarchy of an instance is C(f)/C(f∗)C(f) / C(f^*) for an equilibrium ff. All equilibria of an instance have the same cost (Beckmann potential), so the ratio does not depend on the choice of ff, and the price of stability of an instance equals its price of anarchy. If C(f∗)=0C(f^*) = 0, then every edge used by f∗f^* has latency 0 on the range [0,fe∗][0, f^*_e], so the Beckmann potential of f∗f^* is 0, its least possible value. Then f∗f^* is an equilibrium, every equilibrium has cost 0, and the convention 0/0=10/0 = 1 gives the ratio 1. For a class of instances (for example all networks with affine latencies) the price of anarchy is the supremum of the ratio over the class.

Other objectives are also studied, for example the largest latency of a used path. The results below are for the total latency.

Relation to other models

  • Atomic congestion games. In an atomic congestion game there are nn players, each routes one unit (or a weight) on one path, and a player's change does change the edge loads. Pure equilibria exist by Rosenthal's potential, but their costs can differ, and the price of anarchy for affine costs is 5/25/2 instead of 4/34/3 (atomic linear congestion bound). The nonatomic model is the limit in which each player's share goes to 0.
  • Nonatomic congestion games. Replace the paths of a network by arbitrary subsets of a set of resources. The potential and the Pigou bound arguments carry over without change, since they never use the graph structure.
  • Potential games. The selfish routing model is a nonatomic potential game: its equilibria are the minimizers of one function, the Beckmann potential.
  • Min-cost flow. With constant latencies ℓe(x)=ae\ell_e(x) = a_e, an equilibrium sends each commodity on shortest paths for the lengths aea_e, and it is also optimal. With semiconvex latencies the optimum is a convex cost multicommodity flow, a nonlinear form of the min-cost flow problem.
  • Load balancing. Parallel links with atomic weighted jobs and the makespan as the cost give the load balancing game.
  • Dynamics, leaders and tolls. Nash flows over time add travel times and queues. Stackelberg routing lets a central leader route a part of the traffic first. Marginal cost tolls change the latencies so that the optimum becomes an equilibrium.
  • Traffic planning. In transportation the equilibrium is the user equilibrium of traffic assignment, and a common latency function is the Bureau of Public Roads function, a polynomial of degree 4 in the flow. In communication networks with source routing, a common latency is the M/M/1 delay 1/(ue−x)1/(u_e - x) of a link with capacity ueu_e, which is finite only for x<uex < u_e.

Known results in the model

All results hold for any number of commodities and any directed network, with continuous nondecreasing latencies, unless the item says otherwise.

  • Existence and uniqueness. An equilibrium exists, and all equilibria have the same latency on every edge, so the same cost. The equilibria are exactly the minimizers of the convex function Φ(f)=∑e∫0feℓe(x) dx\Phi(f) = \sum_e \int_0^{f_e} \ell_e(x)\,dx (Beckmann, McGuire and Winsten 1956; Beckmann potential).
  • Variational inequality. A feasible flow ff is an equilibrium if and only if ∑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 every feasible flow gg (Wardrop equilibrium).
  • The optimum as an equilibrium. With semiconvex, continuously differentiable latencies, a flow is optimal if and only if it is an equilibrium for the marginal cost latencies ℓe(x)+xℓe′(x)\ell_e(x) + x \ell_e'(x) (system optimal flow). Tolls equal to fe∗ℓe′(fe∗)f^*_e \ell_e'(f^*_e) make the optimum an equilibrium (marginal cost tolls).
  • Price of anarchy, affine latencies. At most 4/34/3 in every network, and 4/34/3 is reached by two parallel links (Roughgarden-Tardos bound, Pigou's example).
  • Price of anarchy, any class. For any class of latency functions, the price of anarchy is at most the Pigou bound of the class, the worst ratio on two parallel links. If the class contains the constant functions, the bound is tight, so the worst network is always a two-link network. For polynomials of degree at most dd with nonnegative coefficients the value is (1−d(d+1)−(d+1)/d)−1\big(1 - d (d+1)^{-(d+1)/d}\big)^{-1}, about 2.1512.151 for d=4d = 4 (Pigou bound).
  • Extra capacity instead of coordination. For any continuous nondecreasing latencies, the cost of an equilibrium at rates rr is at most the cost of an optimal flow at rates 2r2r (Roughgarden and Tardos 2002; NRTV Theorem 18.29).
  • Braess's paradox. Adding an edge can raise the equilibrium cost; with affine latencies by a factor of at most 4/34/3 (Braess's paradox). Finding the best subnetwork is hard (Braess paradox detection hardness).
  • Computation. The equilibrium and the optimum are solutions of convex programs over the flow polytope. For affine latencies both are convex quadratic programs. The Frank-Wolfe method, a first-order method that solves a shortest path problem in each step, is the classical method of traffic planning for the equilibrium.

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 traffic model on a road network and the two principles of route choice (the equilibrium and the minimum of the average journey time)
  2. Martin Beckmann, C. B. McGuire and Christopher B. Winsten, Studies in the Economics of Transportation, Yale University Press, 1956, Part I (the network model with continuous flows, the equilibrium conditions and the convex program for them)
  3. Noam Nisan, Tim Roughgarden, Eva Tardos and Vijay V. Vazirani (eds.), Algorithmic Game Theory, Cambridge University Press, 2007, Chapter 18, Tim Roughgarden, Routing games, Section 18.2.1 (nonatomic selfish routing, Definition 18.1), Section 18.3.1 (Theorem 18.8) and Section 18.4.1 (the price of anarchy)
  4. Tim Roughgarden, Selfish Routing and the Price of Anarchy, MIT Press, 2005, Chapter 2 (the model, flows, equilibria and Section 2.3 on the price of anarchy) and Chapter 3 (How bad is selfish routing?)
  5. Tim Roughgarden, Twenty Lectures on Algorithmic Game Theory, Cambridge University Press, 2016, Lecture 11 (selfish routing and the price of anarchy) and Lecture 12 (over-provisioning and atomic selfish routing)
  6. Larry J. LeBlanc, Edward K. Morlok and William P. Pierskalla, An efficient approach to solving the road network equilibrium traffic assignment problem, Transportation Research 9(5) (1975), 309-318, the Frank-Wolfe method applied to the convex program of the equilibrium

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/PJAWQT/text.yaml