Selfish routing: nonatomic congestion games #
In a nonatomic congestion game a continuum of infinitesimal players routes traffic. There is a
finite set P of paths. Each path p belongs to a commodity commodity p and uses the finite set
of resources resources p (the edges of a path in a network). A commodity k has traffic rate
rate k. A flow f : P → ℝ is feasible if it is nonnegative and routes exactly rate k units
of traffic on the paths of each commodity k. The flow on resource e is the total flow on the
paths through e, a path's latency is the sum of the latencies of its resources at their flows,
and the cost of f is the total latency ∑ p, f p * pathLatency f p.
This is the model of Roughgarden and Tardos [RT02], Section 2.1, with a network's
s_i–t_i paths abstracted to finite sets of resources. A feasible flow is a Wardrop
equilibrium (a flow at Nash equilibrium, [RT02], Definition 2.1) when every path
carrying flow is a shortest path of its commodity; for continuous nondecreasing latencies this is
the characterization of [RT02], Lemma 2.2, which we take as the definition.
The variational inequality proved here is the first step of every price-of-anarchy bound. The
bounds themselves are in CslibFrontier.GameTheory.Congestion.PigouBound: the Pigou bound for an
arbitrary class of latencies, its value for polynomials of bounded degree, and the 4/3 theorem
for affine latencies ([RT02], Theorem 4.5).
Main definitions #
Cslib.GameTheory.NonatomicCongestionGame: a nonatomic congestion game.Cslib.GameTheory.NonatomicCongestionGame.IsFeasible,edgeFlow,pathLatency,cost: feasible flows, resource flows, path latencies and total cost.Cslib.GameTheory.NonatomicCongestionGame.IsWardrop: Wardrop equilibria.Cslib.GameTheory.NonatomicCongestionGame.HasAffineLatencies: nonnegative affine latencies.
Main results #
Cslib.GameTheory.NonatomicCongestionGame.cost_eq_sum_edgeFlow: the cost is∑ e, edgeFlow f e * latency e (edgeFlow f e).Cslib.GameTheory.NonatomicCongestionGame.cost_nonneg: nonnegative flows and latencies have nonnegative cost.Cslib.GameTheory.NonatomicCongestionGame.IsWardrop.cost_le_sum_mul_pathLatency: the variational inequalitycost f ≤ ∑ p, g p * pathLatency f pfor a Wardrop equilibriumfand a feasible flowg.
References #
A nonatomic congestion game: each path p belongs to the commodity commodity p and uses
the resources resources p; commodity k has traffic rate rate k; and latency e x is the
latency of resource e when it carries flow x.
A flow f on the paths is feasible if it is nonnegative and routes exactly rate k units
of traffic on the paths of each commodity k.
The flow on the resource e: the total flow on the paths that use e.
The latency of the path p under the flow f: the sum of the latencies of its resources.
The cost (total latency) of the flow f: ∑ p, f p * pathLatency f p.
A Wardrop equilibrium: a feasible flow under which every path carrying positive flow has latency at most that of every path of the same commodity ([RT02], Lemma 2.2).
G has affine latencies: there are a e, b e ≥ 0 with latency e x = a e * x + b e for
every resource e and flow x ([RT02], Section 4).
Exchanging the sums over paths and resources: weighting each path's resource sum by w p
weights each resource e by the flow edgeFlow w e.
The cost of a flow is the sum over resources of flow times latency.
A nonnegative flow has nonnegative cost when the latencies are nonnegative on [0, ∞).
The variational inequality for Wardrop equilibria: if f is a Wardrop equilibrium and
g is feasible, then cost f ≤ ∑ p, g p * pathLatency f p, that is, rerouting the traffic as in
g while keeping the latencies of f does not lower the total latency.