fms

Grid state

How FMS estimates load and voltage, accounts for losses and rejects implausible measurements.

The estimator๐Ÿ”—

Every connection's load starts as a Gaussian: its profile's expected value and spread. Without a profile, the prior is uninformative, bounded only by the fuse. Each fresh measurement is a linear observation of those loads:

Each measurement is folded in by the exact Gaussian update over the full covariance. That is a Kalman step, which on this problem is weighted least squares.

A measurement at a feeder's sending end includes the losses of everything beyond it. Those predicted losses are taken off before the reading updates the loads, so they are not counted twice.

Flows and voltages are linear in the loads: a cable carries everything behind it, and the voltage drops by R ยท P / Vยฒ along the path. So their mean and standard deviation follow exactly from the posterior. A second-order term adds each section's IยฒR losses, which grow as voltage sags.

Checked against pandapower and Power Grid Model๐Ÿ”—

The oracle test builds the same feeder in two independent engines, pandapower and LF Energy's Power Grid Model, loads it near its rating, and solves the full AC equations in each:

AgreementTest bound
line and transformer flows0.03 % of rating1 %
node voltages0.003 p.u.0.005 p.u.
losses0.1 kW of ~13 kWโ€”
$ pip install pandapower power-grid-model
$ FMS_REQUIRE_ORACLES=1 cargo test --release -p fms --test grid_oracle -- --nocapture

In the simulator the transformer estimate is within 0.2โ€“1.3 kW of the truth on a 400 kVA transformer, and its stated 95 % interval holds the truth in at least 99 % of cycles. A test fails if the interval ever covers less than 95 %.

Determined or not๐Ÿ”—

The estimate of every asset carries its ฯƒ. fms calls it determined when 2.326 ฯƒ โ€” the 99th percentile โ€” is within 10 % of the rating, or within 2 % for voltage, as FNN Hinweis 2e asks. An undetermined asset gets no new netzorientierte reduction. The report shows the metered share against the 2e table for a radial feeder:

At the OrtsnetzstationShare of connections that must deliver TAF 10 values
every LV feeder measured15 %
the transformer total30 %
nothing70 %

Bad data๐Ÿ”—

A smart meter is the only direct observation of its connection. There is nothing redundant to test it against, so it is checked for plausibility: finite, within 1.1 ร— its fuse, and its SteuVE share consistent. An Ortsnetzstation measurement is redundant. If its normalised innovation against everything else exceeds 5 ฯƒ, it is refused before use. When it is refused twice in a row, an Inconsistent alarm asks someone to look. On lying-sensor the transformer reading is spoofed 80 % high and one meter claims 120 kW: both are refused, and nothing is sent.