GENCO for decentralized battery control under decision deadlines

#5
by Tishka04 - opened

Participant: Théotime Coudray
Affiliation: Université de Versailles Saint Quentin en Yvelines - UMI SOURCE
Contact: coudray.theotime@gmail.com

Summary

We place the official pretrained GENCO model inside a sequential control experiment: three battery agents share an electricity network, observe different information, and must issue commands within a limited computation time. We compare AC power-flow evaluation, GENCO evaluation and a hybrid of the two, using the commands actually published before the deadline as the basis for scoring.

On our modified IEEE 14-bus benchmark, GENCO is competitive with AC. In the primary mixed-team comparison, its mean private cost is 0.31% lower at a 1.5-second decision budget. The advantage is modest and depends on controller settings. More computation improves collective viability in one stress case but leaves another largely unresolved. Changing the fallback action also substantially changes outcomes, even when every agent still uses GENCO.

The contribution is an auditable workflow for assessing what GENCO enables a controller to do in time, with explicit distinctions between prediction, local planning and realised network safety. We release the code, complete experiment records, three figures and reproduction tools.

1. Research question

Under the same local information and computation budget, does using GENCO to evaluate electrical scenarios improve the decisions of decentralized storage agents compared with AC power flow, and what changes when GENCO is combined with AC checks?

We examine three related outcomes: the private cost incurred by each agent, the ability of the whole network to satisfy constraints throughout an episode, and the effect of planning horizon and fallback behaviour. This is a control-workflow experiment. We do not train a new GENCO model or estimate a standalone inference-speed advantage from these results.

2. The simulated system and the agents

The experiment uses the Pandapower IEEE 14-bus network, partitioned into three regions called north, centre and south. These names identify benchmark regions, not real geographical areas. Each region has one agent controlling one battery. The agents share the same electrical network: one battery's action can change flows and constraint violations elsewhere.

Component Executed setting
Episode Eight one-hour physical steps
Batteries Three batteries, each with 5 MW charging/discharging power
Energy About 21.05 MWh usable capacity and 10.53 MWh initially usable, above a 2 MWh minimum stock
Efficiency 0.95 for charging and for discharging
Candidate commands Charge at 5 MW, idle, discharge at 2.5 MW or discharge at 5 MW; locally inadmissible options are removed
Local admissibility Battery power/energy limits, minimum stock and no discharge beyond demand at the battery bus
Charging coordination A common rule assigns charging rights to one agent, within a 5 MW shared charging budget
Information exchange Broadcasts every two steps, delivered one step later
Computation budget 0.5 or 1.5 seconds for each agent at each decision

An agent sees its own current battery energy and binary regional load signal, its local history, and broadcasts already delivered. Broadcasts contain the sender's signal and energy at the original timestamp. Network parameters, nominal demand profiles, prices and the stochastic law are public. Agents do not receive the simulator's hidden regime, other agents' current private signals, future realised signals, or their simultaneous commands.

Regional signals are generated by a shared binary hidden Markov regime. They multiply regional loads by 0.96 or 1.04. Each agent uses Bayesian filtering under this known model to interpret its permitted signals and messages. This is a prescribed signal-based belief calculation, not a learned belief representation; it does not infer additional information from other agents' past actions or stocks.

Charging rights use the lowest reported battery stock in the latest complete delivered broadcast batch, with a deterministic tie-break. Before such a batch is available, a public rotation assigns the right to charge. The communication rule is fixed throughout the campaign; it is not an experimentally optimised coordination policy.

Demand and stress cases

The base demand comes from Datakit Powergraph profiles, followed by declared temporal and regional perturbations. The three cases are nominal demand, a northern peak and a southern peak. The stress cases add respectively 100 MW and 72 MW at the affected region's battery bus during four high-load steps. All cases include the stochastic regional multipliers described above.

