Algorithm Search⌘K

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
Properties
converges iff feasibledeterministicdistributedneeds only local measurements
Origin
Gerard J. Foschini, Zoran Miljanic, 1993

Foschini-Miljanic power control is an iterative algorithm that lets KK 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 KK links. Transmitter jj uses the power pj≥0p_j \ge 0. The power gain from transmitter jj to receiver ii is Gij≥0G_{ij} \ge 0, with Gii>0G_{ii} > 0 the gain of link ii, and receiver ii has the noise power σi>0\sigma_i > 0. 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

SINRi(p)=Gii pi∑j≠iGij pj+σi.\mathrm{SINR}_i(p) = \frac{G_{ii}\, p_i}{\sum_{j \ne i} G_{ij}\, p_j + \sigma_i}.

Link ii wants SINRi(p)≥γi\mathrm{SINR}_i(p) \ge \gamma_i for a target γi>0\gamma_i > 0, for example the SNR that its modulation and code need. Multiply out: the targets hold exactly when p≥Fp+up \ge F p + u entrywise, where

Fij=γiGijGii (j≠i),Fii=0,ui=γiσiGii.F_{ij} = \frac{\gamma_i G_{ij}}{G_{ii}} \ (j \ne i), \qquad F_{ii} = 0, \qquad u_i = \frac{\gamma_i \sigma_i}{G_{ii}}.

FF is the normalized gain matrix; it is nonnegative. A power vector with p≥Fp+up \ge Fp + u 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 pi(t)p_i(t). The step size β\beta is in (0,1](0, 1]; the original law of Foschini and Miljanic has β=1\beta = 1 as the best universal choice.

  1. FOSCHINI-MILJANIC(G, γ, σ, p(0), β, T, ε)
  2. 1for t ← 0 to T - 1 do
  3. 2for each link i, in parallel, do
  4. 3I_i ← Σ_{j≠i} G_ij p_j(t) + σ_i ▷ measured by receiver i
  5. 4p_i(t+1) ← (1 - β) p_i(t) + β γ_i I_i / G_ii
  6. 5if max_i |p_i(t+1) - p_i(t)| ≤ ε max_i p_i(t+1) then return p(t+1)
  7. 6return p(T)

Line L4 is the rule "multiply the power by target over measured SINR": when pi(t)>0p_i(t) > 0, γiIi/Gii=(γi/SINRi) pi(t)\gamma_i I_i / G_{ii} = (\gamma_i / \mathrm{SINR}_i)\, p_i(t). Written with IiI_i, it also works for a link that starts at zero power. In vector form, one round is

p(t+1)=(1−β) p(t)+β (Fp(t)+u).p(t+1) = (1 - \beta)\, p(t) + \beta\, \big(F p(t) + u\big).

With β=1\beta = 1 this is p(t+1)=Fp(t)+up(t+1) = F p(t) + u, the Jacobi iteration for the linear system (I−F)p=u(I - F) p = u, computed with no central controller. In a real system the receiver measures IiI_i 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 γi=2\gamma_i = 2 (3.01 dB) give

G=(10.10.20.210.10.10.11),F=(00.20.40.400.20.20.20),u=(0.20.20.2).G = \begin{pmatrix} 1 & 0.1 & 0.2 \\ 0.2 & 1 & 0.1 \\ 0.1 & 0.1 & 1 \end{pmatrix}, \qquad F = \begin{pmatrix} 0 & 0.2 & 0.4 \\ 0.4 & 0 & 0.2 \\ 0.2 & 0.2 & 0 \end{pmatrix}, \qquad u = \begin{pmatrix} 0.2 \\ 0.2 \\ 0.2 \end{pmatrix}.

The spectral radius of FF is ρ(F)=0.52547\rho(F) = 0.52547, below 1, so the targets are feasible. Solving (I−F)p=u(I - F)p = u gives the least powers p∗=(42,43,36)/95=(0.44211,0.45263,0.37895)p^* = (42, 43, 36)/95 = (0.44211, 0.45263, 0.37895) mW. With β=1\beta = 1 from p(0)=0p(0) = 0:

