Physics-Informed Graph Neural Network for Dynamic Reconfiguration of Power Systems

Jules Authier, Rabab Haider, Anuradha Annaswamy, Florian DörflerElectric 2023

Abstract

Dynamic Reconfiguration (DyR) is a critical operational task for modern power distribution systems, aimed at minimizing power losses and managing the integration of volatile renewable energy sources. However, the mixed-integer nature of DyR makes it an NP-hard problem, often resulting in computational times that exceed the requirements for real-time application. This paper introduces GraPhyR, an end-to-end Physics-Informed Graph Neural Network designed to solve the DyR problem efficiently. By embedding power flow physics and discrete decision-making logic directly into the neural architecture, GraPhyR shifts the computational burden to offline training. Experimental results demonstrate that GraPhyR can generate physically feasible, near-optimal grid configurations in milliseconds, showing significant robustness and generalization across varying grid topologies.

Introduction

The increasing penetration of intermittent renewable energy sources, such as solar and wind, necessitates more frequent and agile adjustments to power grid topologies. Dynamic Reconfiguration (DyR) involves the strategic opening and closing of switches to optimize power flow and minimize losses. Mathematically, this is formulated as a Mixed-Integer Program (MIP). The discrete nature of switching decisions leads to a combinatorial explosion of possible topologies, making traditional optimization solvers like Gurobi computationally expensive for real-time operations.

To address these challenges, we propose GraPhyR. Unlike standard machine learning models that treat the grid as a black box, GraPhyR incorporates the underlying physical laws of power systems into its design, ensuring that the predicted states are not only efficient but also physically valid.

Methodology

GraPhyR leverages several key architectural innovations to handle the complexities of power grid reconfiguration:

Gated Message Passing and Local Predictors

The model treats the power grid as a graph where switches function as "gates" within a message-passing framework. During the continuous phase of the model, these gates take values between 0 and 1, representing the probability of a switch being closed.

A significant departure from global prediction models is GraPhyR's use of Scale-Free Local Predictors. Instead of predicting the entire grid state at once, the model employs local multi-layer perceptrons: an L-predictor for lines and an S-predictor for switches. This localized approach allows the model to remain agnostic to the total size of the grid and adapt seamlessly to changes in topology or local failures.

Architecture of the local line and switch predictors within GraPhyR, illustrating how node features are mapped to local predictions.

Physics-Informed Rounding (PhyR)

To bridge the gap between continuous probabilities and discrete switching actions, the model includes a Physics-Informed Rounding (PhyR) layer. This layer ensures that the final binary decisions maintain the grid's radial structure—a critical requirement for standard protection and operation schemes in distribution networks.

Certified Physical Satisfiability

GraPhyR ensures adherence to physical laws through variable partitioning. The network predicts a set of independent variables (e.g., active power and voltage magnitudes), while dependent variables are calculated using exact power flow equations. This design guarantees that fundamental constraints, such as Ohm’s Law, are satisfied by construction rather than through soft penalties in the loss function.

Experimental Evaluation

The performance of GraPhyR was evaluated using three distinct grid models: the canonical BW-33 benchmark, a synthetic variant ($\mathcal{G}_1$) designed to test topological generalization, and the larger TPC-94 grid. Data was generated by perturbing nominal loads and incorporating significant solar penetration.

Performance and Speed

GraPhyR demonstrated a massive computational advantage over traditional methods. It processed a batch of 200 grid instances in approximately 84 milliseconds. In comparison, Gurobi required over 200 milliseconds for a single instance on the small BW-33 grid and up to 18 seconds for larger systems. Furthermore, GraPhyR outperformed existing physics-informed baselines, such as SiPhyR, reducing dispatch errors by up to two orders of magnitude.

Discussion: The Multiple Optima Phenomenon

An interesting finding from the study is the discrepancy between topology error and power loss performance. While GraPhyR sometimes exhibited a topology error exceeding 30%, the resulting power losses remained near-optimal. This suggests that power grids often possess multiple distinct switch configurations that yield nearly identical efficiency. The model's ability to find any of these high-performing configurations is more critical for operational efficiency than replicating the exact output of a specific solver.

Conclusion and Future Work

GraPhyR represents a significant step toward real-time, physics-aware optimization of power systems. By combining the speed of GNNs with the rigor of power flow physics, it provides a scalable solution for dynamic grid reconfiguration. Future research will focus on scaling the architecture to grids with over 200 nodes, refining nodal generation constraints, and validating the model on real-world temporal datasets.

Summary updated

BibTeX
@misc{authier2023physics,
  author = {Jules Authier and Rabab Haider and Anuradha Annaswamy and Florian Dörfler},
  title = {{Physics-Informed Graph Neural Network for Dynamic Reconfiguration of Power Systems}},
  year = {2023},
  eprint = {2310.00728},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.00728},
}
Figure