LAPSO: A Unified Optimization View for Learning-Augmented Power System Operations

Wangkun Xu, Zhongda Chu, Fei Teng · DOI

Introduction

As power grids transition toward renewable energy and inverter-based resources, operational complexity has surged. Traditional physics-based models, while rigorous, often struggle with the stochastic nature of these resources, leading to either computational intractability or excessive conservatism. While machine learning (ML) has emerged as a powerful tool for forecasting and stability assessment, it is typically deployed in a "siloed" fashion—trained to minimize statistical errors (like Mean Squared Error) without regard for the downstream physical and economic consequences on the grid.

This paper introduces Learning-Augmented Power System Operations (LAPSO), a unified mathematical framework and open-source Python package. LAPSO shifts the paradigm by natively embedding ML models directly into power system optimization pipelines, enabling end-to-end training that prioritizes actual operational costs and grid stability over simple prediction accuracy.

The Paradigm Shift: From Siloed to Integrated Design

Traditional Power System Operations (PSO) rely on first-principle physics to drive forecasting, operation, and control as independent stages. In contrast, LAPSO establishes a "data-physics nexus," where ML models are treated as learnable components within the optimization problem itself.

By integrating these components, the framework allows for a "shift of design coordination." Instead of a forecaster simply predicting solar output, the integrated design ensures that the forecast is optimized to minimize the total cost of dispatch and redispatch, effectively aligning the ML model's objectives with the grid's economic goals.

Methodological Innovations

LAPSO implements this integration through several key techniques:

  1. Stability-Constrained Optimization (SCO): To maintain grid stability, the authors train Neural Networks (NNs) to predict small-signal stability. Using interval bound propagation (IBP), these NNs are translated into Mixed-Integer Linear (MIL) constraints and injected directly into Unit Commitment (UC) problems. This ensures that the resulting schedules are inherently stable.
  2. Objective-Based Forecasting (OBF): Rather than minimizing prediction error, OBF uses a bi-level optimization setup. The upper level updates ML weights to minimize downstream operational costs. By applying Karush-Kuhn-Tucker (KKT) conditions, the framework can differentiate through the optimization solver, allowing gradients to flow from the grid’s cost function back to the neural network.
  3. Robust Uncertainty Handling: The framework incorporates a "wait-and-see" robust optimization formulation, using the Column-and-Constraint Generation (C&CG) algorithm to protect against worst-case load uncertainties.

The Design Triangle and Key Insights

A core contribution of the paper is the definition of the Design Triangle, which illustrates the necessary trade-offs when implementing ML in power systems. Practitioners must balance three competing forces: the modeling target (accuracy), the complexity of the ML technique, and the class of the underlying optimization (computational efficiency and conservatism).

The Design Triangle: Balancing ML techniques, modeling targets, and optimization classes.

This triangle highlights that a highly accurate, deep neural network may be counterproductive if it makes the downstream optimization problem impossible to solve within operational timeframes. Furthermore, the authors demonstrate that Accuracy ≠ Optimality. Two models with identical statistical accuracy can result in vastly different costs; for instance, a model that occasionally misclassifies a stable state as unstable will trigger expensive, unnecessary backup generation.

Empirical Performance and Scalability

The authors validated LAPSO using standard IEEE test systems (up to 300-bus) and real-world spatiotemporal data from a synthetic Texas power system. Key results include:

  • Cost Savings: OBF-trained forecasters reduced total annual operational costs by up to 3.5% compared to traditional accuracy-based forecasting.
  • Enhanced Stability: NN-based stability assessors reduced the grid's Unstable Rate (UR) from ~97% (baseline) to as low as 0.28% without the cost spikes associated with overly conservative linear models.
  • Scalability: The lapso Python package successfully handled the 300-bus system, managing over 8,000 binary variables and solving within approximately 30 minutes.

Conclusion

LAPSO provides a rigorous foundation for the next generation of grid operations, where data-driven insights and physical constraints are co-optimized. While currently focused on mixed-integer convex problems, the framework sets the stage for future research into more complex, non-convex challenges like AC Optimal Power Flow. By releasing lapso as an open-source tool, the authors provide the community with the means to move beyond siloed ML and toward truly integrated, cost-aware power system intelligence.

Summary updated

BibTeX
@misc{xu2025lapso,
  author = {Wangkun Xu and Zhongda Chu and Fei Teng},
  title = {{LAPSO: A Unified Optimization View for Learning-Augmented Power System Operations}},
  year = {2025},
  eprint = {2505.05203},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.05203},
}
Figure