These are synthetic stress scenarios. We also explicitly modify the network's operating limits: voltage bounds are 0.94–1.10 p.u., the first branch rating is 190 MVA, and reactive-power bounds for generators and the external grid source are set to −100/+100 Mvar. The complete inputs are archived. The experiment is therefore a declared modified IEEE14 benchmark, not a reproduction of GENCO's original evaluation dataset.

3. What AC, GENCO and the hybrid actually do

All three methods sit inside the same family of local receding-horizon controllers. At every step, a controller evaluates battery actions and possible future local signals, then selects a current command. Only that current command is applied; planning starts again at the next step with updated information.

The fixed balanced policy setting is used for every agent in this campaign. It combines energy expenditure, battery wear, estimated electrical risk and a terminal stored-energy credit. Region-specific wear and risk coefficients remain attached to the physical role when methods are rotated. No policies are trained during the experiment.

Method Electrical evaluation inside local planning How it selects the current action
AC Pandapower AC power flow on hypothetical load/action states Ranks locally feasible actions using the resulting risk estimates and continuation values
GENCO The official pretrained IEEE14 Tiny checkpoint predicts the electrical state; the same operating-limit assessment is applied to its outputs Uses those predictions in the same local planning framework
Hybrid GENCO evaluates the planning tree; AC additionally evaluates the current feasible action options across the possible current load states Prefers lower AC-estimated failure probability, then lower violation severity, then the GENCO planning score

GENCO is used without fine-tuning or learned safety margins in this campaign. gridfm-graphkit supplies graph preparation, normalization, masking, batching and inference. gridfm-datakit supplies the Powergraph load profiles; its Julia solver pipeline is not used. The official checkpoint and normalizer are pinned and linked below.

For every method, local planning assumes that remote battery commands are zero. Future plans branch on future own signals, using Bayesian updates, and assume a public rotation of future charging rights without anticipating future message contents. Thus, the planner respects its information boundary but uses a simplified model of the other agents.

This assumption is especially important for interpreting the hybrid: its AC checks concern hypothetical actions under assumed remote behaviour. They do not certify the realised joint action. AC is a power-flow evaluator here, not a centralized optimal-power-flow controller.

4. How an episode runs

At each of the eight physical steps:

  1. The simulator generates the current regional loads from the saved disturbance trajectory and makes each agent's permitted observation and delayed messages available.
  2. Each agent starts its own computation timer and first publishes the declared fallback action. It then attempts local planning and may replace that command with a completed plan's first action.
  3. Only a command fully serialized before the deadline can replace the previous one. If a calculation finishes late, its result is discarded for that decision; the last timely command remains selected.
  4. The three retained commands are applied simultaneously in the simulation. Battery energy is updated using the charging/discharging efficiency.
  5. A separate AC calculation evaluates the actual loads and actual joint action. It records constraint satisfaction and realised costs. This scoring result is not given back to the planners and does not veto their actions.

For example, an adaptive controller may publish a one-step decision, then fail to finish the next, longer plan before the deadline. The one-step command is the one scored. If no planning result arrives in time, the initial fallback is scored. This makes the experiment sensitive to whether computation produces an actionable result, rather than merely whether a solver eventually returns.

The local timer includes belief construction, hypothetical network preparation, GENCO inference or AC solves, action ranking and command serialization. Model loading and library initialization occur beforehand; sensor/history assembly, simulated message delivery and the independent joint AC scoring are outside the local timer. A blocking solve can overrun, which is recorded separately from command availability.

Measurements run serially on a local CPU, with independent per-agent budgets and controlled worker ordering. They are not a demonstration of distributed, end-to-end actuator deadlines. Electrical caches start empty for each agent and execution and only retain that agent's timely electrical evaluations within the episode. There is no shared planning cache or precomputed decision lookup table.

5. Experimental design and independent support

We first run validation, audit it and freeze the settings, then evaluate distinct test trajectories. The same exogenous trajectories are reused across compared methods, budgets and controller variants so their differences can be paired. Each cell is repeated three times to capture timing variability. These repeats do not create new demand trajectories.

