citylearn.internal.balance_audit module
Offline independent balance audit using a directed physical-flow network.
No production accounting, settlement or KPI formula is used to calculate expected values. Battery journals are physical measurements and are checked against device terminals and stored energy. This is model-consistency evidence, not calibration.
- class citylearn.internal.balance_audit.FlowNetwork[source]
Bases:
objectSolve concentrations from Kirchhoff balances on explicit operation nodes.
- class citylearn.internal.balance_audit.IndependentBalanceAudit(env, *, absolute_tolerance=1e-05, relative_tolerance=1e-07)[source]
Bases:
objectAttach after reset at interval zero; detach before resetting the episode.
The optional instrumentation observes both normal and no-feedback transitions. It adds no dispatch decisions and preserves the original runtime methods.