tt p1(t)p_1(t) p2(t)p_2(t) p3(t)p_3(t) SINR1\mathrm{SINR}_1 SINR2\mathrm{SINR}_2 SINR3\mathrm{SINR}_3
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 ρ(F)≈0.53\rho(F) \approx 0.53 per round, and the stopping test of line L5 with ϵ=10−9\epsilon = 10^{-9} stops after 33 rounds, at p∗p^* to 9 digits.

Since FF is linear in the common target, ρ(F)=0.52547⋅γ/2\rho(F) = 0.52547 \cdot \gamma / 2. So a common target is feasible exactly when γ<2/0.52547=3.8061\gamma < 2 / 0.52547 = 3.8061 (5.81 dB). At γ=3.5\gamma = 3.5 the least powers are already (4.64,4.89,3.68)(4.64, 4.89, 3.68) mW, and at γ=4\gamma = 4 no power vector works: the iteration from zero grows past 10610^6 mW within 400 rounds. The largest common target 3.80613.8061 is the value that max-min SINR power control finds for this channel without noise.

Correctness

Claim. Let F≥0F \ge 0, u>0u > 0 and β∈(0,1]\beta \in (0, 1].

  1. If ρ(F)<1\rho(F) < 1, then p∗=(I−F)−1up^* = (I - F)^{-1} u is positive, it meets every target with equality, it is the least feasible vector (p≥p∗p \ge p^* entrywise for every feasible pp), and p(t)→p∗p(t) \to p^* from every start p(0)≥0p(0) \ge 0. The error satisfies ∥p(t)−p∗∥≤c rt\|p(t) - p^*\| \le c\, r^t for each r>(1−β)+βρ(F)r > (1 - \beta) + \beta \rho(F).
  2. If ρ(F)≥1\rho(F) \ge 1, then no feasible vector exists, and from p(0)=0p(0) = 0 the total power grows without bound.

Key steps. For ρ(F)<1\rho(F) < 1, the Neumann series ∑kFk\sum_k F^k converges to (I−F)−1≥0(I - F)^{-1} \ge 0, so p∗=u+Fu+F2u+⋯≥u>0p^* = u + Fu + F^2 u + \cdots \ge u > 0. A feasible pp satisfies p≥u+Fpp \ge u + Fp; substituting this bound into itself nn times gives p≥∑k<nFku+Fnp≥∑k<nFkup \ge \sum_{k < n} F^k u + F^n p \ge \sum_{k < n} F^k u, so p≥p∗p \ge p^*. The error e(t)=p(t)−p∗e(t) = p(t) - p^* obeys e(t+1)=Ce(t)e(t+1) = C e(t) with C=(1−β)I+βFC = (1 - \beta) I + \beta F, and every eigenvalue of CC has the form (1−β)+βλ(1 - \beta) + \beta \lambda with ∣λ∣≤ρ(F)|\lambda| \le \rho(F), so ρ(C)≤(1−β)+βρ(F)<1\rho(C) \le (1 - \beta) + \beta \rho(F) < 1. For ρ(F)≥1\rho(F) \ge 1, the Perron-Frobenius theorem gives a nonzero y≥0y \ge 0 with yTF=ρ(F)yTy^T F = \rho(F) y^T. A feasible pp would give yTp≥ρ(F)yTp+yTu>ρ(F) yTpy^T p \ge \rho(F) y^T p + y^T u > \rho(F)\, y^T p, which is impossible for ρ(F)≥1\rho(F) \ge 1 and yTp≥0y^T p \ge 0. 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 KK links with gains Gij≥0G_{ij} \ge 0, Gii>0G_{ii} > 0, noise powers σi>0\sigma_i > 0 and targets γi>0\gamma_i > 0. Put Fij=γiGij/GiiF_{ij} = \gamma_i G_{ij} / G_{ii} for j≠ij \ne i, Fii=0F_{ii} = 0 and ui=γiσi/Giiu_i = \gamma_i \sigma_i / G_{ii}. Then F≥0F \ge 0 and u>0u > 0 entrywise. For p≥0p \ge 0,

