GENCO TO THE MOON! Unlocking the Social Value of Grid Foundation Models in Electricity Markets with AI Agents

#6
by Violet24K - opened

GENCO TO THE MOON! Unlocking the Social Value of Grid Foundation Models in Electricity Markets with AI Agents

Team: Zihao Li and Jingrui He, University of Illinois Urbana-Champaign
Contact: zihaoli5@illinois.edu, jingrui@illinois.edu

Links: interactive demo · code

TL;DR. Every actor in an electricity market must anticipate how the grid will respond under uncertainty and tight decision deadlines. A generator is setting bids, a regulator is monitoring market power, or a grid operator is evaluating outage requests. These decisions require evaluating numerous power-flow scenarios, often driven by information arriving as unstructured text.

We develop a simulation framework that uses an LLM to translate news into probabilistic scenarios and combines OPF solvers to support time-constrained decision-making. We demonstrate its utility for multiple market players: power generator in single-generator bidding setting and multi-generator bidding setting; market regulator who set rules to prevent market misconduct; grid operator: who screening outage requests with the news to cut the expected social cost for grid maintainance.

1. Background: Decision-Making in Electricity Markets

Market illustration
Figure 1. Illustration of Electricity Market. Figure sourced from Wikipedia: https://en.wikipedia.org/wiki/Electricity_market.

Electricity market decisions depend on the physical state of the power grid. In each market interval, the system operator solves an optimal power flow (OPF) problem to determine generation dispatch subject to network constraints. These outcomes depend on uncertain factors such as electricity demand, generation availability, transmission outages, and competing offers. Consequently, generators, regulators, and grid operators must anticipate market outcomes when making decisions.

There is also uncertainty what's going on in real-world across multiple aspects, such as weather, incident, and cultural conventions. A central challenge is the computational cost of evaluating decisions across possible market conditions. Each candidate action must be assessed under multiple scenarios, requiring many OPF evaluations. For example, with 100 bidding choices per generator and 100 uncertainty scenarios, a single-generator problem requires 10,000 OPF evaluations, while a three-generator game requires 100,000,000 evaluations. As the number of strategic participants grows, this computational burden increases exponentially. AC-OPF can be prohibitively expensive under tight decision deadlines within each market interval, while simpler approximations such as DC-OPF sacrifice modeling fidelity for computational efficiency. GENCO addresses this trade-off by providing fast approximations of market outcomes with comparable accuracy.

Wall
Figure 2. Day-ahead market illustration: each firm picks from 100 markups and cannot see rivals' offers, so it must score 100ⁿ bid profiles, each on 100 scenarios. Per-evaluation cost is measured on IEEE 118: AC-OPF 19.7 ms (16 cores), DC-OPF 0.63 ms (16 cores), GENCO 0.47 ms (one A100). The shaded band marks what fits in one day-ahead market cycle (1 day).

2. Electricity Market Simulation

Electricity market mechanisms. In U.S. wholesale electricity markets, generators submit offers specifying the prices and quantities at which they are willing to supply electricity. Independent system operators (ISOs) clear the market through network-constrained economic dispatch, determining which generators produce electricity and how much they produce. Market participants are settled at locational marginal prices (LMPs), which reflect generation costs, transmission congestion, and network losses. These outcomes are influenced by electricity demand, generator availability, transmission conditions, and the strategic behavior of market participants.

Our simulation environment. We develop a market simulator based on the PGLib IEEE 118-bus system. The network is partitioned into five regional generation firms (A–E) through modularity clustering, each controlling a portfolio of generators. We retain the generation costs and physical network constraints from PGLib. Market clearing is performed using accurate AC optimal power flow (AC-OPF), with load shedding penalized at a value of lost load (VOLL) of $2,000/MWh. LMPs are derived from the power-balance dual variables and validated against finite-difference estimates.

Our simulator captures the interaction between strategic bidding, network congestion, generation dispatch, and location-dependent pricing. This provides a controlled environment in which different decision-making methods can be compared against the same market-clearing mechanism.

