We use a few cookies

Essential cookies keep the library working. With your permission, we'd also like to use analytics to see what's useful and improve the experience. Read our Privacy Policy or Cookie Policy.

Skip to main content
Home/e-Resources/Energy & Renewable Energy/Towards generalization of graph neural networks for AC optimal power flow
PeriodicalsEnergy & Renewable Energy

Towards generalization of graph neural networks for AC optimal power flow

Checking your access to this record.

Abstract & Overview

AC Optimal Power Flow (ACOPF) is computationally intensive for large-scale grids, often requiring prohibitive solution times with conventional solvers. Machine learning offers significant speedups, but existing models struggle with scalability and topology flexibility. To address these challenges, we propose a Hybrid Heterogeneous Message Passing Neural Network (HH-MPNN) that integrates a heterogeneous graph neural network (GNN) with a scalable transformer and physics-informed positional encodings. Our approach differs from previous GNN-based ACOPF approaches, which rely on local message passing alone. Our architecture explicitly models distinct power system components to capture local features while using global attention for long-range dependencies. Evaluated on diverse benchmarks including PGLearn and GridFM-DataKit datasets, HH-MPNN achieves <1% optimality gap on default topologies across grid sizes from 14 to 2000 buses on average. For N-1 contingencies, our approach demonstrates zero-shot N-1 generalization with <3% optimality gap on several test cases despite training only on default topologies. We further develop an approach that ensures robust N-1 generalization to high-impact contingencies through targeted augmentation of the training data, showing that exhaustive simulation is unnecessary for topologically flexible models. Finally, size generalization experiments demonstrate that pre-training on small grids significantly improves performance on large-scale systems. Achieving computational speedups of up to 5000 times compared to interior point solvers, these results advance practical, generalizable machine learning for real-time power system operations.

Cite this record

Olayiwola Arowolo, Jochen Lorenz Cremer (2026). Towards generalization of graph neural networks for AC optimal power flow. Energy and AI, 25, 100842–100842. https://doi.org/10.1016/j.egyai.2026.100842

Copy in another style

Arowolo, O., & Cremer, J. L. (2026). Towards generalization of graph neural networks for AC optimal power flow. Energy and AI, 25, 100842–100842. https://doi.org/10.1016/j.egyai.2026.100842
Author names are used as deposited, so check their order before you submit.

Metadata is harvested from open-access indexes and can be incomplete. Check a citation against the published version before relying on it — see our open access & attribution policy.