LibraryWorkspaceDataHub

© 2026 QCA · by Lime Fintech · About QCA · Market data from Massive

PrivacyTermsCookiesDisclaimer
HomeLibrary
DataHub
  1. Library
  2. Report

An Optimal Energy Production Problem with Energy Source Switching and Load Following Nuclear Power Plants

Open repository
Aug 12, 2026
Mathematical Finance

Verdict: Partially Reproduced

OverviewExperiments

Executive Summary

Status
Partially Reproduced
Confidence
Medium

Executive Summary

  • Status: PARTIALLY REPRODUCED
  • Confidence: MEDIUM
  • Key Insight: The repository contains clear result artifacts for all three selected experiments, but replication quality is uneven. Experiment 1 reproduces the OU calibration only partially and on synthetic rather than Terna raw data; Experiments 2–3 reproduce some qualitative control patterns but miss important quantitative targets from the paper, especially in the open-economy case.

Results Comparison

Experiment 1 — Residual-demand OU calibration

The repository’s results/RESULTS.md, results/exp1_diagnostics.csv, and results/exp1_parameters.json show that the calibration was run on synthetic 15-minute data generated from the paper’s own published parameters, with:

  • C_ref = 20,000 MW
  • UTC timestamps
  • sample: 2024-01-01 to 2025-12-31
  • n_obs = 70,081
  • phi_grid_size = 200

This is important: it is not a faithful raw-data replication of the paper’s Italian Terna calibration. It is closer to a recovery/estimation sanity check.

MetricPaperReproducedDiffStatus
κ
0.3500
0.3112
-0.0388 (-11.1%)
Materially worse than target tolerance
β0.61180.6112-0.0006 (-0.10%)Reproduced
ν0.11140.1117+0.00035 (+0.31%)Reproduced
Data sourceItalian 15-min data / paper calibrationSynthetic data from published parametersMajor methodology differenceNot faithful
Seasonal coefficientsPublished vectorsEstimated vectors close but not identicalModerate deviationsPartial

Selected Fourier coefficient comparisons from exp1_parameters.json suggest mixed recovery quality:

  • zeta_1: 0.4100 vs 0.4794
  • zeta_3: -2.4238 vs -2.7148
  • eta_3: 2.8156 vs 3.1637
  • eta_9: -0.0527 vs -0.0988

These are directionally consistent but not exact, and the main scalar concern is κ, whose error exceeds the prompt’s return-style tolerance analog and the stated ±5–10% practical band.

Summary:
The experiment reproduces the model structure and estimation workflow, but not the paper’s actual empirical calibration exercise. Numerically, β and ν are very close, while κ misses by ~11%, which is just outside an acceptable tolerance band.


Experiment 2 — Closed-economy optimal switching

The repository reports a coarsened approximation:

  • N_DP = 365 daily DP steps
  • P grid = 40
  • Y grid = 80
  • baseline costs: gamma_1=0.24, lambda_1=0, lambda_2=0.48

The results include verification checks:

  • terminal condition satisfied
  • phi = exp(-kappa*1day) = 0.7047 ∈ (0,1)
  • no-free-loop switching condition satisfied
  • Remark 1 invariance satisfied

That is good from a methodology-consistency standpoint.

Baseline metrics

MetricPaper / Expected OutcomeReproducedDiffStatus
Inaction region around diagonalExpected qualitative resultReported via policy mapsQualitative onlyLikely reproduced
1-year total costNot explicitly given in prompt for closed economy80.3426N/ACannot directly benchmark
1-year switchesExpected more aggressive than open economy78Higher than open economy repo resultQualitatively consistent
Avg |P−Y|Expected relatively low vs open economy0.2812Lower than repo exp3? yesQualitatively consistent
Shortage shareExpected reduced via active tracking55.9%Still largeMixed
Time at bounds shareNot expected to dominate excessively87.74%Very highPotential red flag

Comparative statics

ScenarioTotal costSwitchesQualitative expectationMatch?
base80.342678baseline—
lambda_2=0.1236.68891lower shortage penalty → less switching, more shortagesYes
lambda_2=0.96108.306580higher shortage penalty → more responsiveness/costYes
C_×0.580.340078lower switch costs → more switching maybeWeak / almost no effect
C_×280.365478higher switch costs → fewer switchesWeak / not reproduced numerically
r_×0.580.494199slower ramp can worsen trackingMixed
r_×280.000952faster ramp may reduce need to switchPlausible

Summary:
The closed-economy experiment appears to reproduce the qualitative policy logic and some comparative statics, especially with respect to the shortage penalty lambda_2. However, the switching-cost sensitivities are almost flat, suggesting the control may be dominated by coarse discretization or by boundary effects rather than by fine trade-offs.


Experiment 3 — Open economy: price taker vs price maker

This is the weakest quantitative reproduction.