The controller variants form a 3 × 2 design:

  • Horizon: adaptive, fixed at one step, or fixed at three steps. Adaptive means attempting horizons 1, 2 and 3 in order and publishing each completed result. A fixed-horizon controller attempts only its specified horizon, clipped to the steps remaining in the episode.
  • Fallback: neutral, which idles the battery, or local_peak, which discharges at the largest locally admissible candidate when the current own load signal is high and otherwise idles. This rule uses no electrical evaluator and provides no AC safety guarantee.

The primary variant is adaptive horizon with neutral fallback. It covers all 27 assignments of the three methods to the three agents. The five other variants each cover nine assignments: three homogeneous teams (all AC, all GENCO, all hybrid) and all six permutations containing one agent of each method.

Campaign component Assignments per trajectory and budget Validation executions Test executions
Primary controller 27 1,458 2,916
Five additional variants combined 9 per variant 2,430 4,860
Total 3,888 7,776

Validation contains 9 independent trajectories, three per case. Test contains 18 independent trajectories, six per case. Independence refers to separate draws of the stochastic signal process; these are not 18 different networks or field datasets. For example, the primary test count is 18 trajectories × 27 assignments × 2 budgets × 3 repetitions = 2,916 executions. The entire campaign comprises 11,664 executions and 279,936 local decisions, but only those 9 validation and 18 test disturbance trajectories.

Execution cells are shuffled within each trajectory, and worker order is matched across paired settings. Controller variants nevertheless ran in separate sessions, so differences in machine load remain a possible influence on deadline-sensitive results.

6. What is measured and how comparisons are made

Private cost is the sum, over the eight steps, of the agent's energy cost after battery action, a throughput-based wear charge, and a fixed penalty when the realised joint state is unsafe. With discharge-positive command u, the step cost is:

price × (regional demand − u) × duration + wear coefficient × |u| × duration + risk penalty × unsafe indicator.

The north/centre/south wear coefficients are 0.2/0.6/1.0 and their violation penalties are 100/250/500. Values are model cost units, not calibrated euro savings. The controller's planning score includes expected violation probability and severity plus a terminal energy credit; the reported realised cost uses the formula above, without that terminal planning credit. Episodes continue after an electrical violation so the complete cost is recorded.

Collective viability is binary at episode level: every step must have an applied command, satisfy the assessed AC operating limits and respect the shared charging budget. Battery admissibility is enforced when commands are selected and energy updated. The electrical checks cover voltage, rated branch apparent power and generator-bus active/reactive limits; non-convergence does not count as safe. Viability is a team outcome, not an individual method score. It measures the tested controllers' observed survival, not the best survival probability achievable by any policy.

Execution diagnostics record fallback use, whether a completed plan produced the command, published horizon, late discarded results and worker overruns. Command availability is not proof that the planner finished or that the action was electrically safe.

For the primary private-cost comparison, we use all six mixed-team permutations so each method occupies every physical role equally often. We average timing repetitions and role assignments within each independent trajectory, then trajectories within cases, and finally cases with equal weight. Rotations also change opponents, so this comparison is not an isolated unilateral method substitution.

Uncertainty intervals use 2,000 paired bootstrap resamples of complete independent trajectories within each case. Individual decisions, repetitions and role rotations are not treated as independent observations. The intervals below are exploratory 95% pointwise intervals, without correction for the many comparisons in the campaign. All results shown below come from the test phase.

7. Results

A small private-cost advantage for GENCO in the primary controller

Decision budget GENCO mean private cost AC mean private cost Hybrid mean private cost
0.5 s 1,954.73 1,962.96 1,997.58
1.5 s 1,796.35 1,801.85 1,804.52

