Does GENCO know the prices?

#23
by ngwalarauko10 - opened

Participant: ngwalarauko10
Contact: ngwalarauko10@gmail.com · Code: github.com/ngwalarauko10/genco-prices

Summary

Can we extend GENCO to predict the dual variables of the AC optimal power flow (AC-OPF)? As an example, we test the nodal prices on IEEE 118, with two routes:

  1. Decode: read the marginal generators and the near-limit branches from GENCO's dispatch; a linear program fits the prices to the marginal costs.
  2. Probe: linear models and small neural networks learn the prices from GENCO's bus embeddings.

Mean absolute price error over the 118 buses (data's cost unit per MWh), 1,632 held-out scenarios, 95 % confidence interval (CI):

Method Mean error [95 % CI] Median
DC-OPF 2.40 [2.28, 2.54] 1.85
Decode, GENCO dispatch 3.06 [2.80, 3.35] 1.86
Probe, neural network 3.42 [3.25, 3.59] 2.45
Decode, solver dispatch 2.10 [2.01, 2.19] 1.69

Message: the decode almost matches DC-OPF in the median; the right generator classes make its tail much smaller. Our direct probes have a higher mean error than DC-OPF. On real Core data, the price formula with the published constraints predicts held-out zone prices (mean error 0.01 €/MWh).

fig1_price_maps

Figure 1. Left: AC-OPF prices and the solver's sets. Right: decode of GENCO's dispatch. Orange: marginal in one dispatch only. Bottom (selected failure): GENCO misses a marginal generator; the lower region has too low prices.

Method

  1. Data. GENCO Small (seed 0), gridfm/opf_small_case118_ieee, 21,199 test IDs checked against the saved split. pandapower gives AC-OPF and DC-OPF prices for 3,000 test scenarios; 2,435 agree with the stored solution.
  2. Decode. Generators more than 7 MW from both limits are marginal. Branches loaded to 95 % or more can add a congestion price. The decoder uses the DC price formula.
  3. Split. Tolerances and probes use 800 scenarios; we report on other load groups, with load-group bootstrap CIs. We removed three scarcity scenarios (500 per MWh or more) after we saw the data; with them, the decode's gap to DC-OPF is 0.59 [0.28, 0.88].

Results

fig2_errors

Figure 2. (a) Share of scenarios below a given error. (b) Mean error with 95 % CI. Grey: diagnostics with the solver's sets.

  • Tail. The 5 % of scenarios with the largest GENCO error carry 107 % of its mean-error gap to DC-OPF. There, the solver's generator classes cut the error from 21.6 to 8.9 (DC-OPF: 7.6), the solver's branches only to 18.5. A learned marginal-generator classifier gives 2.81 overall.
  • Probes. No tested direct probe beats DC-OPF (neural networks: 3.38 to 3.52 over three seeds); linear probes have a lower error on the embeddings than on GENCO's outputs (3.62 against 4.40).

Core market check

GENCO does not run here. We check the price formula on Joint Allocation Office (JAO) data of the Core day-ahead market, 02–15/10/2026, 1,344 quarter-hours: shadow prices, PTDFs, margins, net positions, zonal prices.

  • With the published constraint rows, the other zone prices predict a held-out zone price with a mean error of 0.01 €/MWh (1,187 quarter-hours; Poland not held out). The rows of another quarter-hour give 23 €/MWh.
  • In 721 of the 1,187 quarter-hours, all published physical constraints are within 1 MW of their limit. There, the shadow prices give the non-Polish price differences within 1 €/MWh in 99.4 %. In the other 39 %, some constraints are off their limit; the cause is not known.

fig3_core_duals

Figure 3. (a) Shadow prices decoded from zonal prices against published ones. (b) Held-out zone price error: published constraint rows against another quarter-hour's rows.

Limitations and next steps

We test one grid and one GENCO seed. The decoder ignores losses and voltage limits. The duals need not be unique. Next: learn the generator classes from the embeddings, then decode. Test the branch shadow prices from GENCO. Add calibrated price intervals.

*AI assistants (Claude Code, OpenAI Codex) helped with code and text.

Sign up or log in to comment