Data Driven Approach towards More Efficient Newton-Raphson Power Flow Calculation for Distribution Grids

Shengyuan Yan, Farzad Vazinram, Zeynab Kaseb, Lindsay Spoor, Jochen Stiasny, Betül Mamudi, Amirhossein Heydarian Ardakani, Ugochukwu Orji, Pedro P. Vergara, Yu Xiang, Jerry Guo · 2025

Read Data Driven Approach towards More Efficient Newton-Raphson Power Flow Calculation for Distribution Grids by Shengyuan Yan, Farzad Vazinram, Zeynab Kaseb, Lindsay Spoor, Jochen Stiasny, Betül Mamudi, Amirhossein Heydarian Ardakani, Ugochukwu Orji, Pedro P. Vergara, Yu Xiang, Jerry Guo (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2504-11650.txt.

Introduction

Power flow sums keep grids stable, but the standard solver can stall when grids run near their limits. Shengyuan Yan and co-authors offer fixes in a 2025 paper on local distribution grids. The solver improves by steps from a starting guess, so a poor start wastes steps or fails outright.

Three fix paths are tried: a math bound method, learned models that predict good starts, and a step-wise learning method that nudges voltages. One learned model bakes physics rules into its training. Tests weigh how many steps each start saves and how often failure is avoided. Grid operators gain tools for faster, safer checks as rooftop solar and car charging strain local lines.

Catalog record

CREATORShengyuan Yan, Farzad Vazinram, Zeynab Kaseb, Lindsay Spoor, Jochen Stiasny, Betül Mamudi, Amirhossein Heydarian Ardakani, Ugochukwu Orji, Pedro P. Vergara, Yu Xiang, Jerry Guo
YEAR2025
COLLECTIONPAPERS
FORMATTXT
FILE SIZE28 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2504-11650

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

Data Driven Approach towards More Efficient Newton-Raphson Power Flow Calculation for Distribution Grids Shengyuan Yan, Farzad Vazinram, Zeynab Kaseb, Lindsay Spoor, Jochen Stiasny, Betül Mamudi, Amirhossein Heydarian Ardakani, Ugochukwu Orji, Pedro P. Vergara, Yu Xiang, Jerry Guo Abstract Power flow (PF) calculations are fundamental to power system analysis to ensure stable and reliable grid operation. The Newton-Raphson (NR) method is commonly used for PF analysis due to its rapid convergence when initialized properly. However, as power grids operate closer to their capacity limits, ill-conditioned cases and convergence issues pose significant challenges. This work, therefore, addresses these challenges by proposing strategies to improve NR initialization, hence minimizing iterations and avoiding divergence. We explore three approaches: (i) an analytical method that estimates the basin of attraction using mathematical bounds on voltages, (ii) Two data-driven models leveraging supervised learning or physics-informed neural networks (PINNs) to predict optimal initial guesses, and (iii) a reinforcement learning (RL) approach that incrementally adjusts voltages to accelerate convergence. These methods are tested on benchmark systems. This research is particularly relevant for modern power systems, where high penetration of renewables and decentralized generation require robust and scalable PF solutions. In experiments, all three proposed methods demonstrate a strong ability to provide an initial guess for Newton-Raphson method to converge with fewer steps. The findings provide a pathway for more efficient real-time grid operations, which, in turn, support the transition toward smarter and more resilient electricity networks. I Introduction Electricity, discovered in the nineteenth century, is one of humanity’s most important achievements. Since the initial installation of electricity systems, the distribution grid has evolved significantly in order to adapt to the changing demands of society and advances in technology [ 1 , 2 ] : • Rise of electrification • Digitalized society • Switch from centralized to decentralized generation A critical component of grid operations and control is power flow calculations. These are essential to determine the steady-state operation of the grid and maintain system stability. To solve power flow calculations, the Newton-Raphson approach is often applied, as it is able to find a good solution (converge) with only a few iterations if the initial value is selected properly [ 3 ] . However, as the grid operates closer to its maximum capacity, particularly during peak demand or high renewable generation, these calculations and the search for a good initial value become increasingly difficult. Ill-conditioned cases at maximum capacity, convergence issues, and the sheer computational complexity of solving power flow equations at scale make efficient and accurate power flow solutions vital to ensure a resilient and reliable electricity system [ 4 ] . This work aims to avoid starting Newton-Raphson with ill-conditioned initial values. We introduce the relevant background in section II and consider three approaches in section III : 1) Bounding the initial condition based on analytical conditions ( section III-A ); 2) Learning approximate solutions that can be used as improved initial values ( section III-B ); 3) Performing initial update steps with an RL agent ( section III-C ). Section IV provides future steps to deepen the research of each proposed method. Section V discusses the results and concludes this research. The contributions of our work can be summarized in three folds: 1. We employed an analytical method to estimate the basin of attraction for Newton-Raphson to limit the input space for the initial guesses. The analytical method does not need any training data and can work with electrical networks of any scale and complexity with some empirical expert experience about setting the proper contraction parameters. 2. We proposed a solution prediction pipeline using both supervised deep learning and unsupervised physics-informed neural network (PINN) models. The supervised learning model can learn from labeled data and predict rough solutions of PF equations, which are later refined by Newton-Raphson method. The PINN model can learn on unlabeled data and generate physically plausible solutions for PF equations as initial guess for Newton-Raphson method. In some cases, initializing the Newton-Raphson method using a flat start fails to converge. In those instances, the PINN method can provide initial guesses for test samples to converge in a limited number of steps. 3. We proposed a reinforcement learning (RL) method to move a given initial guess to the area in the initial guesses input space where Newton-Raphson method can easily converge. Experiments show that even when given an initial guess that is very hard for Newton-Raphson method to converge, our RL method can move it to easy-converge area in at most 10 RL agent steps. Using the initial guesses updated by the RL agent, Newton-Raphson method can converge within 10 iterations. II Problem definition II-A Power Flow The power flow equations for a network with N buses can be compactly written as \displaystyle\bar{S}=\bar{V}\cdot\left(\bar{Y}\bar{V}\right)^{*} (1) where \bar{S} represents the complex power injections \bar{S}=P+jQ at the buses. They are composed of the active power P\in\mathbb{R}^{N} and the reactive power Q\in\mathbb{R}^{N} . The imaginary unit is represented by j to avoid confusion with the current i . (\cdot)^{*} represents the complex conjugate. The complex voltage phasor \bar{V}=Ve^{j\theta} is expressed by the voltage magnitude V\in\mathbb{R}^{N} and the voltage angle \theta\in\mathbb{R}^{N} at each bus. The bus admittance matrix \bar{Y}=G+jB can be separated into its real and imaginary parts, G\in\mathbb{R}^{N\times N} and B\in\mathbb{R}^{N\times N} , and it describes the network that transmits the power [ 5 ] . II-B Solving root-finding problems with Newton-Raphson We will express the power flow problem eq. 1 as a root-finding problem. In such a problem, x represents the unknown variables and F(x) the residual of the governing equations that should equal 0 . To solve such a problem, we apply an iterative procedure as follows: \displaystyle x^{(k+1)}=x^{(k)}+\Delta x, (2) which startes from an initial value x^{(0)} . The Newton-Raphson scheme defines the update step \Delta x as: \displaystyle\Delta x=-\left(\left.\frac{\partial F\left(x\right)}{\partial x}\right|_{x^{(k)}}\right)^{-1}F\left(x^{(k)}\right), (3) where \partial F/\partial x represents the Jacobian of the residual with respect to the unknown variables. The iterative procedure is considered converged when a tolerance criterion ||F\left(x^{(k)}\right)||\leq\epsilon is met. The Newton-Raphson method iterative updating process is illustrated in Fig. 1 . We consider initial values x^{(0)} that require a large number of iterations to converge, here 10, as ill-conditioned cases . Examples of the iterative updating process of easy-convergence and ill-conditioned cases are also present in Fig. 1 . Fig. 1: Newton-Raphson method and the contrast between the initial guesses of easy-convergence case and ill-conditioned cases. The green lines and dots represent an example of the updating iterations of easy-convergence initial guess; the red is an example of the updating iterations of ill-conditioned initial guess. The cross marks the true solution, which is the target of Newton-Raphson method. II-C Case Studies To test our approaches, we apply the methods to a two-bus system shown in fig. 2 . The system connects the generation \bar{S}_{1} at bus 1 with a load \bar{S}_{2} at bus 2 via a line with parameters R and X . Bus 1 serves as the slack bus where the voltage is fixed at \bar{V}_{1}=1.0e^{j0} and the generation \bar{S}_{1} will be set to match the load. The unknown variables x in this setup are the voltage magnitude V_{2} and the voltage angle \theta_{2} at bus 2. Fig. 2: Schematic of

Read the complete text