Realistic operating uncertainty. We construct diverse market scenarios using historical 2024 ERCOT load profiles and physically grounded event models. These include extreme weather, generation and transmission outages, fuel-price changes, demand shocks, and infrastructure disruptions. Each event affects the corresponding physical variables, including regional demand, generation availability, line capacities, and correlated equipment failures.

These events are injected as textual bulletins with varying levels of information completeness and ambiguity. The difficulty ranges from explicit operating conditions to indirect descriptions, revised forecasts, contradictory reports, and subsequently corrected rumors. Each bulletin is generated from a known underlying scenario.

Given the relatively small scale of our test grid, we adopt a correspondingly short decision window to emulate the computational constraints of real-time electricity markets.

3. GENCO for Efficient Market Evaluation

Applying GENCO to electricity market decision-making requires two additional capabilities: (1) estimating the final market prices from its predictions and (2) balancing fast approximate evaluations with accurate AC-OPF solutions.

Market price prediction. GENCO predicts generation dispatch but does not directly output locational marginal prices LMPs, which are essential for evaluating generator profits and consumer payments. We therefore introduce a lightweight price prediction head trained using forzen GENCO and AC-OPF-generated labels.

We find that GENCO's learned representations contain information relevant to market pricing. The embedding-based price head achieves the lowest prediction error, reducing the average LMP error at the strategic generator's bus from 4.6 $/MWh with DC-OPF to 1.9 $/MWh. Removing GENCO embeddings increases the error to 9.3 $/MWh.

Adaptation to electricity markets. We further fine-tune GENCO on market scenarios involving strategic bidding and varying operating conditions. This enables the model to better capture how bidding decisions affect dispatch and prices, providing fast and accurate market evaluations across diverse scenarios.

Together, price prediction and electricity market adaptation extend GENCO from power-flow approximation to efficient evaluation of market decisions. The resulting framework supports generator bidding, strategic competition, regulatory analysis, and transmission outage screening under uncertain operating conditions and tight computational budgets.

Pipeline
Figure 3. Overview of the market decision-making framework. An LLM agent interprets textual information to construct a distribution over possible grid conditions. GENCO and its price prediction head provide fast market outcome estimates, which are combined with selective AC-OPF evaluations to support decision-making under a computational budget.

4. Improving Generator Bidding with GENCO

We consider a strategic generator (Firm D) that adjusts its bidding markup under uncertain grid conditions, while all other generators bid at cost. We measure decision quality using bidding regret, defined as the expected profit loss relative to the optimal bid under the true scenario distribution, normalized by the optimal expected profit.

Market evaluation under time constraints. We first isolate the accuracy and efficiency of market simulation by providing the true scenario distribution. Across 110 market states spanning diverse events and normal operating conditions, we compare different methods under computational budgets of 0.5–5 seconds.

Estimator 0.5 s 1 s 2 s 5 s
AC-OPF 0.86% 0.53% 0.38% 0.15%
DC-OPF 4.95% 5.05% 4.93% 4.93%
AC + DC 0.56% 0.39% 0.19% 0.08%
Fine-tuned GENCO 0.09% 0.06% 0.06% 0.06%

Fine-tuned GENCO achieves the lowest regret across all time budgets. At 0.5 seconds as the real-time market interval (e.g., the gap between two consecutive bids), it reduces regret by nearly 90% relative to AC-OPF. Exact AC-OPF can evaluate only a limited number of scenarios under tight deadlines, with lightweight fine-tuning, GENCO can cover substantially more of the uncertainty distribution while maintaining high predictive accuracy.

Performance across scenario types. To assess robustness across different operating conditions, we further report regret by scenario type under the most restrictive 0.5-second budget.

Scenario States AC-OPF DC-OPF AC + DC Fine-tuned GENCO
No event 19 1.26% 10.41% 0.83% 0.06%
Heatwave 16 1.14% 1.16% 0.88% 0.10%
Thunderstorm 10 2.04% 6.83% 1.14% 0.07%
Planned outage 9 0.13% 0.00% 0.04% 0.00%
Gas-price spike 14 0.46% 10.04% 0.26% 0.02%
Gas-price spike + heatwave 1 0.00% 0.00% 0.00% 0.00%
Planned outage + thunderstorm 1 0.28% 0.00% 0.19% 0.00%
Cold snap 5 0.34% 0.00% 0.42% 0.01%
Wildfire shutoff 5 0.50% 7.13% 0.35% 0.67%
High wind 5 0.64% 2.67% 0.29% 0.54%
Solar drop 5 0.00% 3.40% 0.01% 0.00%
Conservation call 5 0.00% 0.00% 0.00% 0.00%
Market-power review 5 0.00% 5.24% 0.07% 0.00%
Geomagnetic storm 5 3.44% 5.50% 2.03% 0.00%
Substation threat 5 0.00% 0.00% 0.00% 0.00%

