| Observability margin ρ = σn−1(C₀) | – |
| Normalized noise level η = ε / ρ | – |
| Theorem 5 threshold η* = 4√2⁄(3π) | 0.6002 |
| Duality gap δ(x) = −n·λmin(S(x)) | – |
| RMSE(θsi, θgnd) | – (bound: η ≤ – rad) |
| Eigensolve cost (real 128×128 Jacobi ×2) | – |
The paper reduces power-system voltage-angle estimation to phase synchronization: recover
unit-modulus phases x ∈ ℂⁿ from noisy pairwise angle-difference measurements on the grid graph.
The estimator solves min ‖Cx‖² s.t. |x₁| = ⋯ = |xₙ| = 1, equivalent to maximizing
x*Hx with H = −C*C — a Hermitian "connection matrix"
built straight from the graph and the noisy measurements. This demo builds the classical connection-Laplacian
specialization of that same matrix (paper §III–IV, Lemma 1–4): for every edge (i,j) present in
the grid, it draws a noisy phase measurement
z_ij = exp(i·(θᵢ − θⱼ) + noise) and accumulates it into an n×n complex Hermitian
matrix. Every slider drag rebuilds this matrix and diagonalizes it for real — via a from-scratch complex
Hermitian eigensolver (a real-symmetric Jacobi rotation on the 2n×2n real embedding of the matrix, since a
Hermitian eigenproblem of size n is exactly a real-symmetric eigenproblem of size 2n). The top eigenvector
of H, projected onto the unit circle per-entry, is the spectral estimate θsi (paper eq. 19–20) —
drawn here as amber arrows next to the true angles.
The duality gap is the paper's actual dual certificate (eq. 31–32):
S(x) := C*C − Re[ddiag(C*C · xxᵀ)], δ(x) := −n·λmin(S(x))
computed here from a second real eigensolve of S(x) each frame. The paper proves 0 ≤ f(x) − f(xwls) ≤ δ(x),
so δ(x) ≈ 0 is a genuine certificate of global optimality — not a cosmetic threshold. In the
noiseless observable case the paper shows this gap is exactly zero and recovery is exact "without local
refinement"; you can watch that happen live by dragging noise to 0.
ρ is the classical observability margin — the smallest singular value of the
measurement Jacobian, eq. 10 — and Ks, Ku are network/measurement constants.
This demo's slider-driven η = ε/ρ is a simplified single-noise-source version of exactly that ratio.