Real-time risk analysis with optimization proxies

Wenbo Chen, Mathieu Tanneau, Pascal Van Hentenryck

TL;DR

This paper introduces RA-E2ELR, a framework that replaces slow, traditional optimization solvers with fast, physics-aware neural network "proxies" for real-time power grid risk assessment. By guaranteeing feasible solutions in milliseconds, the approach enables 30x faster Monte Carlo simulations than industrial solvers while maintaining near-perfect fidelity to ground-truth risk metrics.

What Problem Does This Paper Address?

As power grids integrate more renewable energy (wind and solar) and distributed resources, operational uncertainty skyrockets. To keep the lights on, operators must perform risk assessment: running thousands of Monte Carlo (MC) simulations to calculate metrics like "Conditional Value at Risk" (CVaR) or the probability of system failure.

The bottleneck is the Economic Dispatch (ED) problem. In every single MC scenario, an ED optimization problem must be solved for every time step (e.g., every 5 minutes). For large-scale grids, solving these thousands of optimization problems using standard solvers (like Gurobi) is computationally "intractable" for real-time use. Operators need answers in seconds, but traditional methods take minutes or hours.

Methods

The authors propose Risk Assessment with End-to-End Learning and Repair (RA-E2ELR). Instead of solving the optimization problem from scratch, they train a neural network to act as a "proxy" that maps system conditions directly to optimal generator setpoints.

Key technical innovations include:

  • End-to-End Feasibility: Standard neural networks often produce "impossible" results (e.g., violating power balance or generator limits). RA-E2ELR uses a specialized repair layer that mathematically guarantees the output satisfies min/max limits and power balance constraints.
  • Self-Supervised Learning: The model doesn't need a "labeled" dataset of solutions from a slow solver. Instead, it is trained by directly minimizing the Economic Dispatch cost function, making it more efficient to deploy.
  • Differentiable Architecture: The entire pipeline is differentiable, allowing the model to learn the nuances of the grid's physical constraints during the training phase.

The authors compare their approach against a standard Deep Neural Network (DNN) and other state-of-the-art proxies like DeepOPF and DC3.

Datasets

The methodology was tested on two significant benchmarks:

  1. IEEE 300-bus system: A medium-sized standard test case.
  2. Pegase 1354-bus system: A large-scale system representing a realistic portion of the European grid.

The researchers used historical 2017 load data from the UnitCommitment.jl package, augmented with a Gaussian copula model to generate thousands of realistic, high-variance scenarios for wind, solar, and demand.

Key Insights and Ideas

  • Feasibility is the "Secret Sauce": The paper demonstrates that standard ML models (like a basic DNN) are useless for risk assessment because their small errors in power balance are interpreted by the system as massive "loss of load" events. This leads to a wild overestimation of risk.
  • Speed vs. Fidelity: While other proxies like DC3 attempt to fix errors using iterative gradient steps, they are significantly slower and still fail to match the ground truth as accurately as the E2ELR repair-based approach.
  • Granularity Matters: Unlike "zonal" risk models that simplify the grid into large blocks, this proxy-based approach provides risk metrics at the individual component and branch level, allowing operators to see exactly which line is likely to overheat.

Key Results

  • Massive Speedup: RA-E2ELR achieved a 30.3x speedup compared to the Gurobi solver. It can process a batch of 100 scenarios in roughly 72 milliseconds, whereas the solver takes over 2 seconds.
  • High Fidelity: In the IEEE 300-bus tests, the RA-E2ELR risk profiles (CVaR and Probability of Failure) were virtually indistinguishable from the ground truth provided by the optimization solver.
  • Superiority over Baselines: Other ML architectures (DNN, DeepOPF) consistently over-predicted power imbalances and costs, whereas RA-E2ELR matched the ground-truth cost distribution almost perfectly.

Limitations and Future Work

  • Thermal Violation Overestimation: While RA-E2ELR is highly accurate for power balance and costs, it still tends to slightly over-estimate thermal violations on the larger 1354-bus system during peak congestion hours.
  • DC vs. AC Models: This paper focuses on the DC Economic Dispatch model (common in US markets). The authors note that extending this to the more complex non-linear AC Optimal Power Flow (AC-OPF) is a logical next step.
  • Commitment Decisions: The current model assumes generators are already "online." Future iterations could incorporate "Unit Commitment" (deciding which generators to turn on/off), which involves discrete variables that are traditionally harder for neural networks to handle.

Summary updated

BibTeX
@inproceedings{chen2024real,
  author = {Wenbo Chen and Mathieu Tanneau and Pascal Van Hentenryck},
  title = {{Real-time risk analysis with optimization proxies}},
  booktitle = {Electric},
  year = {2024},
  doi = {10.1016/j.epsr.2024.110822},
}
Figure