End-to-end agentic bidding from market news. We next evaluate the complete decision-making pipeline, where an LLM interprets textual market information to infer uncertain grid conditions before selecting a bid. We conduct 240 bidding decisions across 60 episodes using challenging Level-3 reports, with a strict 0.5-second market numerical evaluation budget per decision.

Method Regret (% of optimal profit) Optimal bid selected
LLM + AC-OPF 16.56% 56%
LLM + AC + DC 3.10% 53%
LLM + AC + fine-tuned GENCO 1.25% 71%
LLM + fine-tuned GENCO 1.20% 70%

Fine-tuned GENCO reduces end-to-end bidding regret by over 90% relative to AC-OPF under the same time budget. Within 0.5 seconds, AC-OPF evaluates only about two scenarios per decision, and in 53% of decisions it cannot complete sufficient evaluations to update the bid. In contrast, GENCO evaluates approximately 128 scenarios, reducing regret to 1.20%.

These results demonstrate that fast, accurate market simulation directly improves decision quality under strict real-time computational constraints.

Economic implications. Strategic bidding increases Firm D's profit by approximately $6,300 per hour while raising consumer payments by $58,900 per hour. Most of this increase represents transfers among market participants rather than efficiency losses, which amount to approximately $1,900 per hour. This distinction between individual profit maximization and market-wide welfare motivates our subsequent analysis of strategic competition and market regulation.

5. Multi-Generator Strategic Bidding with GENCO

We extend the single-generator setting to a competitive market where three generators (A, B, and D) independently choose their bidding strategies. Unlike the previous setting, each generator must account for the strategic responses of its competitors, whose bids are not directly observable. We construct the reference market outcomes using AC-OPF across 40 market states, 80 uncertainty scenarios per state, and 216 joint bidding profiles, requiring approximately 690,000 AC-OPF evaluations.

Strategic competition and market outcomes. We first characterize the market equilibria using the AC-OPF reference payoffs. Each market state admits a unique pure-strategy Nash equilibrium. Across normal operating conditions, the equilibrium bidding markups average 2.66×, 3.00×, and 2.99× for generators A, B, and D, respectively.

Equilibrium evaluation under computational constraints. When competitors' bids are unknown, each generator must evaluate potential joint bidding strategies to identify a suitable response. With six strategies per generator, the three-player game requires evaluating 216 bid profiles for each uncertainty scenario. At approximately 20 ms per AC-OPF solve, evaluating even a single scenario requires over 4 seconds, making exhaustive equilibrium evaluation impractical under tight decision deadlines.

We compare AC-OPF, DC-OPF, and GENCO under varying computational budgets. We measure decision quality using the Nash gap, defined as the maximum profit improvement achievable by any generator through a unilateral deviation, evaluated against AC-OPF reference payoffs. A lower Nash gap indicates a strategy profile closer to equilibrium.

Method 2 s 5 s 10 s
AC-OPF N/A $1,728 $815
DC-OPF $6,663 $6,631 $6,576
GENCO $1,232 $1,232 $1,232
AC + GENCO $1,232 $1,232 $1,012

Average Nash gap ($/h) across 35 normal market states and 20 repetitions, with competitors' bids unobserved.

GENCO achieves substantially better equilibrium approximation under tight computational budgets. Within 5 seconds, GENCO reduces the Nash gap by approximately 5× compared with DC-OPF, while AC-OPF cannot reliably evaluate sufficient scenarios. GENCO also reaches a stable solution quickly, whereas AC-OPF requires substantially longer computational budgets to achieve comparable performance. At longer budgets, combining AC-OPF with GENCO can further improve equilibrium approximation.

