State estimation
Kind: Problem specification · Direction: inverse · Maturity: prototype
For calibration or line-construction questions, begin with the estimation overview. The compiled API offers dense, sparse and classic Ipopt solvers over one model; their functions and arguments are listed in the state estimation API.
State estimation determines bus voltages from measurements and an assumed network model. PowerOptLab provides a JuMP/Ipopt WLS estimator and a constrained nonlinear least-squares estimator. Their treatment of exact device equations, measurements and numerical solution differs.
| Legacy WLS | Constrained NLLS | |
|---|---|---|
| Entry point | solve_state_estimation | compile_state_estimator + a solver |
| Statement | $\min \sum_i (z_i - h_i(x))^2/\sigma_i^2$ | $\min \tfrac12\lVert r(x)\rVert^2$ s.t. $c(x)=0$ |
| Engine | JuMP + Ipopt | Gauss–Newton / Hachtel / shared Ipopt solvers |
Both APIs report J=sum(abs2,r) through solve_diagnostics; the internal factor one half in the compiled objective does not change that public statistic.
Choosing a formulation compares the two estimators on the same network and measurements.
What both of them assume
Both methods rely on the following assumptions. Errors in those assumptions can bias the estimate even when the numerical solver converges:
- Measurement weights are diagonal. Both estimators scale residuals by $1/\sigma$ and do not support correlated measurement errors. Independent, zero-mean Gaussian errors give the weighted least-squares objective its maximum-likelihood interpretation. Least-squares fitting can also be used under other error distributions, but the likelihood, covariance and residual tests then need separate justification. A systematic meter offset requires analysis of bias as well as random noise. See likelihood, loss, and priors.
- Topology and line parameters are exact. Neither estimator hypothesises a different switch status or a different impedance. A topology error can produce large residuals or be partly absorbed into the estimated voltages. See parameter estimation and inverse Carson for the complementary problems.
- The estimate is a local stationary point. Both problems are nonconvex. Convergence is not uniqueness, and neither estimator does multistart. The current-magnitude tutorial shows two different states that both fit the same data exactly, each reported as converged.
- Observability requires rank; precision also depends on conditioning. Measurement placement determines which state directions are identified. Small singular values indicate directions that are weakly supported by the data. See observability.
- Standard deviations determine the relative measurement weights. Assign uncertainties according to the evidence for each reading or forecast. Giving a load forecast the precision of a calibrated meter can overstate the information it contributes.
Where to go next
- Worked state-estimation study — estimate a displaced neutral, inspect residuals and remove measurements to test observability. The complete code and assertions run in CI.
- Measurement and electrical compatibility — measurement types, transformer ports, grounding and remaining gaps.
- Choosing a formulation — the comparison, and which to reach for.
- Likelihood, loss, and priors — when these estimators coincide with Gaussian MLE, when a prior makes the result MAP, and which error models each engine can represent.
- Legacy WLS state estimation — reference.
- Constrained NLLS state estimation — reference.
- Observability and under-observed estimation — which state directions are identifiable and how to report partial observability.
- Current-magnitude measurements — how distinct states can fit the same current magnitudes.
- Background and open questions — selected literature, and what these prototypes do not yet do.