Selfish load-balancing games (Koutsoupias–Papadimitriou model) #
In a selfish load-balancing game ([KP99]; [Voc07]),
a finite set ι of selfish tasks (jobs) each choose one machine from a finite set M. Each job
pays the total load of the machine it selects, while the social objective is the makespan
(the maximum machine load).
This module defines two standard machine models:
Cslib.GameTheory.UnrelatedLoadBalancingGame: unrelated machines, where jobiincurs an arbitrary nonnegative processing timeprocTime i jon machinej.Cslib.GameTheory.LoadBalancingGame: uniformly related machines, where jobihas nonnegative weightweight i, machinejhas positive speedspeed j, and the processing time of jobion machinejisweight i / speed j. Identical machines are the special caseIsIdentical(∀ j, speed j = 1), constructed byLoadBalancingGame.identical.
Both models embed into Cslib.GameTheory.CostGame via toCostGame, so pure Nash equilibria
(CostGame.IsPureNash), improvement steps (CostGame.Improves), the finite improvement property
(CostGame.HasFIP), and mixed Nash equilibria (CostGame.IsMixedNash) are inherited directly
from CslibFrontier.GameTheory.Strategic. Note that CostGame.socialCost is the sum of player
costs, whereas the Koutsoupias–Papadimitriou social cost is makespan (for pure assignments) and
expected makespan (for mixed profiles, in CslibFrontier.GameTheory.LoadBalancing.MixedNash).
Main definitions #
Cslib.GameTheory.UnrelatedLoadBalancingGame: load-balancing game on unrelated machines, withload,makespan,optMakespan, andtoCostGame.Cslib.GameTheory.LoadBalancingGame: load-balancing game on uniformly related machines, withidentical,IsIdentical,toUnrelated,load,makespan,optMakespan, andtoCostGame.
Main results #
Cslib.GameTheory.UnrelatedLoadBalancingGame.isPureNash_iff: pure Nash characterization for unrelated machines.Cslib.GameTheory.LoadBalancingGame.isPureNash_iff([Voc07], §20.1.1, Proposition 20.2, p. 519): pure Nash characterization for uniformly related machines.Cslib.GameTheory.LoadBalancingGame.sum_weight_le_sum_speed_mul_optMakespan,Cslib.GameTheory.LoadBalancingGame.weight_div_speed_le_makespan: volume and single-job lower bounds on makespan and optimal makespan.Cslib.GameTheory.LoadBalancingGame.IsIdentical.makespan_eq_scheduling,Cslib.GameTheory.LoadBalancingGame.IsIdentical.optMakespan_eq_scheduling: exact agreement withCslib.Algorithms.Lean.SchedulingonFin njobs andFin midentical machines.
References #
Construct a load-balancing game on identical machines (all speeds equal to 1).
Predicate asserting that all machines are identical (have unit speed 1).
The load of machine j under assignment A:
(∑ i with A i = j, weight i) / speed j = ∑ i with A i = j, weight i / speed j.
The strategic cost game induced by G: each job pays the load of its chosen machine.
Total speed-weighted load equals total job weight: ∑ j, speed j * load A j = ∑ i, weight i.
On identical machines, the machine loads sum to the total job weight.
Pure Nash equilibrium characterization ([Voc07], §20.1.1, Proposition 20.2, p. 519):
an assignment A is a pure Nash equilibrium if and only if no job i can strictly lower its load
by switching to another machine k.
Unconditional pure Nash inequality: for every job i and machine k (including k = A i),
load A (A i) ≤ load A k + weight i / speed k.
The makespan (social cost) of assignment A: the maximum load over all machines.
The optimal makespan OPT(G) ([Voc07], §20.1.3, Definition 20.4, pp. 521–522): the
minimum makespan over all pure assignments.
Volume lower bound: total job weight is at most (∑ j, speed j) * makespan A.
Volume lower bound against the optimum: ∑ i, weight i ≤ (∑ j, speed j) * optMakespan.
On identical machines, total job weight is at most |M| * optMakespan.
Single-job lower bound: weight i / speed (A i) ≤ makespan A.
On identical machines, every job's weight is at most optMakespan.
When optMakespan = 0, every job has weight 0.
When some job i has strictly positive weight, 0 < optMakespan.
When optMakespan = 0, every assignment has makespan 0.
On identical machines (Fin n jobs, Fin m machines), LoadBalancingGame.load agrees with
Cslib.Algorithms.Lean.Scheduling.load.
On identical machines, LoadBalancingGame.makespan agrees with
Cslib.Algorithms.Lean.Scheduling.makespan.
On identical machines, LoadBalancingGame.optMakespan agrees with
Cslib.Algorithms.Lean.Scheduling.optMakespan.