fms

How it works

Follow a measurement through estimation, control, dispatch tracking and evidence.

measurements ─▶ grid state ──posterior──▶ decision ──commands──▶ dispatch ─▶ MSB ─▶ Steuerbox
profiles     ─▶ (estimator)  mean + σ     (controllers) + reasons (tracker)  ◀─ acknowledgements
                                             │ every output
                                             ▼
                                          evidence ─▶ documentation · VNBdigital

One engine, no I/O🔗

Engine::step(input, now) takes one input and the time, and returns what it caused. It owns no socket, thread, database or clock. Measurements, profiles, acknowledgements, a lost channel and an operator's instruction are inputs. A Tick runs a control cycle. Replay the original timestamped inputs to reproduce the decision. The simulator and edge service use the same engine.

The cycle🔗

  1. Bookkeeping. Unacknowledged commands are retried. After the last attempt the resource is unknown. Expired limits end.
  2. Grid state. The estimator turns the fresh measurements and the profiles into a posterior over every connection. Flows and voltages follow, each with a standard deviation. See Grid state.
  3. Decision. Every cable and the transformer has a controller, and so does the worst voltage. A controller acts when its estimate is determined and crosses the trigger. It holds a depth from 0 to 1 that applies to every SteuVE it draws on. See Decision.
  4. Changes. Deeper reductions go out first, then stepwise restores, then releases. At most half of a feeder's resources change state in one cycle. Renewals keep end times ahead.
  5. Evidence. Every output goes to the log. See Evidence.

What the FMS believes is in effect🔗

StateMeaningPlanning assumes
Idleno reductionnothing
Commandedsent, not yet acknowledgedthe commanded limit
Confirmedthe Steuerbox acknowledged itthe commanded limit
Failsafechannel lost; the EMS holds its failsafe value for 2–24 hthe failsafe value, then nothing
Unknownnever acknowledgednothing — the conservative assumption for the grid