SINRi(p)≥γi  ⟺  Giipi≥γi(∑j≠iGijpj+σi)  ⟺  pi≥(Fp+u)i,(1)\mathrm{SINR}_i(p) \ge \gamma_i \iff G_{ii} p_i \ge \gamma_i \Big(\sum_{j \ne i} G_{ij} p_j + \sigma_i\Big) \iff p_i \ge (Fp + u)_i, \tag{1}

and the same holds with equality on both sides. So pp meets all targets exactly when p≥Fp+up \ge Fp + u; such a pp is feasible. For β∈(0,1]\beta \in (0, 1], lines L2 to L4 compute p(t+1)=T(p(t))p(t+1) = T(p(t)) with

T(p)=(1−β) p+β (Fp+u)=Cp+βu,C=(1−β)I+βF.(2)T(p) = (1 - \beta)\, p + \beta\, (F p + u) = C p + \beta u, \qquad C = (1 - \beta) I + \beta F. \tag{2}

All inequalities between vectors are entrywise. ρ(⋅)\rho(\cdot) is the spectral radius.

Lemma 1 (monotone map). C≥0C \ge 0, so p≤qp \le q implies T(p)≤T(q)T(p) \le T(q).

Proof. 1−β≥01 - \beta \ge 0 and βF≥0\beta F \ge 0, so every entry of CC is nonnegative, and T(q)−T(p)=C(q−p)≥0T(q) - T(p) = C(q - p) \ge 0. □\square

Lemma 2 (fixed points). A vector pp is a fixed point of TT exactly when p=Fp+up = Fp + u, that is, by (1), when p≥0p \ge 0 meets every target with equality.

Proof. T(p)=pT(p) = p means β(Fp+u−p)=0\beta (Fp + u - p) = 0, and β>0\beta > 0. □\square

Theorem 1 (feasible case). Let ρ(F)<1\rho(F) < 1. Then:

  1. p∗=(I−F)−1up^* = (I - F)^{-1} u exists, p∗≥u>0p^* \ge u > 0, and p∗p^* meets every target with equality.
  2. Every feasible pp satisfies p≥p∗p \ge p^*.
  3. For every p(0)∈RKp(0) \in \mathbb{R}^K, p(t)→p∗p(t) \to p^*. For every rr with ρ(C)<r\rho(C) < r there is a constant cc with ∥p(t)−p∗∥≤c rt∥p(0)−p∗∥\|p(t) - p^*\| \le c\, r^t \|p(0) - p^*\|, and ρ(C)≤(1−β)+βρ(F)<1\rho(C) \le (1 - \beta) + \beta \rho(F) < 1.

Proof. (1) Since ρ(F)<1\rho(F) < 1, the Neumann series ∑k≥0Fk\sum_{k \ge 0} F^k converges and equals (I−F)−1(I - F)^{-1}. Every term is nonnegative, so p∗=∑kFku≥F0u=u>0p^* = \sum_k F^k u \ge F^0 u = u > 0. From (I−F)p∗=u(I - F) p^* = u we get p∗=Fp∗+up^* = F p^* + u, and Lemma 2 gives equality in every target.

(2) Let pp be feasible, so p≥u+Fpp \ge u + Fp. Since F≥0F \ge 0, we may multiply this by FF and keep the order: Fp≥Fu+F2pFp \ge Fu + F^2 p. By induction on nn,

p≥∑k=0n−1Fku+Fnp≥∑k=0n−1Fku,p \ge \sum_{k=0}^{n-1} F^k u + F^n p \ge \sum_{k=0}^{n-1} F^k u,

where the last step uses Fnp≥0F^n p \ge 0 (a feasible pp is ≥u>0\ge u > 0). Let n→∞n \to \infty: p≥p∗p \ge p^*.