At 1.5 seconds, GENCO's difference relative to AC is −5.50 units, about −0.31%, with interval [−9.62, −1.73]. At 0.5 seconds, the difference is −8.22 units, but its interval [−19.25, 1.47] includes zero. The hybrid does not consistently improve private cost: its difference from AC is +34.62 [13.72, 59.93] at 0.5 seconds and +2.67 [−6.76, 10.82] at 1.5 seconds.

Private cost relative to AC

Figure 1. Differences from AC under adaptive horizon and neutral fallback, with roles and cases equally weighted. Negative values favour the alternative. Bars show pointwise paired bootstrap intervals.

This supports the usefulness of GENCO in this particular workflow, with a limited gain. It does not establish universal superiority, and the extra AC checks in the hybrid do not automatically translate into better commands under the same deadline.

More computation helps one stress case, but not both

Case Mixed-team viability at 0.5 s Mixed-team viability at 1.5 s
Nominal 100.0% 100.0%
Northern peak 36.1% 88.0%
Southern peak 17.6% 16.7%

Collective viability

Figure 2. Complete-episode viability for the primary controller. Bars average the six mixed assignments; dots show assignment-level rates, not confidence intervals. Each case has six independent test trajectories and three timing repetitions.

The northern case benefits substantially from the larger computation budget. The southern case remains difficult. We have not isolated whether its failures primarily reflect physical flexibility, information, planning assumptions or coordination limits. The nominal 100% is an observed result on this sample, not a reliability certificate.

Controller choices materially change GENCO outcomes

We next hold the electrical evaluator fixed by considering teams in which all three agents use GENCO. At 0.5 seconds, replacing neutral fallback with local_peak while retaining adaptive horizons changes mean total private cost by −326.65 units [−624.38, −67.67] and viability by +16.7 percentage points [5.6, 27.8].

Horizon and fallback comparison

Figure 3. The five alternative horizon/fallback settings compared with adaptive horizon and neutral fallback in all-GENCO teams. Cost is the sum of the three agents' private costs, so its scale differs from Figure 1. Intervals are pointwise; separate execution sessions leave possible machine-load effects.

This contrast compares complete controller executions. Changing fallback can change later battery states and subsequent decisions; it is not a retrospective replacement of only the timed-out commands. The result shows why GENCO should be evaluated together with the controller that decides how long to plan and what to do while planning. It does not establish that local_peak is generally safe or optimal.

8. Contribution, limits and reproducibility

We contribute a reproducible integration of GENCO into a partially observed, multi-agent storage-control workflow, with matched AC and hybrid alternatives, explicit deadline handling, and analysis tied to the commands actually applied. This makes it possible to investigate how a grid foundation model's value changes with the surrounding control design.

The evidence is limited to one modified network, three synthetic cases, fixed policy parameters and a small independent trajectory sample. The agents use a known stochastic law, a simple communication schedule and an idle-remote-action planning assumption. This is a restricted local-controller experiment, not a solved general Dec-POMDP, learned coordination scheme, general Nash equilibrium or decentralized safety guarantee. The supplementary backend-choice analysis also restricts deviations to the declared methods; it does not establish equilibrium over all possible control policies.

The release contains frozen simulation sources, public cases, disturbance trajectories, all applied commands, timing records, audits, numerical analyses and figure data. All twelve validation/test runs passed their log audits and sampled fresh AC checks. Those audits verify implementation and saved evidence; they are not proofs that the controllers always operate safely.

During release preparation, 69 focused tests passed, and numerical reanalysis from a relocated archive reproduced all 162 paired comparisons and 12 rankings per phase. The test reanalysis also matched all three figure datasets. No new physical simulations are needed to perform this numerical check. A fresh isolated installation of the full physics environment has not been validated.

Code, model and data

Original project code is available under the Apache License 2.0; third-party components retain their own licences. Model weights are obtained from the official source rather than redistributed. The archived campaign remains fixed; this expanded write-up explains the same experiments and results.

Sign up or log in to comment