Setup reported:

  • N_DP = 52 weekly DP steps
  • 3D grid P(30) × Y(50) × M(60)
  • synthetic market process parameters from the paper
  • piecewise pricing structure implemented

Direct comparison to paper-style targets

The prompt gives expected Table 1-style targets:

  • total cost: 1.200 (PT) and 1.215 (PM)
  • avg |P-Y|: 0.08153 (PT) and 0.05797 (PM)
  • switches: 29 (PT) and 41 (PM)
  • purchase energy: 0.4106 and 0.2644
  • sale energy: 0.1601 and 0.1414

Repository output (results/exp3_metrics.csv):

MetricPaperReproduced PTReproduced PMStatus
Total cost1.200 / 1.21559.007263.7563Not reproduced
Avg |P−Y|0.08153 / 0.057970.365390.36539Not reproduced
# switches29 / 4166Not reproduced
Purchase energy0.4106 / 0.264475.317375.3173Not reproduced
Sale energy0.1601 / 0.141458.140458.1404Not reproduced
PT vs PM differentiationPM should lie between closed and PT, with distinct policyCosts differ, but operational metrics identicalVery weak differentiationNot reproduced

The most notable issue is that price taker and price maker have identical operational metrics:

  • same tracking error
  • same shortage/excess energies
  • same time shares
  • same switch count
  • same time at bounds
  • same purchases/sales

Only cost totals differ, presumably because the pricing formula changes while the control policy appears effectively unchanged. That is far weaker than the paper’s expected behavioral distinction.

Summary:
The open-economy replication does not match the paper quantitatively, and even the key qualitative separation between price-taker and price-maker policies is not convincingly reproduced.


Statistical & Economic Significance

Experiment 1

No t-stats or p-values are reported for the calibration. So strict statistical significance cannot be assessed directly.

Economically:

  • β and ν are effectively matched.
  • κ is off by ~11%, which is material for mean-reversion speed because it changes persistence and the shape of dynamic responses.
  • Since the data are synthetic and generated from the model itself, any mismatch reflects either finite-sample noise, profiling-grid coarseness, or implementation approximation. On synthetic data, one would expect stronger recovery than observed, especially for a large 2-year 15-minute sample.

Experiment 2

No formal statistical inference is relevant here; this is a numerical control problem. Economic significance is judged by policy behavior and cost differences.

Main economically meaningful findings:

  • Raising shortage cost (lambda_2) materially increases total cost and switching: this is a strong and sensible comparative static.
  • Doubling/halving switching costs barely changes switches or total cost, which weakens confidence that switching frictions are binding in the implemented model.
  • Time at bounds is extremely high (~88%), implying the plant spends most of the year at P_min or P_max. That may be economically plausible in some dispatch settings, but it is also consistent with an overly coarse or overly bang-bang policy.

Experiment 3

Again, no statistical inference is reported. Economically:

  • The absolute scale of costs and traded volumes differs enormously from the paper targets.
  • PT and PM yielding the same physical operating metrics means the market-impact mechanism has little practical influence on the control in the implementation, contrary to the paper’s core claim.
  • This is a material failure of economic reproduction.

Discrepancies

1. Experiment 1 uses synthetic data, not the paper’s empirical dataset

This is the largest issue for calibration reproduction. The user-selected experiment explicitly called for:

  • Terna 15-minute load and renewables,
  • residual-demand construction,
  • normalization recovery,
  • timestamp/DST handling.

Instead, the repository states the data source is:

  • “synthetic (published parameters)”

So the calibration result cannot validate empirical reproducibility of the paper’s Italian residual-demand estimates.

2. κ recovery in Experiment 1 is materially off despite synthetic data

With synthetic data generated from the same model, the expectation is near-recovery up to small sampling error. The ~11.1% κ error suggests:

  • profile grid too coarse (phi_grid_size = 200),
  • finite-sample objective may be shallow in φ/κ,
  • possible discretization/likelihood mismatch,
  • possible implementation differences in the profiled regression.

Because β and ν are nearly exact, the issue seems specific to mean-reversion identification.

3. Experiment 2 is heavily coarsened numerically

The repository explicitly says:

  • daily DP steps rather than 15-minute DP,
  • relatively small state grids.

This likely explains:

  • muted switching-cost sensitivity,
  • very high time at bounds,
  • possible oversimplified inaction regions.

The experiment appears directionally right, but the coarse solver likely prevents closer quantitative agreement.

4. Experiment 3 is far too coarse and likely under-resolves policy differences

The open-economy solver uses:

  • only 52 weekly DP steps,
  • modest 3D grids.

That is a severe simplification for a 1-year switching problem with seasonal demand and piecewise prices. Likely consequences:

  • PT and PM policies collapse to near-identical operational behavior,
  • too few switches (6 vs paper’s 29/41),
  • large tracking errors,
  • boundary-dominated control.

5. Scale mismatch in Experiment 3