(3) Put e(t)=p(t)−p∗e(t) = p(t) - p^*. Since T(p∗)=p∗T(p^*) = p^*, e(t+1)=T(p(t))−T(p∗)=Ce(t)e(t+1) = T(p(t)) - T(p^*) = C e(t), so e(t)=Cte(0)e(t) = C^t e(0). Each eigenvalue of CC is μ=(1−β)+βλ\mu = (1 - \beta) + \beta \lambda for an eigenvalue λ\lambda of FF, so ∣μ∣≤(1−β)+β∣λ∣≤(1−β)+βρ(F)|\mu| \le (1 - \beta) + \beta |\lambda| \le (1 - \beta) + \beta \rho(F), which is below 1 because β>0\beta > 0 and ρ(F)<1\rho(F) < 1. By Gelfand's formula ∥Ct∥1/t→ρ(C)\|C^t\|^{1/t} \to \rho(C), so for r>ρ(C)r > \rho(C) there is cc with ∥Ct∥≤c rt\|C^t\| \le c\, r^t for all tt. Pick r<1r < 1; then ∥e(t)∥≤c rt∥e(0)∥→0\|e(t)\| \le c\, r^t \|e(0)\| \to 0. □\square

Theorem 2 (infeasible case). Let ρ(F)≥1\rho(F) \ge 1. Then no feasible vector exists, and the iterates from p(0)=0p(0) = 0 increase in every entry and ∑ipi(t)→∞\sum_i p_i(t) \to \infty.

Proof. By the Perron-Frobenius theorem for nonnegative matrices, applied to FTF^T, there is y≥0y \ge 0, y≠0y \ne 0, with yTF=ρ(F) yTy^T F = \rho(F)\, y^T. Suppose pp is feasible. Then p≥0p \ge 0 and

yTp≥yTFp+yTu=ρ(F) yTp+yTu,y^T p \ge y^T F p + y^T u = \rho(F)\, y^T p + y^T u,

so (1−ρ(F)) yTp≥yTu(1 - \rho(F))\, y^T p \ge y^T u. The right side is positive, since y≥0y \ge 0, y≠0y \ne 0 and u>0u > 0. The left side is at most 00, since ρ(F)≥1\rho(F) \ge 1 and yTp≥0y^T p \ge 0. This is a contradiction, so no feasible vector exists.

Now start at p(0)=0p(0) = 0. Then p(1)=βu≥p(0)p(1) = \beta u \ge p(0), and if p(t)≥p(t−1)p(t) \ge p(t-1), Lemma 1 gives p(t+1)=T(p(t))≥T(p(t−1))=p(t)p(t+1) = T(p(t)) \ge T(p(t-1)) = p(t). So the sequence increases in every entry. If it were bounded, it would converge to a finite limit pˉ≥0\bar p \ge 0, and since TT is continuous, T(pˉ)=pˉT(\bar p) = \bar p. By Lemma 2, pˉ\bar p 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, ∑ipi(t)→∞\sum_i p_i(t) \to \infty. □\square

Corollary (monotone convergence). Let ρ(F)<1\rho(F) < 1. From p(0)=0p(0) = 0 the iterates increase to p∗p^* and stay below it; from a feasible p(0)p(0) they decrease to p∗p^* and stay feasible.

Proof. From 0≤p∗0 \le p^* and Lemma 1, p(t)=Tt(0)≤Tt(p∗)=p∗p(t) = T^t(0) \le T^t(p^*) = p^*, and the increase follows as in Theorem 2. If p(0)p(0) is feasible, then p(0)≥Fp(0)+up(0) \ge Fp(0) + u, so T(p(0))=(1−β)p(0)+β(Fp(0)+u)≤p(0)T(p(0)) = (1 - \beta) p(0) + \beta (F p(0) + u) \le p(0); Lemma 1 and induction give p(t+1)≤p(t)p(t+1) \le p(t). Also T(p)≥Fp+uT(p) \ge Fp + u whenever p≥Fp+up \ge Fp + u, because T(p)T(p) is a convex combination of pp and Fp+uFp + u, both ≥Fp+u\ge Fp + u; and then FT(p)+u≤Fp+u≤T(p)F T(p) + u \le Fp + u \le T(p) by T(p)≤pT(p) \le p and F≥0F \ge 0. So each iterate is feasible. Theorem 1 gives the limit. □\square

