Real-Time Risk Analysis with Optimization Proxies

Wenbo Chen, Mathieu Tanneau, Pascal Van Hentenryck · DOI

Abstract

The increasing penetration of renewable generation and distributed energy resources requires new operating practices for power systems, wherein risk is explicitly quantified and managed. However, traditional risk-assessment frameworks are not fast enough for real-time operations, because they require numerous simulations, each of which requires solving multiple economic dispatch problems sequentially. This paper addresses this computational challenge by proposing proxy-based risk assessment, wherein optimization proxies are trained to learn the input-to-output mapping of an economic dispatch optimization solver. Once trained, the proxies make predictions in milliseconds, thereby enabling real-time risk assessment. The paper leverages self-supervised learning and end-to-end-feasible architecture to achieve high-quality sequential predictions. Numerical experiments on large systems demonstrate the scalability and accuracy of the proposed approach.

Introduction

Modern power grids are facing unprecedented levels of operational uncertainty due to the rapid integration of variable renewable energy sources like wind and solar. To maintain system reliability, operators must transition from deterministic models to probabilistic risk assessment. This involves running thousands of Monte Carlo (MC) simulations to calculate critical metrics such as Conditional Value at Risk (CVaR) and the probability of system failure.

However, the primary bottleneck in this process is the Economic Dispatch (ED) problem. In a typical risk assessment workflow, an ED optimization problem must be solved for every time step across every MC scenario. For large-scale grids, solving these thousands of problems using traditional industrial solvers (e.g., Gurobi) is computationally intractable for real-time decision-making, often taking minutes or hours when seconds are required.

The RA-E2ELR Framework

To bridge this gap, we introduce Risk Assessment with End-to-End Learning and Repair (RA-E2ELR). This framework replaces slow optimization solvers with fast, physics-aware neural network "proxies" that map system conditions directly to optimal generator setpoints.

The RA-E2ELR architecture featuring specialized encoders and a repair-based decoder to ensure physical feasibility.

As shown in the architecture above, RA-E2ELR incorporates several key technical innovations:

  • End-to-End Feasibility: Standard neural networks often produce outputs that violate physical laws, such as power balance or generator limits. RA-E2ELR employs a specialized repair layer that mathematically guarantees the output satisfies these constraints.
  • Self-Supervised Learning: Unlike traditional supervised models, RA-E2ELR does not require a pre-labeled dataset of solutions from a slow solver. Instead, it is trained by directly minimizing the Economic Dispatch cost function, facilitating more efficient deployment.
  • Differentiable Pipeline: The entire architecture is differentiable, allowing the model to learn the nuances of the grid's physical constraints during training.

Experimental Validation

The methodology was evaluated on the IEEE 300-bus system and the large-scale Pegase 1354-bus system using realistic load and renewable generation scenarios. The results demonstrate that RA-E2ELR achieves a 30.3x speedup compared to the Gurobi solver, processing batches of 100 scenarios in approximately 72 milliseconds.

Beyond speed, the "secret sauce" of the approach is its focus on feasibility. Standard deep neural networks (DNNs) often fail in risk assessment because even small errors in power balance are interpreted as massive "loss of load" events, leading to a significant overestimation of risk.

Comparison of power balance violations across different methods; RA-E2ELR maintains zero violation, matching the ground-truth solver.

As illustrated in the figure above, RA-E2ELR maintains near-zero power balance violations, matching the fidelity of the ground-truth solver (GRB) and outperforming other state-of-the-art proxies like DeepOPF and DC3. This high fidelity ensures that the resulting risk profiles are accurate enough for operational use.

Conclusion and Future Work

RA-E2ELR provides a scalable solution for real-time risk assessment in complex power grids, offering a massive computational speedup without sacrificing physical feasibility. While highly effective for DC Economic Dispatch, future research will focus on extending this framework to non-linear AC Optimal Power Flow (AC-OPF) models and incorporating discrete variables for Unit Commitment decisions. These advancements will be crucial for managing the increasingly dynamic and uncertain nature of the global energy landscape.

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