Algorithmcore
Eisenberg-Gale convex program
Also called Eisenberg-Gale program.
Finds equilibrium allocations of a linear Fisher market by maximizing the budget-weighted sum of log utilities. Its dual variables are prices.
- Time
- O(T (n + m) n^2 m^2) worst
- Space
- O(n m) extra
- Where
- T = the number of rounds of mirror ascent; m = the number of goods; n = the number of buyers
- Model
- Real RAM
- Properties
- deterministiciterative
- Evidence
- Proof sketchCode in 1 languages
- Origin
- Edmund Eisenberg, David Gale, 1959
The Eisenberg-Gale program is a convex optimization problem whose optimal solutions are exactly the equilibrium allocations of a Fisher market with linear utilities. It maximizes the sum over buyers of the budget times the logarithm of the utility, subject only to the supply of each good. The Lagrange multipliers of the supply constraints are the equilibrium prices. So a market equilibrium, defined by the selfish choices of buyers at given prices, is also the optimum of one global objective, and anything that solves convex programs computes it: the ellipsoid method, interior point methods (Ye 2008), first-order methods, and the combinatorial DPSV algorithm and Orlin's algorithm, which are guided by its optimality conditions. With equal budgets the objective is the Nash social welfare, which links Fisher markets to maximum Nash welfare, CEEI and proportional fairness.
In plain words
Each buyer brings money and likes some goods more than others. Instead of searching for prices, give the goods out so that a single score is as high as possible. The score adds up, for each buyer, her money times the logarithm of how happy she is. The logarithm means that taking from a happy buyer to help an unhappy one often raises the score, and the money weights give richer buyers more say. The best split of the goods is exactly what the buyers would choose if the right prices were posted. Those prices can be read off the best split: a good costs what the buyer who wants it most is willing to pay per unit at that split.
The problem
There are buyers and goods, with one unit of each good. Buyer has a budget and a linear utility with . Every buyer likes some good and every good is liked by some buyer. The Eisenberg-Gale program is
With a multiplier for the supply of good , the KKT conditions are
- ;
- for all , that is, ;
- .
Condition 2 says that no good gives buyer more utility per unit of money (bang per buck) than , and condition 3 says that she buys only goods that reach it. Multiplying condition 3 by and summing over gives : she spends exactly her budget. These are the equilibrium conditions of the Fisher market. The task is to find the prices and an optimal allocation , exactly.
The algorithm
The implementation solves the program by mirror ascent with the entropy on each good (mirror descent for a maximization, also called exponentiated gradient), in floating point, and then rounds to an exact answer that it certifies with a maximum flow in exact arithmetic. Here is the objective, , and .
EISENBERG-GALE(utilities u, budgets e)- 1
x_ij ← 1 / (number of buyers who like j) for every edge u_ij > 0, else 0 - 2
η ← 1 - 3
for round = 1, 2, ... do - 4
g_ij ← e_i u_ij / U_i(x) for every edge - 5
y_ij ← x_ij exp(η g_ij) / Σ_k x_kj exp(η g_kj) for every edge (normalized per good) - 6
if f(y) < f(x) + g·(y - x) - KL(y ‖ x) / η then η ← η / 2 and go to L5 - 7
x ← y; η ← 2η - 8
every 5 rounds: for δ = 10^-2, ..., 10^-14: S ← {x_ij > δ}; p ← the prices that S forces; if p passes the exact max-flow check, return p and the flow allocation
Line L5 is the closed-form maximizer of over allocations that give out each good completely. Line L6 is a backtracking test: it accepts the step only if the program's objective is at least the model that the step maximized, which makes increase in every round.
Line L8 rounds. A guessed support forces the prices: on each connected part of , every buyer gets the same bang per buck on all her edges, which fixes the ratios of the prices, and the prices of the part add up to the budgets of its buyers. The check then computes, in Fraction, the maximum bang per buck of each buyer and a maximum flow in the network source good (capacity ) buyer (only if ) sink (capacity ). The prices are accepted if they sum to and the flow has value ; then is the flow from to divided by .
Example
Three buyers and two goods: , , , budgets . Line L1 gives every buyer of each good. In the table, buyer 3 holds the same amount of both goods at every round, is the objective, and the last column is the KKT estimate of (by symmetry, has the same estimate).
| round | used | buyer 1 | buyer 3, each good | estimate of | |
|---|---|---|---|---|---|
| 0 | |||||
| 1 | 0.5 | ||||
| 2 | 1 | ||||
| 3 | 1 | ||||
| 4 | 0.5 | ||||
| 5 | 1 |
At round 5, line L8 with drops the edge and keeps . is connected; the bang per buck conditions give (from buyer 3), and the prices add up to the total budget , so . At these prices, buyer 1 spends on good 1, buyer 2 spends on good 2, and buyer 3, who is indifferent, spends on each good. The flow saturates, so the answer is certified: , , , all utilities are , and the optimal value is . The ascent itself would need many more rounds to reach this point in floating point.
Correctness
The proof is in proofs/correctness.md. It shows:
- The program solves the market. An allocation is optimal if and only if, with some prices, it is a Fisher market equilibrium, and the prices are then the KKT multipliers. Because is strictly concave, the optimal utilities are unique, and so are the prices . The allocation need not be unique.
- Each round improves the objective. Line L6 can always be met by a small enough , and when it holds, , because maximizes the model that line L6 compares with.
- The output is exact. Whatever line L8 guesses, it returns only prices that pass the max-flow check, and passing it means each buyer spends her whole budget on goods of maximum bang per buck and every good is sold. By point 1 the returned is optimal.
- It terminates. The iterates converge to an optimal allocation ; once they are close, a threshold between their distance to and the smallest positive entry of recovers the support of , which forces the equilibrium prices. This needs the smallest positive entry of to be above about , and the implementation stops with an error otherwise.
Proof: The Eisenberg-Gale program gives the Fisher equilibrium, and the certified mirror ascent returns it exactlyfull
Fix buyers with budgets and goods with one unit each, and linear utilities with . Every buyer likes some good and every good is liked by some buyer. Let be the edges, , and .
Claim 1 (Eisenberg and Gale). The program has an optimum. An allocation is optimal if and only if there are prices such that is a Fisher market equilibrium. The optimal utilities are unique, and the equilibrium prices are unique: .
Proof. The point that splits each good evenly among the buyers who like it has for all . The set is closed (on it every is bounded below by a positive number, since every other term of is bounded above) and bounded, and is continuous there, so an optimum exists. The constraints are linear, so the KKT conditions are necessary and sufficient for optimality of the concave objective: is optimal if and only if there is with
(K1) ; (K2) for all ; (K3) .
KKT implies equilibrium. By (K2), for every good, so bounds the bang per buck, and by (K3) every good that buys reaches it. Multiplying (K3) by and summing gives . A buyer with linear utility who spends her whole budget on goods of maximum bang per buck has an optimal bundle, since any bundle of cost at most gives utility at most . Every good is liked by some , so , and by (K1) it is sold completely. So is an equilibrium.
Equilibrium implies KKT. Let be an equilibrium. Every good is liked by someone, so every price is positive (a free good would be demanded without limit), and every good is sold completely, which is (K1). Buyer spends only on goods of maximum bang per buck , so . Then , with equality when ; these are (K2) and (K3). So is optimal, with multipliers .
Uniqueness. If and are both optimal with , then is feasible and, because is strictly concave, has a strictly larger objective. So is the same for all optimal . For each good , some buyer buys it, and by (K2) and (K3) .
Claim 2 (the step of line L5). For on and , the vector of line L5 is the unique maximizer of over , where , and for every ,
Proof. splits into one strictly concave function per good. Setting the derivative of the Lagrangian to gives , which is line L5; it is positive, so it is the maximizer. The first-order condition at is for a constant per good, so for , , since kills the constants. Expanding the three KL terms shows that the right side equals the same sum.
Claim 3 (line L6 and monotonicity). For each with all , line L6 accepts every below some , and can be chosen uniformly on the set . If line L6 accepts, then .
Proof. On every , and every gradient entry satisfies . By line L5, , so , and for small every point between and has . There the Hessian of in direction is with , so . By Pinsker's inequality on each good and the Cauchy-Schwarz inequality over the goods, . So line L6 holds once and is small enough for the bound on .
If line L6 accepts, then , because maximizes and .
So every iterate stays in , and the accepted steps satisfy .
Claim 4 (convergence of the iterates). In exact arithmetic, converges to an optimal allocation .
Proof. At an optimum all goods are sold (Claim 1), so the optimal allocations lie in ; let be one. By concavity, . Adding the acceptance test of line L6 and Claim 2 with gives
So is nonincreasing for every optimal , and , so . The iterates lie in a compact set, and every limit point is optimal because is continuous there. Let be a limit point, . Then (the terms with vanish, and the others are continuous at ), and since is nonincreasing in , it tends to . By Pinsker's inequality, .
Claim 5 (soundness of line L8). If line L8 returns , then is a Fisher market equilibrium, and is an optimal solution of the program.
Proof. The check accepts only positive prices with and a flow of value in the network source (capacity ) (only on edges with , the maximum bang per buck of ) sink (capacity ). Both the source arcs and the sink arcs have total capacity , so all of them are saturated. Let be the flow on divided by . Then buyer spends exactly , only on goods of maximum bang per buck, so her bundle is optimal; and good receives , so . All arithmetic is exact. By Claim 1, is optimal.
Claim 6 (completeness of line L8). Let be the limit of Claim 4 and its smallest positive entry. If , line L8 returns after finitely many rounds.
Proof. is optimal, so by Claim 1 it is an equilibrium allocation with the unique prices . Let . On each connected part of , every edge has (Claim 1, K3), so the ratios that line L8 computes along are consistent and proportional to . The buyers of spend all their money on goods of , and the goods of are paid for only by buyers of , so the prices of add up to the budgets of its buyers. Every good is in some part, since it is sold. So the prices forced by are exactly , and passes the check because the money flows of saturate the network.
Pick the threshold with and ; it exists because . By Claim 4, after some round . Then the entries of outside are below and those in are above , so . At the next round divisible by 5, line L8 tries all thresholds from down, and it returns at the latest at , by Claim 5 with a correct answer.
The proofs assume exact arithmetic for the ascent. The implementation runs the ascent in floating point, with a relative slack of in the test of line L6; this can only change which support is guessed and when, while Claim 5, which uses exact arithmetic, still guarantees that every returned answer is correct.
Complexity
A round of lines L4 to L7 costs arithmetic operations per backtracking step, and the number of backtracking steps per round is on average because doubles after each accepted step. Mirror ascent has , where is the smallest step accepted, and . This bounds the objective, not the number of rounds until the support is found, which depends on how small the positive entries of the optimum are. Each check of line L8 runs Edmonds-Karp on nodes and up to arcs, exact operations on rationals. Line L8 runs every 5 rounds with a fixed number of thresholds, so rounds take time for the mirror steps and time for the checks.
For guaranteed bounds, the program can be solved exactly in polynomial time by the ellipsoid method or by interior point methods, because its optimum is rational with polynomial bit length. The DPSV algorithm solves it combinatorially with polynomially many max-flow computations, and Orlin's algorithm in strongly polynomial time.
Properties
- Equilibrium as an optimum. The market equilibrium maximizes a global objective. Existence of the equilibrium follows at once: the feasible set is compact and has points where every .
- Unique prices and utilities, possibly many allocations. In the example the allocation is unique. With two identical buyers who both buy two goods, they can swap amounts of the two goods at the price ratio without changing their utilities, so the allocation is not unique.
- Pareto optimal and, with equal budgets, envy-free: it is the CEEI allocation and the maximum Nash welfare allocation of divisible goods.
- Rational. For rational and , the prices and some optimal allocation are rational, because they solve a linear system once the support is known.
- Beyond linear utilities. The same program, with replaced by any concave utility that is homogeneous of degree one (for example CES or Leontief), still captures the Fisher equilibrium (Eisenberg 1961).
Variants and improvements
- Homogeneous utilities. Eisenberg (1961) proved the program for all concave, homogeneous of degree one utilities. For utilities that are not homogeneous, such as additively separable concave ones, no such program is known in general, and SPLC Fisher markets are PPAD-hard; see PPAD-hardness of market equilibria.
- Shmyrev's program. A different convex program in the bids (money spent) has the same equilibria for linear utilities; mirror descent on it is proportional response dynamics.
- Combinatorial algorithms. The DPSV algorithm raises prices while keeping KKT conditions 2 and 3 for the current equality graph, and Orlin's algorithm adds scaling to make the bound strongly polynomial.
- Nash bargaining. With equal budgets the objective is the logarithm of the Nash product; see the Nash bargaining solution and proportional fairness, where Kelly used the same objective for bandwidth.
When to use it
Use the program to prove facts about Fisher markets (existence, uniqueness of prices, efficiency) and to compute equilibria with an off-the-shelf convex solver when an approximate answer is enough. Use the rounding and max-flow check of line L8 when an exact answer is needed and the market is small. For large linear markets with exact answers, use a combinatorial algorithm; for distributed settings, use proportional response dynamics.
Pitfalls
- Skipping the exact check of line L8 and returning the rounded support or the float prices can give a wrong answer: a threshold that is too large drops a needed edge and splits a part of , and the prices it forces are then off.
- A fixed step in line L5 without the test of line L6 can fail: the gradient is huge when is small, and a large step can move almost all of every good away from a buyer, so that the objective falls.
- A zero start on an edge in line L1 stays zero forever, because line L5 is multiplicative. Every edge with must start positive.
- If some good is liked by no buyer, its supply constraint has multiplier and the good is left unsold; the reading of multipliers as positive prices assumes every good is liked.
- Reading prices from the dual is only right for an optimal . At a non-optimal point, the estimates need not add up to the total budget.
Implementations
Each implementation follows the pseudocode above. A comment @line links a line of code to a line of the pseudocode. Point at a line of the pseudocode to see the matching code. The build runs the native tests of each language.
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/eisenberg-gale-program/. The authors are listed in prov/R0QFZC.jsonl.
"""Solve the Eisenberg-Gale convex program of a linear Fisher market and read off the prices.
Buyers are 0, ..., n - 1 and goods are 0, ..., m - 1, with one unit of each good. u[i][j] >= 0 is
the utility of buyer i for all of good j and e[i] > 0 is her budget. Every buyer likes some good
and every good is liked by some buyer. The program is
maximize sum_i e_i log(sum_j u_ij x_ij)
subject to sum_i x_ij <= 1 for every good j, x >= 0.
The solver runs mirror ascent with the entropy on each good (exponentiated gradient) in floating
point, with a backtracking step size. From time to time it rounds: it guesses the support of the
optimum, computes the exact prices that this support forces, and accepts them only if they pass
an exact check of the equilibrium conditions (the KKT conditions of the program) in Fractions.
"""
import math
from collections import deque
from fractions import Fraction
def objective(u, e, x):
n, m = len(u), len(u[0])
return sum(e[i] * math.log(sum(u[i][j] * x[i][j] for j in range(m))) for i in range(n))
def max_flow(num_nodes, cap, s, t):
"""Edmonds-Karp maximum flow on exact capacities; returns the value and the flow on each arc."""
res, adj = {}, [[] for _ in range(num_nodes)]
for (a, b), c in cap.items():
adj[a].append(b)
adj[b].append(a)
res[(a, b)] = c
res.setdefault((b, a), Fraction(0))
value = Fraction(0)
while True:
prev, queue = {s: None}, deque([s])
while queue and t not in prev:
a = queue.popleft()
for b in adj[a]:
if b not in prev and res[(a, b)] > 0:
prev[b] = a
queue.append(b)
if t not in prev:
return value, {arc: c - res[arc] for arc, c in cap.items()}
path, b = [], t
while prev[b] is not None:
path.append((prev[b], b))
b = prev[b]
push = min(res[arc] for arc in path)
for a, b in path:
res[(a, b)] -= push
res[(b, a)] += push
value += push
def certify(u, e, p):
"""If p are equilibrium prices, return the exact allocation x[i][j] (amounts of goods);
else return None. The test is a maximum flow on the edges of maximum bang per buck."""
n, m = len(u), len(u[0])
if any(q is None or q <= 0 for q in p):
return None
alpha = [max(Fraction(u[i][j]) / p[j] for j in range(m)) for i in range(n)]
src, snk = 0, n + m + 1
cap = {(src, 1 + j): p[j] for j in range(m)}
for i in range(n):
cap[(1 + m + i, snk)] = e[i]
for j in range(m):
if u[i][j] > 0 and Fraction(u[i][j]) / p[j] == alpha[i]:
cap[(1 + j, 1 + m + i)] = sum(e) + 1
if sum(p) != sum(e):
return None
value, flow = max_flow(snk + 1, cap, src, snk)
if value != sum(e):
return None
return [[flow.get((1 + j, 1 + m + i), Fraction(0)) / p[j] for j in range(m)] for i in range(n)]
def prices_from_support(u, e, support):
"""The prices forced by a set of spending edges: on each connected part, a buyer gets the same
bang per buck on all her edges, and the prices add up to the money of the part's buyers."""
n, m = len(u), len(u[0])
nbr = {}
for i, j in support:
nbr.setdefault(("b", i), []).append(("g", j))
nbr.setdefault(("g", j), []).append(("b", i))
rel, p = {}, [None] * m
for start in [("g", j) for j in range(m)]:
if start in rel or start not in nbr:
continue
rel[start] = Fraction(1)
comp, stack = [start], [start]
while stack:
a = stack.pop()
for b in nbr[a]:
i, j = (a[1], b[1]) if a[0] == "b" else (b[1], a[1])
val = Fraction(u[i][j]) / rel[a] # price from bang, or bang from price
if b not in rel:
rel[b] = val
comp.append(b)
stack.append(b)
elif rel[b] != val:
return None
goods = [a for a in comp if a[0] == "g"]
money = sum(e[a[1]] for a in comp if a[0] == "b")
scale = money / sum(rel[a] for a in goods)
for a in goods:
p[a[1]] = rel[a] * scale
return p
def eisenberg_gale(u, e, max_rounds=200000, check_every=5):
"""Return (p, x): the exact equilibrium prices and an exact optimal allocation of the program."""
n, m = len(u), len(u[0])
e = [Fraction(b) for b in e]
ef = [float(b) for b in e]
edges = [(i, j) for i in range(n) for j in range(m) if u[i][j] > 0]
x = [[0.0] * m for _ in range(n)]
for j in range(m): # @line L1
likers = [i for i in range(n) if u[i][j] > 0]
for i in likers:
x[i][j] = 1.0 / len(likers)
eta = 1.0 # @line L2
f = objective(u, ef, x)
for rnd in range(1, max_rounds + 1): # @line L3
util = [sum(u[i][j] * x[i][j] for j in range(m)) for i in range(n)]
g = [[ef[i] * u[i][j] / util[i] for j in range(m)] for i in range(n)] # @line L4
while True:
y = [[0.0] * m for _ in range(n)]
for j in range(m): # @line L5
top = max(eta * g[i][j] for i, jj in edges if jj == j)
w = {i: x[i][j] * math.exp(eta * g[i][j] - top) for i, jj in edges if jj == j}
total = sum(w.values())
for i in w:
y[i][j] = w[i] / total
if min(sum(u[i][j] * y[i][j] for j in range(m)) for i in range(n)) <= 0:
eta /= 2
continue
fy = objective(u, ef, y)
lin = sum(g[i][j] * (y[i][j] - x[i][j]) for i, j in edges)
kl = sum(y[i][j] * math.log(y[i][j] / x[i][j]) for i, j in edges if y[i][j] > 0)
if fy >= f + lin - kl / eta - 1e-12 * abs(f): # @line L6
break
eta /= 2
x, f, eta = y, fy, eta * 2 # @line L7
if rnd % check_every == 0:
for k in range(2, 15): # @line L8
support = [(i, j) for i, j in edges if x[i][j] > 10.0 ** (-k)]
p = prices_from_support(u, e, support)
if p is not None and None not in p:
exact = certify(u, e, p)
if exact is not None:
return p, exact
raise RuntimeError("no exact certificate found")
test_eisenberg_gale_program.py 131 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/eisenberg-gale-program/. The authors are listed in prov/R0QFZC.jsonl.
import math
import random
import unittest
from fractions import Fraction
from itertools import combinations
from eisenberg_gale_program import eisenberg_gale, objective, prices_from_support
# The example of the page: 3 buyers and 2 goods.
EXAMPLE_U = [[2, 1], [1, 2], [1, 1]]
EXAMPLE_E = [1, 1, 2]
def is_equilibrium(u, e, p, x):
"""Exact KKT check, with x in amounts of goods: positive prices, every good sold out, every
buyer spends exactly her budget and only on goods of maximum bang per buck."""
n, m = len(u), len(u[0])
if any(q <= 0 for q in p):
return False
for j in range(m):
if sum(x[i][j] for i in range(n)) != 1:
return False
for i in range(n):
best = max(Fraction(u[i][j]) / p[j] for j in range(m))
if sum(p[j] * x[i][j] for j in range(m)) != e[i]:
return False
for j in range(m):
if x[i][j] < 0 or (x[i][j] > 0 and Fraction(u[i][j]) / p[j] != best):
return False
return True
def brute_force_prices(u, e):
"""Every price vector forced by some set of edges that passes the check with a forest flow."""
n, m = len(u), len(u[0])
all_edges = [(i, j) for i in range(n) for j in range(m) if u[i][j] > 0]
found = set()
for k in range(1, len(all_edges) + 1):
for H in combinations(all_edges, k):
if k > n + m - 1:
continue
p = prices_from_support(u, e, H)
if p is None or None in p:
continue
x = forest_flow(n, m, e, p, H)
if x is not None and is_equilibrium(u, e, p, x):
found.add(tuple(p))
return found
def forest_flow(n, m, e, p, H):
left = set(H)
need = {("b", i): Fraction(e[i]) for i in range(n)}
need.update({("g", j): p[j] for j in range(m)})
x = [[Fraction(0)] * m for _ in range(n)]
while left:
deg = {}
for i, j in left:
deg[("b", i)] = deg.get(("b", i), 0) + 1
deg[("g", j)] = deg.get(("g", j), 0) + 1
leaf = next((v for v, d in deg.items() if d == 1), None)
if leaf is None:
return None
i, j = next(ed for ed in left if ("b", ed[0]) == leaf or ("g", ed[1]) == leaf)
if need[leaf] < 0:
return None
x[i][j] = need[leaf] / p[j]
need[("b", i)] -= need[leaf]
need[("g", j)] -= p[j] * x[i][j]
left.discard((i, j))
return x if all(v == 0 for v in need.values()) else None
def random_market(rng, n, m):
while True:
u = [[rng.choice([0, 1, 2, 3, 4]) for _ in range(m)] for _ in range(n)]
if all(any(r) for r in u) and all(any(u[i][j] for i in range(n)) for j in range(m)):
return u, [rng.randint(1, 3) for _ in range(n)]
class TestEisenbergGale(unittest.TestCase):
def test_check_value(self):
p, x = eisenberg_gale([[2, 1], [1, 2]], [1, 1])
self.assertEqual(p, [1, 1])
self.assertEqual(x, [[1, 0], [0, 1]])
def test_example(self):
p, x = eisenberg_gale(EXAMPLE_U, EXAMPLE_E)
self.assertEqual(p, [2, 2])
self.assertTrue(is_equilibrium(EXAMPLE_U, EXAMPLE_E, p, x))
# Buyer 1 buys only good 1 and buyer 2 only good 2; buyer 3 takes the rest.
self.assertEqual(x[0], [Fraction(1, 2), 0])
self.assertEqual(x[1], [0, Fraction(1, 2)])
def test_random_against_brute_force(self):
rng = random.Random(3)
for _ in range(25):
n, m = rng.randint(1, 3), rng.randint(1, 3)
u, e = random_market(rng, n, m)
p, x = eisenberg_gale(u, e)
self.assertTrue(is_equilibrium(u, e, p, x))
self.assertEqual(brute_force_prices(u, e), {tuple(p)})
def test_optimal_against_random_points(self):
rng = random.Random(5)
for _ in range(10):
u, e = random_market(rng, 3, 3)
p, x = eisenberg_gale(u, e)
best = objective(u, e, [[float(v) for v in row] for row in x])
for _ in range(200):
y = [[rng.random() * (u[i][j] > 0) for j in range(3)] for i in range(3)]
for j in range(3):
s = sum(y[i][j] for i in range(3))
for i in range(3):
y[i][j] /= s
if all(sum(u[i][j] * y[i][j] for j in range(3)) > 0 for i in range(3)):
self.assertLessEqual(objective(u, e, y), best + 1e-9)
def test_identical_buyers(self):
# Prices are unique, but the allocation is not: any split that spends both budgets works.
p, x = eisenberg_gale([[1, 1], [1, 1]], [1, 1])
self.assertEqual(p, [1, 1])
self.assertTrue(is_equilibrium([[1, 1], [1, 1]], [1, 1], p, x))
self.assertTrue(math.isclose(objective([[1, 1], [1, 1]], [1, 1], [[1, 0], [0, 1]]), 0.0))
if __name__ == "__main__":
unittest.main()
History
Eisenberg and Gale (1959) studied the pari-mutuel method of betting, in which bettors with budgets and subjective probabilities place bets on horses and the odds are set by the money bet. They showed that the equilibrium odds come from maximizing , which gives the existence and uniqueness of the equilibrium odds. Eisenberg (1961) extended the program to homogeneous utilities. Computer science took it up in the 2000s: Devanur, Papadimitriou, Saberi and Vazirani (journal version 2008) gave a combinatorial primal-dual algorithm guided by its KKT conditions, Ye (2008) gave interior point algorithms, and Orlin (2010) gave a strongly polynomial algorithm. Later work on fair division uses the same objective as the maximum Nash welfare rule.
References
- Edmund Eisenberg and David Gale, Consensus of subjective probabilities: the pari-mutuel method, Annals of Mathematical Statistics 30(1), 165-168 (1959), the whole paper (the convex program whose solution gives the equilibrium odds of a pari-mutuel market)
- Edmund Eisenberg, Aggregation of utility functions, Management Science 7(4), 337-350 (1961), the whole paper (the program for utilities that are homogeneous of degree one)
- Noam Nisan, Tim Roughgarden, Eva Tardos and Vijay V. Vazirani (eds.), Algorithmic Game Theory, Cambridge University Press, 2007, Chapter 5, Vijay V. Vazirani, Combinatorial algorithms for market equilibria (the program and its KKT conditions), and Chapter 6, Bruno Codenotti and Kasturi Varadarajan, Computation of market equilibria by convex programming
- Nikhil R. Devanur, Christos H. Papadimitriou, Amin Saberi and Vijay V. Vazirani, Market equilibrium via a primal-dual algorithm for a convex program, Journal of the ACM 55(5), Article 22 (2008), the whole paper (a combinatorial algorithm for the program, guided by its KKT conditions)
- Yinyu Ye, A path to the Arrow-Debreu competitive market equilibrium, Mathematical Programming 111(1), 315-348 (2008), the whole paper (interior point algorithms for the Fisher and exchange models)
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.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H1 sketch |
|
| Lean | L0 no Lean part |
|
| Code (python) | I0 not checked yet |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag R0QFZC Edit this page History Report an error Markdown