NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Supervised learning for optimal power flow as a real-time proxy

Raphaël Canyasse, Gal Dalal, Shie Mannor

TL;DR

This paper proposes using supervised learning as a high-speed "proxy" for complex Alternating Current Optimal Power Flow (ACOPF) calculations. By training neural networks on historical or simulated data, the researchers achieved cost predictions with less than 1% error at speeds several orders of magnitude faster than traditional optimization solvers, making massive-scale long-term grid planning feasible.

What Problem Does This Paper Address?

In power systems, Optimal Power Flow (OPF) is the mathematical process of determining the most cost-effective way to generate and deliver electricity while respecting physical constraints (like line limits and voltage levels). The "AC" version (ACOPF) is non-linear and non-convex, making it computationally expensive to solve.

While system operators solve this hourly for real-time operations, the real bottleneck occurs in long-term planning. For example, if a planner wants to schedule maintenance for next year, they might use Monte-Carlo simulations to test thousands of "what-if" scenarios across different weather patterns and demand levels. Running a full ACOPF for every hour of every scenario is often too slow to be practical for large-scale grids. The authors seek a "proxy"—a fast approximation that can tell them if a scenario is feasible and how much it will cost without running the full optimization.

Methods

The authors frame the problem as two distinct machine learning tasks:

  1. Classification: Predicting if a specific grid state (load distribution) is feasible (i.e., can the grid actually meet this demand without breaking?).
  2. Regression: Predicting the total cost of the optimal generation for that state.

They compared several standard algorithms:

  • Linear & Piece-wise Linear Regression: Simple, fast, and interpretable.
  • Gaussian Process Regression (GPR): Excellent for non-linear functions but struggles to scale to large datasets.
  • Neural Networks (NN): A shallow architecture (one hidden layer with 10 neurons) designed to capture non-linearities efficiently.
  • Ensemble Methods: Random Forests and "Extra-Trees" for classification.

The Workflow: They generated training data by sampling load values from a "convex polytope" (a multi-dimensional space of possible demands) using a Hit&Run Monte-Carlo algorithm and solved those instances using standard OPF solvers (Matpower) to create "ground truth" labels.

Datasets

The study utilized three standard power system benchmarks:

  • 5-bus case: A "toy" system used for easy visualization of error clusters.
  • IEEE RTS-79: A medium-sized reliability test system.
  • IEEE RTS-96: A larger, more complex version of the RTS-79.

The demand profiles were scaled based on real-world historical US utility data to ensure the "scenarios" reflected realistic daily load cycles.

Key Insights and Ideas

  • The "Scalar" Shortcut: Unlike previous works that tried to predict the generation values for every individual generator (a high-dimensional task), this paper focuses on predicting the scalar cost and feasibility. This simplification significantly boosts accuracy and reduces training time.
  • Multimodality & Congestion: The researchers found that linear models fail because the grid behaves differently depending on which lines are congested. These "congestion modes" create clusters in the data. A neural network can learn these different "regimes" automatically, whereas a simple linear model tries to average them out, leading to high errors.
  • Scalability Trade-offs: While Gaussian Processes were highly accurate for smaller systems, their prediction time increases with the size of the training set. Neural networks, however, remained fast and scalable, making them the superior choice for larger grids like the RTS-96.

Key Results

  • Accuracy: For the IEEE RTS-96 system, the Neural Network achieved a feasibility classification accuracy of 99% and a cost regression error of only 0.85%.
  • Speedup: The proxy methods are significantly faster than exact solvers. While a traditional solver might take nearly a second per instance, the neural network's prediction time is in the microsecond range.
  • Robustness: When tested on a full 24-hour daily load cycle (data the models hadn't specifically seen in that sequence), the Neural Network maintained a maximal error of only 1.2%, while linear models spiked to 20% error during morning demand shifts.

Limitations and Future Work

  • Topology Changes: The current models are trained on a fixed grid topology. If a line is permanently removed or a new one added, the model would likely need retraining.
  • Deep Learning: The authors suggest that "Deep" networks with convolutional layers—specifically tailored to the graph-like structure of power grids—could further improve performance.
  • Active Learning: They propose a hybrid system where the proxy makes a prediction and provides a "confidence" score. If confidence is low, the system would trigger a full, exact ACOPF calculation, ensuring reliability while maintaining speed.

Summary updated

BibTeX
@inproceedings{canyasse2017supervised,
  author = {Raphaël Canyasse and Gal Dalal and Shie Mannor},
  title = {{Supervised learning for optimal power flow as a real-time proxy}},
  booktitle = {ISGT},
  year = {2017},
  url = {https://openreview.net/forum?id=zajSlCCQpY},
}
Figure