Unsupervised Learning for AC Optimal Power Flow with Fast Physics-Aware Layer

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Zhang, Jiebao, Yan, Haoyu, Sheng, Zhichao, Yu, Hongwen, Ye, Shuang, Wang, Haoyu, Shi, Ye
Format: Preprint
Veröffentlicht: 2026
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866917476401414144
author Zhang, Jiebao
Yan, Haoyu
Sheng, Zhichao
Yu, Hongwen
Ye, Shuang
Wang, Haoyu
Shi, Ye
author_facet Zhang, Jiebao
Yan, Haoyu
Sheng, Zhichao
Yu, Hongwen
Ye, Shuang
Wang, Haoyu
Shi, Ye
contents Learning to solve the Alternating Current Optimal Power Flow (AC-OPF) problem by neural networks (NNs) is a promising approach in real-time applications. Existing methods to ensure the physical feasibility of NN outputs embed a power flow (PF) solver within networks. However, the gradient through the PF solver, namely, implicit differentiation, needs manual Jacobian derivation and the solution of linear systems, which is computationally prohibitive and hinders integration with modern automatic differentiation (AD) frameworks. To address these challenges, we propose FPL-OPF, a novel unsupervised learning framework that incorporates a Fast Physics-aware Layer for AC-OPF problems. FPL-OPF embeds a fast PF iterative solver within the NN and takes solely the last few or even the final iterations into the AD graph. This design ensures high computational efficiency for both the forward and backward passes, circumventing complex custom backward implementations. Theoretically, we rigorously prove that the gradient from this design serves as a high-fidelity surrogate of the true implicit gradient under mild conditions. Extensive experiments demonstrate that FPL-OPF achieves significant speedups over state-of-the-art unsupervised learning approaches, while maintaining near-zero constraint violations and competitive optimality. Our code is available at https://github.com/wowotou1998/fpl-opf
format Preprint
id arxiv_https___arxiv_org_abs_2604_23548
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Unsupervised Learning for AC Optimal Power Flow with Fast Physics-Aware Layer
Zhang, Jiebao
Yan, Haoyu
Sheng, Zhichao
Yu, Hongwen
Ye, Shuang
Wang, Haoyu
Shi, Ye
Computational Engineering, Finance, and Science
Optimization and Control
Learning to solve the Alternating Current Optimal Power Flow (AC-OPF) problem by neural networks (NNs) is a promising approach in real-time applications. Existing methods to ensure the physical feasibility of NN outputs embed a power flow (PF) solver within networks. However, the gradient through the PF solver, namely, implicit differentiation, needs manual Jacobian derivation and the solution of linear systems, which is computationally prohibitive and hinders integration with modern automatic differentiation (AD) frameworks. To address these challenges, we propose FPL-OPF, a novel unsupervised learning framework that incorporates a Fast Physics-aware Layer for AC-OPF problems. FPL-OPF embeds a fast PF iterative solver within the NN and takes solely the last few or even the final iterations into the AD graph. This design ensures high computational efficiency for both the forward and backward passes, circumventing complex custom backward implementations. Theoretically, we rigorously prove that the gradient from this design serves as a high-fidelity surrogate of the true implicit gradient under mild conditions. Extensive experiments demonstrate that FPL-OPF achieves significant speedups over state-of-the-art unsupervised learning approaches, while maintaining near-zero constraint violations and competitive optimality. Our code is available at https://github.com/wowotou1998/fpl-opf
title Unsupervised Learning for AC Optimal Power Flow with Fast Physics-Aware Layer
topic Computational Engineering, Finance, and Science
Optimization and Control
url https://arxiv.org/abs/2604.23548