arXiv Science⌕ Search

arXiv · 2611.27013

Loop-OPF: Solver-Informed Learning for Optimal Power Flow with Inference-Time Topology Adaptivity

Abstract

Learning for optimal power flow (OPF) has recently been advocated to accelerate OPF solutions by using a pre-trained neural network (NN) to predict directly from given inputs such as the load demand. However, existing learning-for-OPF methods largely fall short of ensuring the optimality and feasibility of their predictions. They also struggle to adapt at inference time to unseen topology scenarios, such as those caused by line or generator outages. This work puts forth Loop-OPF, a solver-informed NN that builds its layers from the iterations of the primal-dual hybrid gradient (PDHG) method. Under standard convexity and regularity conditions on DC-OPF, the resultant fixed-point output of Loop-OPF is thus optimal and feasible. To speed up PDHG across diverse OPF scenarios, Loop-OPF learns certain PDHG parameters in a self-supervised manner, without any OPF solution labels. We adopt the deep equilibrium (DEQ) framework for training so that the memory cost does not grow with the number of layers. As the grid topology enters every layer as an input, the same trained Loop-OPF directly adapts to unseen contingencies without retraining. Numerical tests on the IEEE 300-bus and PEGASE 1354-, 2869-, and 9241-bus networks have demonstrated the accuracy and topology adaptivity of the proposed Loop-OPF over competing learning-for-OPF methods.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Mohamad Chehade, Hao Zhu. 2026-11-26. Loop-OPF: Solver-Informed Learning for Optimal Power Flow with Inference-Time Topology Adaptivity. https://arxiv.science/abs/2611.27013

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite arXiv Science by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

Secure State Estimation of Cyber-Physical Systems via Gaussian Bernoulli Mixture Model

The implementation of cyber-physical systems in real-world applications is challenged by safety requirements in the presence of sensor threats. Most cyber-physical systems, especially multi-sensor systems, struggle to detect sensor attacks when the attack model is unknown. In this paper, we tackle this issue by proposing a Gaussian-Bernoulli Secure (GBS) estimator, which transforms the detection problem into an optimal estimation problem concerning the system state and observation indicators. We solve the GBS estimator design problem from two complementary perspectives. On the one hand, the problem can be viewed as an observation-subset selection problem: sequential state estimation under different partial observations. On the other hand, the problem can be viewed as an observation-set update problem. When a few indicators change in arbitrary order, a warm-started proximal gradient iteration updates the estimate efficiently, without re-solving the problem or enumerating subsets. We further establish a worst-case bound on the number of iterations for measurement selection. Moreover, we prove that, for arbitrary attack sequences, the mean-square estimation error admits a horizon-independent bound, provided that the retained clean measurements satisfy a window observability condition. We evaluate the proposed GBS estimator from three perspectives: computational efficiency, detection performance, and estimation error.

eess.SY↗

Development of a velocity form for a class of RNNs, with application to offset-free nonlinear MPC design

This paper addresses the offset-free tracking problem for nonlinear systems described by a class of recurrent neural networks (RNNs). To compensate for constant disturbances and guarantee offset-free tracking in the presence of model-plant mismatches, we propose a novel reformulation of the RNN model in velocity form. A theoretically sound offset-free nonlinear model predictive control algorithm is developed. The algorithm exploits the velocity form model as the prediction model and the static controller as an auxiliary law for the definition of the terminal ingredients. Conditions based on linear matrix inequalities are derived for the design of the auxiliary control law and a nonlinear state observer. Simulations on a pH-neutralisation process benchmark demonstrate the effectiveness of the proposed approach.

eess.SY↗

Gradient Networks for Magnetic Modeling of Synchronous Machines

This paper proposes a magnetic model for saturable synchronous machines, including spatial harmonics. Black-box neural networks do not guarantee reciprocity or invertibility of the modeled magnetic characteristics. In the proposed model, a monotone gradient network represents the gradient of the magnetic field energy, from which the stator current and the electromagnetic torque are obtained. Hence, the model inherently satisfies reciprocity and energy conservation, its outputs are smooth, and the map between the flux linkages and currents is invertible. A dual model based on the co-energy is also given. An activation function that is computationally more efficient than the softmax activation is proposed for real-time control. The model is validated using measured data from two permanent-magnet (PM) synchronous reluctance machines (5.6 kW and 28 kW) and finite-element method (FEM) data. For the 5.6-kW machine, a model with 41 parameters reproduces the measured current and flux-linkage maps with rms errors of about 0.02 p.u. and 0.01 p.u., respectively, when 24 measured points are used for training. The model is also demonstrated in real-time closed-loop control at a sampling frequency of 8 kHz.

eess.SY↗