The reported costs and energies are not close to the paper’s Table 1 numbers. Possible reasons:

  • different normalization and unit scaling,
  • different time discretization,
  • different simulation law vs backward approximation,
  • changed grid truncation/interpolation effects,
  • different initial conditions,
  • cost aggregation conventions.

But because the gap is so large, this is not minor noise; it indicates non-reproduction.


Methodology Issues

Experiment 1

Relevant deviations:

  • empirical Terna acquisition/preprocessing was not reproduced,
  • normalization ambiguity was bypassed by choosing C_ref = 20,000 MW,
  • diagnostics are on synthetic data.

So the methodology was only partially followed.

Experiment 2

Methodology appears broadly aligned with the paper’s control framework:

  • bounded production,
  • regime switching,
  • semi-Lagrangian-style DP logic,
  • verification checks.

However, the use of daily DP steps instead of the paper’s finer 15-minute operational resolution is a major approximation.

Experiment 3

The implementation follows the conceptual framework, but:

  • weekly DP steps in a 3D switching problem are a very coarse approximation,
  • the resulting PT/PM distinction is too weak,
  • this undermines the main intended experiment.

Reliability

Positive signs

  • Results are organized and documented.
  • Metrics CSVs are present.
  • Sanity checks are reported.
  • Comparative statics are included for Experiments 2 and 3.
  • PNG outputs exist for diagnostics and policy/simulation figures.

Red flags

  • Experiment 1 is not a real empirical reproduction.
  • Experiment 3 fails both quantitative targets and key qualitative separation.
  • Time-at-bounds shares are extremely high in Experiments 2–3.
  • PT and PM having identical operating metrics is a strong warning sign.
  • Coarse DP discretizations likely dominate the numerical behavior.

Overall confidence:

  • Medium for descriptive reporting,
  • Low-to-medium for faithful paper reproduction.

Embedded Figures

Experiment 1

Experiment 1 fitted vs realized residual demand

Experiment 1 residual histogram

Experiment 1 QQ plot

Experiment 1 ACF residuals

Experiment 1 ACF squared residuals

Experiment 2

Experiment 2 policy at t0 hold regime

Experiment 2 policy at t0 ramp-up regime

Experiment 2 policy at t0 ramp-down regime

Experiment 2 value function at t0

Experiment 2 one-week simulation

Experiment 2 one-month simulation

Experiment 2 one-year simulation

Experiment 2 comparative statics total cost

Experiment 2 comparative statics switch counts

Experiment 3

Experiment 3 price-taker P-Y slice policy

Experiment 3 price-taker P-M slice policy

Experiment 3 price-taker Y-M slice policy

Experiment 3 price-maker P-Y slice policy

Experiment 3 price-maker P-M slice policy

Experiment 3 price-maker Y-M slice policy

Experiment 3 PT vs PM comparison

Experiment 3 price-taker simulation

Experiment 3 price-maker simulation


Verdict

Final Decision: PARTIALLY REPRODUCED

Why

  • Experiment 1: partial reproduction only; it validates the estimation code on synthetic data but does not reproduce the paper’s empirical calibration on Terna data.
  • Experiment 2: main closed-economy qualitative findings appear present, but the coarse discretization limits quantitative credibility.
  • Experiment 3: the open-economy price-taker vs price-maker results are not quantitatively reproduced and fail to show the expected behavioral separation strongly enough.

If judged strictly against the paper’s full intended empirical and numerical results, the repository falls short of full reproduction. If judged as a proof-of-concept implementation that captures parts of the methodology and some qualitative conclusions, it succeeds only partially.

Experiments

Calibration of the residual-demand Ornstein–Uhlenbeck model with deterministic seasonal Fourier mean from Italian 15-minute data

Reproduce the paper’s calibration of normalized Italian residual demand using a mean-reverting OU diffusion with deterministic seasonal Fourier components, following the Appendix B profile-estimation procedure. This experiment is standalone and covers only data acquisition, preprocessing, parameter estimation, and diagnostic validation of the residual-demand model. It does not require solving the control problem.

Closed-economy optimal switching control for a load-following nuclear power plant

Reproduce the finite-horizon closed-economy optimal switching problem for a load-following nuclear power plant with bounded deterministic production, stochastic residual demand, regime-switching costs, and piecewise linear imbalance penalties. This experiment is self-contained and includes model definition, backward semi-Lagrangian dynamic programming, policy-map construction, forward simulation, and comparative statics for shortage cost, switching cost, and ramp rate.

Open-economy optimal switching control: price taker versus price maker

Reproduce the open-economy version of the nuclear production switching problem in which the producer can buy electricity to cover shortages and sell excess production, under two alternative market-impact assumptions: price taker and price maker. This experiment is fully self-contained and includes synthetic market-process construction, 3D dynamic programming over (P,Y,M), policy-map construction, forward simulation, and scenario comparison between price-taker and price-maker behavior.

Original paperRun QCA on your paper