Algorithmcore
Foschini-Miljanic power control
Also called distributed power control.
Each link scales its power by target SINR over measured SINR. If the targets are feasible (spectral radius of the normalized gain matrix below 1), this converges to the least powers that meet them.
- Time
- O(T K^2) worst
- Space
- O(K) extra
- Where
- K = the number of links; T = the number of iterations
- Model
- Real RAM
- Properties
- converges iff feasibledeterministicdistributedneeds only local measurements
- Evidence
- Proof sketchCode in 1 languages
- Origin
- Gerard J. Foschini, Zoran Miljanic, 1993
Foschini-Miljanic power control is an iterative algorithm that lets radio links that share a band reach their SINR targets with the least transmit power. Each link measures its own signal to interference plus noise ratio (SINR) and multiplies its power by the target SINR divided by the measured SINR. No link needs the gains of the others, so the method is fully distributed. If the targets can be met at all, which is the case exactly when the spectral radius of the normalized gain matrix is below 1 (see the Perron-Frobenius theorem), the powers converge geometrically to the unique smallest power vector that meets every target; if not, the powers grow without bound. The iteration is the linear case of the fixed-point theorem on standard interference functions. It holds each link at a fixed target, while max-min SINR power control asks for the largest common target and power control by geometric programming optimizes a rate objective.
In plain words
Several radios talk at the same time on the same frequency. Each one hears the others as noise. Each link has a quality goal, a ratio of wanted signal to unwanted signal. If one link turns its power up, it reaches its goal, but it also hurts the others, which then turn up too.
The rule is short. Each link looks at the quality it has now. If the quality is half the goal, it doubles its power; if it is twice the goal, it halves its power. It acts as if the others will not change. They do change, but the steps get smaller each round. When all the goals can be met together, the powers settle at the lowest values that meet them. When the goals ask for too much, the powers keep rising, and the system must drop a link or lower a goal.
The problem
There are links. Transmitter uses the power . The power gain from transmitter to receiver is , with the gain of link , and receiver has the noise power . Powers and noise are in watts (or all in milliwatts), and gains have no unit. Each receiver treats the other signals as noise, so its SINR is
Link wants for a target , for example the SNR that its modulation and code need. Multiply out: the targets hold exactly when entrywise, where
is the normalized gain matrix; it is nonnegative. A power vector with is feasible. The problem asks for the feasible vector with the least power, and for a way to reach it in which each link uses only what its own receiver measures.
The algorithm
Each link keeps its power . The step size is in ; the original law of Foschini and Miljanic has as the best universal choice.
FOSCHINI-MILJANIC(G, γ, σ, p(0), β, T, ε)- 1
for t ← 0 to T - 1 do - 2
for each link i, in parallel, do - 3
I_i ← Σ_{j≠i} G_ij p_j(t) + σ_i ▷ measured by receiver i - 4
p_i(t+1) ← (1 - β) p_i(t) + β γ_i I_i / G_ii - 5
if max_i |p_i(t+1) - p_i(t)| ≤ ε max_i p_i(t+1) then return p(t+1) - 6
return p(T)
Line L4 is the rule "multiply the power by target over measured SINR": when , . Written with , it also works for a link that starts at zero power. In vector form, one round is
With this is , the Jacobi iteration for the linear system , computed with no central controller. In a real system the receiver measures or the SINR and sends one number back to its transmitter, and line L5 is replaced by running the loop for as long as the links are active.
Example
Three links share one channel. The gains, the noise of 0.1 mW at each receiver and the common target (3.01 dB) give
The spectral radius of is , below 1, so the targets are feasible. Solving gives the least powers mW. With from :
| 1 | 0.2 | 0.2 | 0.2 | 1.2500 | 1.2500 | 1.4286 |
| 2 | 0.32 | 0.32 | 0.28 | 1.7021 | 1.6667 | 1.7073 |
| 3 | 0.376 | 0.384 | 0.328 | 1.8431 | 1.8462 | 1.8636 |
| 4 | 0.408 | 0.416 | 0.352 | 1.9245 | 1.9188 | 1.9298 |
| 5 | 0.424 | 0.4336 | 0.3648 | 1.9601 | 1.9595 | 1.9638 |
The powers rise in every entry, and the SINRs rise toward 2. The error shrinks by about per round, and the stopping test of line L5 with stops after 33 rounds, at to 9 digits.
Since is linear in the common target, . So a common target is feasible exactly when (5.81 dB). At the least powers are already mW, and at no power vector works: the iteration from zero grows past mW within 400 rounds. The largest common target is the value that max-min SINR power control finds for this channel without noise.
Correctness
Claim. Let , and .
- If , then is positive, it meets every target with equality, it is the least feasible vector ( entrywise for every feasible ), and from every start . The error satisfies for each .
- If , then no feasible vector exists, and from the total power grows without bound.
Key steps. For , the Neumann series converges to , so . A feasible satisfies ; substituting this bound into itself times gives , so . The error obeys with , and every eigenvalue of has the form with , so . For , the Perron-Frobenius theorem gives a nonzero with . A feasible would give , which is impossible for and . The full proof is in the proofs folder.
Proof: The Foschini-Miljanic iteration converges to the least feasible powers exactly when the spectral radius is below 1full
There are links with gains , , noise powers and targets . Put for , and . Then and entrywise. For ,
and the same holds with equality on both sides. So meets all targets exactly when ; such a is feasible. For , lines L2 to L4 compute with
All inequalities between vectors are entrywise. is the spectral radius.
Lemma 1 (monotone map). , so implies .
Proof. and , so every entry of is nonnegative, and .
Lemma 2 (fixed points). A vector is a fixed point of exactly when , that is, by (1), when meets every target with equality.
Proof. means , and .
Theorem 1 (feasible case). Let . Then:
- exists, , and meets every target with equality.
- Every feasible satisfies .
- For every , . For every with there is a constant with , and .
Proof. (1) Since , the Neumann series converges and equals . Every term is nonnegative, so . From we get , and Lemma 2 gives equality in every target.
(2) Let be feasible, so . Since , we may multiply this by and keep the order: . By induction on ,
where the last step uses (a feasible is ). Let : .
(3) Put . Since , , so . Each eigenvalue of is for an eigenvalue of , so , which is below 1 because and . By Gelfand's formula , so for there is with for all . Pick ; then .
Theorem 2 (infeasible case). Let . Then no feasible vector exists, and the iterates from increase in every entry and .
Proof. By the Perron-Frobenius theorem for nonnegative matrices, applied to , there is , , with . Suppose is feasible. Then and
so . The right side is positive, since , and . The left side is at most , since and . This is a contradiction, so no feasible vector exists.
Now start at . Then , and if , Lemma 1 gives . So the sequence increases in every entry. If it were bounded, it would converge to a finite limit , and since is continuous, . By Lemma 2, would meet every target, so it would be feasible, which we have just ruled out. Hence the sequence is unbounded, and since it is nonnegative and increasing, .
Corollary (monotone convergence). Let . From the iterates increase to and stay below it; from a feasible they decrease to and stay feasible.
Proof. From and Lemma 1, , and the increase follows as in Theorem 2. If is feasible, then , so ; Lemma 1 and induction give . Also whenever , because is a convex combination of and , both ; and then by and . So each iterate is feasible. Theorem 1 gives the limit.
The algorithm. Lines L1 to L4 compute , because line L3 computes and line L4 sets . Line L5 returns an iterate once the change in one round is at most times the largest power, and line L6 returns . By Theorem 1, when the returned vector tends to as and : near the fixed point the error is at most the change in one round divided by in a norm in which contracts by . By Theorem 2, when no returned vector meets every target, and from the powers grow without bound.
Complexity
In the real RAM, one round of lines L2 to L4 costs arithmetic operations when one computer simulates all links, because each interference sum has terms. In a network, each link does work per round, since its receiver measures as one number, and one number per round goes back over the feedback channel. The space is besides the gains.
The number of rounds is not fixed. By the claim, the error falls like with when is irreducible, so about rounds reduce the error by the factor . This number grows without bound as the targets approach the edge of the feasible region, where . For rounds the simulated time is in the worst case. A central controller that knows can instead solve by Gaussian elimination in time and test feasibility at the same time.
Properties
- Distributed. Link uses only , and the measured (or, for , only its measured SINR). Nobody needs the matrix .
- Least power. The limit is the entrywise smallest feasible vector, so no link uses more power than it must, and the interference to everyone is as low as possible.
- Monotone. From the powers increase in every entry at each round; from a feasible start they decrease. This follows from .
- Universal step. For each the iteration converges whenever the targets are feasible, whatever the gains. Foschini and Miljanic showed that is the largest value with this property: for two links and some gains, every diverges although the targets are feasible.
- Asynchronous. The fixed point is also reached when links update at different times with old measurements, as long as each link keeps updating; Yates proved this for all standard interference functions.
Variants and improvements
- Power limits. Replace line L4 by . The map is still a standard interference function, so the iteration converges to its unique fixed point. If the targets are not feasible within the limits, some links stay at below their target.
- Admission and active link protection. A new link enters at low power and ramps up, while links that already meet their targets scale their targets so that they stay protected (Bambos, Chen and Pottie 2000). A link that cannot reach its target after a time leaves.
- Up-link and base station choice. The same rule with the gains of the up-link works there. If each mobile also picks the base station with the least needed power in each round, the map is still a standard interference function (Yates 1995).
- Fixed steps. Cellular systems send a one-bit command each slot, "up by 1 dB" or "down by 1 dB", which moves the power toward the target in dB with a fixed step. This is a quantized form of the same loop; it oscillates around the target by one step.
- Faster solves. A Gauss-Seidel order, where each link uses the newest powers of the others, converges at least as fast for nonnegative . It needs a fixed order of updates.
When to use it
Use it when each link has a fixed SINR target, for example a voice call with a fixed rate, and the network has no central controller that knows all gains. It is the classic inner loop of power control in CDMA systems, where the near-far problem makes power control necessary. When the goal is the best common SINR, use max-min SINR power control; when the rates themselves are to be chosen, use power control by geometric programming or a weighted sum rate method.
Pitfalls
- Infeasible targets. If , every link raises its power at each round, and the powers only stop at the hardware limits. A system must check feasibility, for example by watching for links that stay at their limit, and remove a link or lower the targets.
- Near the edge. As , the least powers grow like and the number of rounds grows like . Targets that are feasible on paper can be too costly in practice.
- Time-varying gains. The analysis assumes fixed gains. If the gains change faster than the loop converges, the powers track a moving target with a lag, and the least-power property no longer holds at each moment.
- Step above 1. An aggressive gain can diverge for feasible targets. Keep .
- SINR in dB. The update is multiplicative in linear units: . In dB it is ; adding the difference in linear units is wrong.
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/foschini-miljanic-power-control/. The authors are listed in prov/K8XR5H.jsonl.
"""Foschini-Miljanic distributed power control.
There are K links. G[i][j] >= 0 is the power gain from transmitter j to
receiver i, so G[i][i] > 0 is the gain of link i. Receiver i has the noise
power noise[i] > 0, and link i wants the SINR target gamma[i] > 0. With the
powers p, receiver i measures
SINR_i = G[i][i] p[i] / (sum over j != i of G[i][j] p[j] + noise[i]).
Each link sets p_i <- (1 - beta) p_i + beta (gamma_i / SINR_i) p_i, which is
p_i <- (1 - beta) p_i + beta gamma_i I_i / G[i][i] with I_i the interference
plus noise that receiver i measures. In matrix form this is
p <- (1 - beta) p + beta (F p + u) with F[i][j] = gamma_i G[i][j] / G[i][i]
for j != i, F[i][i] = 0, and u[i] = gamma_i noise[i] / G[i][i]. The iteration
converges from every start, for every beta in (0, 1], exactly when the
spectral radius of F is below 1, and then its limit is the smallest power
vector that meets all the targets.
"""
import random
def normalized_gain(g: list[list[float]], gamma: list[float], noise: list[float]) -> tuple[list[list[float]], list[float]]:
"""F[i][j] = gamma_i G[i][j] / G[i][i] (j != i, F[i][i] = 0) and u[i] = gamma_i noise_i / G[i][i]."""
k = len(g)
f = [[0.0 if i == j else gamma[i] * g[i][j] / g[i][i] for j in range(k)] for i in range(k)]
u = [gamma[i] * noise[i] / g[i][i] for i in range(k)]
return f, u
def interference(g: list[list[float]], noise: list[float], p: list[float], i: int) -> float:
"""The interference plus noise at receiver i: sum over j != i of G[i][j] p[j], plus noise[i]."""
return sum(g[i][j] * p[j] for j in range(len(p)) if j != i) + noise[i]
def sinr(g: list[list[float]], noise: list[float], p: list[float]) -> list[float]:
"""The SINR of each link for the powers p."""
return [g[i][i] * p[i] / interference(g, noise, p, i) for i in range(len(p))]
def foschini_miljanic(
g: list[list[float]],
gamma: list[float],
noise: list[float],
p0: list[float],
beta: float = 1.0,
iters: int = 1000,
tol: float = 1e-12,
) -> tuple[list[float], int]:
"""Run the synchronous iteration from p0. Return the powers and the number of steps done."""
if not 0.0 < beta <= 1.0:
raise ValueError("beta must be in (0, 1]")
p = list(p0)
k = len(p)
for t in range(iters): # @line L1
q = [0.0] * k
for i in range(k): # @line L2
meas = interference(g, noise, p, i) # @line L3
q[i] = (1.0 - beta) * p[i] + beta * gamma[i] * meas / g[i][i] # @line L4
change = max(abs(a - b) for a, b in zip(q, p))
p = q
if change <= tol * max(p): # @line L5
return p, t + 1
return p, iters # @line L6
def foschini_miljanic_async(
g: list[list[float]],
gamma: list[float],
noise: list[float],
p0: list[float],
rng: random.Random,
updates: int,
) -> list[float]:
"""Asynchronous form: at each step one link, chosen at random, applies line L4 with beta = 1."""
p = list(p0)
k = len(p)
for _ in range(updates):
i = rng.randrange(k)
p[i] = gamma[i] * interference(g, noise, p, i) / g[i][i]
return p
def solve_linear(a: list[list[float]], b: list[float]) -> list[float] | None:
"""Solve a x = b by Gaussian elimination with partial pivoting; None if a is singular."""
n = len(a)
m = [list(map(float, row)) + [float(b[i])] for i, row in enumerate(a)]
for c in range(n):
piv = max(range(c, n), key=lambda r: abs(m[r][c]))
if abs(m[piv][c]) < 1e-300:
return None
m[c], m[piv] = m[piv], m[c]
for r in range(c + 1, n):
fac = m[r][c] / m[c][c]
if fac:
for k in range(c, n + 1):
m[r][k] -= fac * m[c][k]
x = [0.0] * n
for r in range(n - 1, -1, -1):
x[r] = (m[r][n] - sum(m[r][k] * x[k] for k in range(r + 1, n))) / m[r][r]
return x
def target_powers(g: list[list[float]], gamma: list[float], noise: list[float]) -> list[float] | None:
"""The fixed point p* = (I - F)^(-1) u if the targets are feasible, else None.
For u > 0, a positive solution of (I - F) p = u exists exactly when the
spectral radius of F is below 1, so this is also the feasibility test.
"""
f, u = normalized_gain(g, gamma, noise)
k = len(u)
a = [[(1.0 if i == j else 0.0) - f[i][j] for j in range(k)] for i in range(k)]
p = solve_linear(a, u)
if p is None or min(p) <= 0.0:
return None
return p
def spectral_radius(f: list[list[float]], iters: int = 5000) -> float:
"""The spectral radius of a nonnegative irreducible matrix F, by power iteration on I + F.
I + F is primitive when F is irreducible, and rho(I + F) = 1 + rho(F).
"""
k = len(f)
x = [1.0] * k
lam = 0.0
for _ in range(iters):
y = [x[i] + sum(f[i][j] * x[j] for j in range(k)) for i in range(k)]
s = max(y)
y = [v / s for v in y]
if max(abs(a - b) for a, b in zip(x, y)) < 1e-15:
x, lam = y, s
break
x, lam = y, s
return lam - 1.0
test_foschini_miljanic_power_control.py 146 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/foschini-miljanic-power-control/. The authors are listed in prov/K8XR5H.jsonl.
import random
import pytest
from foschini_miljanic_power_control import (
foschini_miljanic,
foschini_miljanic_async,
normalized_gain,
sinr,
solve_linear,
spectral_radius,
target_powers,
)
G = [[1.0, 0.1, 0.2], [0.2, 1.0, 0.1], [0.1, 0.1, 1.0]]
NOISE = [0.1, 0.1, 0.1]
def random_case(rng: random.Random, k: int, cross: float):
g = [[rng.uniform(0.5, 1.5) if i == j else cross * rng.random() for j in range(k)] for i in range(k)]
noise = [rng.uniform(0.05, 0.2) for _ in range(k)]
gamma = [rng.uniform(0.5, 3.0) for _ in range(k)]
return g, gamma, noise
def test_page_example() -> None:
p_star = target_powers(G, [2.0] * 3, NOISE)
assert p_star is not None
assert all(abs(a - b) < 1e-12 for a, b in zip(p_star, [42 / 95, 43 / 95, 36 / 95]))
p, _ = foschini_miljanic(G, [2.0] * 3, NOISE, [0.0] * 3, iters=1)
assert all(abs(a - 0.2) < 1e-15 for a in p)
p, _ = foschini_miljanic(G, [2.0] * 3, NOISE, p, iters=1)
assert all(abs(a - b) < 1e-12 for a, b in zip(p, [0.32, 0.32, 0.28]))
p, steps = foschini_miljanic(G, [2.0] * 3, NOISE, [0.0] * 3, tol=1e-9)
assert steps < 60
assert all(abs(a - b) < 1e-8 for a, b in zip(p, p_star))
f, _ = normalized_gain(G, [2.0] * 3, NOISE)
assert abs(spectral_radius(f) - 0.525473017) < 1e-8
def test_threshold_of_feasibility() -> None:
f, _ = normalized_gain(G, [1.0] * 3, NOISE)
gmax = 1.0 / spectral_radius(f)
assert abs(gmax - 3.806091) < 1e-5
assert target_powers(G, [0.999 * gmax] * 3, NOISE) is not None
assert target_powers(G, [1.001 * gmax] * 3, NOISE) is None
assert target_powers(G, [4.0] * 3, NOISE) is None
def test_fixed_point_meets_targets_with_equality() -> None:
rng = random.Random(11)
for _ in range(200):
k = rng.randint(2, 6)
g, gamma, noise = random_case(rng, k, 0.3)
p_star = target_powers(g, gamma, noise)
if p_star is None:
continue
s = sinr(g, noise, p_star)
assert all(abs(a - b) <= 1e-9 * b for a, b in zip(s, gamma))
p, _ = foschini_miljanic(g, gamma, noise, [rng.uniform(0, 10) for _ in range(k)], iters=20000, tol=1e-14)
assert all(abs(a - b) <= 1e-8 * b for a, b in zip(p, p_star))
def test_monotone_from_zero_and_from_above() -> None:
rng = random.Random(5)
for _ in range(50):
g, gamma, noise = random_case(rng, 4, 0.3)
p_star = target_powers(g, gamma, noise)
if p_star is None:
continue
p = [0.0] * 4
q = [3.0 * v for v in p_star]
for _ in range(100):
p2, _ = foschini_miljanic(g, gamma, noise, p, iters=1)
q2, _ = foschini_miljanic(g, gamma, noise, q, iters=1)
assert all(b >= a - 1e-15 for a, b in zip(p, p2))
assert all(b <= a + 1e-12 for a, b in zip(q, q2))
assert all(a <= s + 1e-12 and s <= b + 1e-12 for a, s, b in zip(p2, p_star, q2))
p, q = p2, q2
def test_least_powers() -> None:
# Every power vector that meets all targets is at least p* in each entry.
rng = random.Random(7)
g, gamma, noise = G, [2.0] * 3, NOISE
p_star = target_powers(g, gamma, noise)
hits = 0
for _ in range(20000):
q = [rng.uniform(0.0, 2.0) for _ in range(3)]
if all(s >= t for s, t in zip(sinr(g, noise, q), gamma)):
hits += 1
assert all(a >= b - 1e-12 for a, b in zip(q, p_star))
assert hits > 100
def test_infeasible_diverges() -> None:
gamma = [4.0] * 3
p, _ = foschini_miljanic(G, gamma, NOISE, [0.0] * 3, iters=400)
assert min(p) > 1e6
rng = random.Random(3)
for _ in range(100):
g, gam, noise = random_case(rng, 3, 1.5)
if target_powers(g, gam, noise) is None:
f, _ = normalized_gain(g, gam, noise)
assert spectral_radius(f) >= 1.0 - 1e-9
def test_rate_is_the_spectral_radius() -> None:
gamma = [3.5] * 3
p_star = target_powers(G, gamma, NOISE)
f, _ = normalized_gain(G, gamma, NOISE)
rho = spectral_radius(f)
p = [0.0] * 3
errs = []
for _ in range(300):
p, _ = foschini_miljanic(G, gamma, NOISE, p, iters=1)
errs.append(max(abs(a - b) for a, b in zip(p, p_star)))
ratio = errs[201] / errs[200]
assert abs(ratio - rho) < 1e-3
@pytest.mark.parametrize("beta", [0.25, 0.5, 1.0])
def test_relaxed_and_asynchronous(beta: float) -> None:
rng = random.Random(int(beta * 100))
for _ in range(12):
g, gamma, noise = random_case(rng, 5, 0.25)
p_star = target_powers(g, gamma, noise)
if p_star is None:
continue
p, _ = foschini_miljanic(g, gamma, noise, [1.0] * 5, beta=beta, iters=50000, tol=1e-14)
assert all(abs(a - b) <= 1e-7 * b for a, b in zip(p, p_star))
if beta == 1.0:
q = foschini_miljanic_async(g, gamma, noise, [5.0] * 5, rng, 20000)
assert all(abs(a - b) <= 1e-7 * b for a, b in zip(q, p_star))
def test_spectral_radius_two_links() -> None:
# F = [[0, a], [b, 0]] has eigenvalues +- sqrt(ab); power iteration on F alone would oscillate.
f = [[0.0, 0.3], [0.8, 0.0]]
assert abs(spectral_radius(f) - (0.24) ** 0.5) < 1e-9
assert solve_linear([[0.0, 0.0], [0.0, 1.0]], [1.0, 1.0]) is None
with pytest.raises(ValueError):
foschini_miljanic(G, [2.0] * 3, NOISE, [0.0] * 3, beta=0.0)
History
Zander (1992) studied the best common SINR without noise and found it from the Perron eigenvalue of the normalized gain matrix, but his iteration did not fix the absolute power level. Foschini and Miljanic (1993) included the receiver noise, fixed the target SINR, and gave a law that each link can run with only local measurements. They stated it first as a differential equation and then as a difference equation with the step , and proved exponentially fast convergence whenever a central controller could meet the targets. Yates (1995) showed that the proof needs only three properties of the map from powers to required powers, and so covered power limits, base station choice and asynchronous updates in one theorem.
References
- Gerard J. Foschini and Zoran Miljanic, A simple distributed autonomous power control algorithm and its convergence, IEEE Transactions on Vehicular Technology 42(4), 1993, pages 641 to 646, Section III.A (the differential equation form), Section III.B (the difference equation, the step beta in (0, 1] and the proof that beta = 1 is the largest universal choice)
- Roy D. Yates, A framework for uplink power control in cellular radio systems, IEEE Journal on Selected Areas in Communications 13(7), 1995, pages 1341 to 1347, the standard interference function, with the fixed-assignment iteration of Foschini and Miljanic as the first example, and the synchronous and asynchronous convergence theorems
- Jens Zander, Performance of optimum transmitter power control in cellular radio systems, IEEE Transactions on Vehicular Technology 41(1), 1992, pages 57 to 62, the normalized link gain matrix and the largest achievable common SINR as the inverse of its spectral radius
- David Tse and Pramod Viswanath, Fundamentals of Wireless Communication, Cambridge University Press, 2005, Chapter 4 (power control in the uplink of a CDMA system, and the distributed iteration toward the target SINRs)
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 K8XR5H Edit this page History Report an error Markdown