6. Evaluating Market Regulation with GENCO

Strategic bidding can substantially increase consumer electricity costs, motivating market-power regulation. We evaluate five regulatory mechanisms using the same AC-OPF market simulation environment. To account for strategic adaptation, we compute the Nash equilibrium under each regulatory mechanism rather than assuming generators maintain their original bidding strategies.

We consider five regulatory mechanisms, each with a different approach to mitigating market power:

  • Targeted mitigation: Only Firm A is regulated, with any markup above marginal cost reset to 1×.
  • Markup cap: Generator markups are capped at either 2× or 1.5×, with bids exceeding the cap reset to marginal cost.
  • Conduct-and-impact test: A bid is mitigated if its markup exceeds 1.1× and reducing it to marginal cost would lower the load-weighted average LMP by more than a threshold θ, ranging from $2/MWh to $25/MWh.
  • Pivotal-supplier test: A generator's bid is mitigated if removing its generation capacity would cause load shedding, indicating that it is essential for meeting demand.
  • Price cap: Settlement LMPs are capped at $300/MWh without modifying generator bids or dispatch.

The markup premium is the extra amount consumers pay relative to everyone bidding at cost. We report the share of that premium each mechanism removes, separately for normal states and scarcity (cold-snap) states.

Regulatory mechanism Markup premium reduced (normal / scarcity) Key finding
Targeted mitigation (Firm A only) 14% / 15% Limited impact as other generators retain market power
Markup caps (2× / 1.5×) 50% / 75% Effective but generators tend to bid at the cap
Conduct-and-impact test 13–86% Effectiveness depends strongly on the price-impact threshold
Pivotal-supplier test 98–100% Nearly eliminates the premium by mitigating pivotal generators
Price cap ($300/MWh) 3% / 10% Limited impact on normal markups, but substantially reduces scarcity premiums

Market regulation involves trade-offs between consumer costs and generator profits. For example, a 2× markup cap eliminates approximately 50% of the consumer premium after generators adjust their strategies, compared with 93% if their bids were held fixed. This highlights the importance of accounting for strategic responses when evaluating regulatory policies.

Evaluating these mechanisms requires simulating market outcomes across combinations of bidding strategies, operating conditions, and regulatory parameters. GENCO enables efficient exploration of these policy alternatives, supporting computationally intensive market-power analysis without repeatedly solving AC-OPF.

7. Improving Transmission Outage Planning with GENCO

We consider a grid operator evaluating transmission outage requests for maintenance. Each request involves a 1–3 hour outage within an 8-hour operating window. The operator can approve the proposed outage, reschedule it, or defer it at a fixed cost of $4,000. The objective is to minimize expected social cost, defined as generation cost plus the value of lost load (VOLL) multiplied by unserved demand, under uncertain grid conditions.

Transmission outage planning is particularly sensitive to high-impact contingencies. Approving every outage without evaluation incurs an average regret of $18,634 per request. Accurate estimation of such outcomes is therefore essential for reliable outage decisions.

Adapting GENCO for outage planning. We train a lightweight social-cost prediction head on the fine-tuned GENCO's node embeddings using AC-OPF-generated labels. The training set contains 19,200 scenarios across 600 independent days, including both normal operation and transmission outages, with approximately 8% of cases involving load shedding.

We evaluate different estimators on 200 held-out outage requests under computational budgets of 0.5–2 seconds.

Estimator 0.5 s 1 s 2 s
Operator-adapted GENCO $102 $53 $21
AC + DC $385 $305 $160
AC-OPF $485 $444 $355
DC-OPF $278 $264 $287

Average decision regret ($/request) over 200 outage requests and 100 repetitions.

Operator-adapted GENCO achieves the lowest regret across all evaluated budgets. At 2 seconds, it reduces regret by approximately 87% relative to AC + DC and 94% relative to AC-OPF. The improvement is primarily driven by more accurate prediction of outage-related social costs.

Materials and Model Release

We release our fine-tuned GENCO model and task-specific prediction heads, including models for generation dispatch, locational marginal prices, and outage-related social costs. The released models are based on the IEEE 118-bus system and are available under the Apache 2.0 license.

Sign up or log in to comment