The algorithm. Lines L1 to L4 compute p(t+1)=T(p(t))p(t+1) = T(p(t)), because line L3 computes Ii=(∑j≠iGijpj(t)+σi)I_i = (\sum_{j \ne i} G_{ij} p_j(t) + \sigma_i) and line L4 sets pi(t+1)=(1−β)pi(t)+βγiIi/Gii=(1−β)pi(t)+β(Fp(t)+u)ip_i(t+1) = (1 - \beta) p_i(t) + \beta \gamma_i I_i / G_{ii} = (1 - \beta) p_i(t) + \beta (F p(t) + u)_i. Line L5 returns an iterate once the change in one round is at most ϵ\epsilon times the largest power, and line L6 returns p(T)p(T). By Theorem 1, when ρ(F)<1\rho(F) < 1 the returned vector tends to p∗p^* as ϵ→0\epsilon \to 0 and T→∞T \to \infty: near the fixed point the error is at most the change in one round divided by 1−r1 - r in a norm in which CC contracts by r<1r < 1. By Theorem 2, when ρ(F)≥1\rho(F) \ge 1 no returned vector meets every target, and from p(0)=0p(0) = 0 the powers grow without bound.

Complexity

In the real RAM, one round of lines L2 to L4 costs O(K2)O(K^2) arithmetic operations when one computer simulates all links, because each interference sum has K−1K - 1 terms. In a network, each link does O(1)O(1) work per round, since its receiver measures IiI_i as one number, and one number per round goes back over the feedback channel. The space is O(K)O(K) besides the gains.

The number of rounds is not fixed. By the claim, the error falls like ρ(C)t\rho(C)^t with ρ(C)=(1−β)+βρ(F)\rho(C) = (1 - \beta) + \beta \rho(F) when FF is irreducible, so about ln⁡(1/ϵ)/ln⁡(1/ρ(C))\ln(1/\epsilon) / \ln(1/\rho(C)) rounds reduce the error by the factor ϵ\epsilon. This number grows without bound as the targets approach the edge of the feasible region, where ρ(F)→1\rho(F) \to 1. For TT rounds the simulated time is O(TK2)O(T K^2) in the worst case. A central controller that knows GG can instead solve (I−F)p=u(I - F) p = u by Gaussian elimination in O(K3)O(K^3) time and test feasibility at the same time.

Properties

  • Distributed. Link ii uses only γi\gamma_i, GiiG_{ii} and the measured IiI_i (or, for pi>0p_i > 0, only its measured SINR). Nobody needs the matrix GG.
  • 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 p(0)=0p(0) = 0 the powers increase in every entry at each round; from a feasible start they decrease. This follows from F≥0F \ge 0.
  • Universal step. For each β∈(0,1]\beta \in (0, 1] the iteration converges whenever the targets are feasible, whatever the gains. Foschini and Miljanic showed that β=1\beta = 1 is the largest value with this property: for two links and some gains, every β>1\beta > 1 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 pi←min⁡(pˉi,γiIi/Gii)p_i \leftarrow \min(\bar p_i, \gamma_i I_i / G_{ii}). 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 pˉi\bar p_i 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 FF. 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 ρ(F)≥1\rho(F) \ge 1, 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 ρ(F)→1\rho(F) \to 1, the least powers grow like 1/(1−ρ(F))1/(1 - \rho(F)) and the number of rounds grows like 1/(1−ρ(F))1/(1 - \rho(F)). 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 β>1\beta > 1 can diverge for feasible targets. Keep β≤1\beta \le 1.
  • SINR in dB. The update is multiplicative in linear units: p←p γ/SINRp \leftarrow p\, \gamma / \mathrm{SINR}. In dB it is pdB←pdB+γdB−SINRdBp_{dB} \leftarrow p_{dB} + \gamma_{dB} - \mathrm{SINR}_{dB}; 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.

foschini_miljanic_power_control.pyI0RawGitHub
# 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 β\beta, 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

  1. 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)
  2. 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
  3. 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
  4. 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.

LadderLevelWhat the next level needs
Human proofH1 sketch
  • a full proof of time.worst
  • a full proof of space.extra
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
Code (python)I0 not checked yet
  • the tests did not run in this build
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW2 basic
  • a scene preset for the example