cs.AIMar 30, 2026

Differentiable Power-Flow Optimization

Authors: Muhammed Öz, Jasmin Hörter, Kaleb Phipps, Charlotte Debus, Achim Streit, Markus Götz

Abstract

With the rise of renewable energy sources and their high variability in generation, the management of power grids becomes increasingly complex and computationally demanding. Conventional AC-power-flow simulations, which use the Newton-Raphson (NR) method, suffer from poor scalability, making them impractical for emerging use cases such as joint transmission-distribution modeling and global grid analysis. At the same time, purely data-driven surrogate models lack physical guarantees and may violate fundamental constraints. In this work, we propose Differentiable Power-Flow (DPF), a reformulation of the AC power-flow problem as a differentiable simulation. DPF enables end-to-end gradient propagation from the physical power mismatches to the underlying simulation parameters, thereby allowing these parameters to be identified efficiently using gradient-based optimization. We demonstrate that DPF provides a scalable alternative to NR by leveraging GPU acceleration, sparse tensor representations, and batching capabilities available in modern machine-learning frameworks such as PyTorch. DPF is especially suited as a tool for time-series analyses due to its efficient reuse of previous solutions, for N-1 contingency-analyses due to its ability to process cases in batches, and as a screening tool by leveraging its speed and early stopping capability. The code is available in the authors' code repository.

Figures & tables

Appendix figures & tables1 asset

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. FMOPF: Latent Flow Matching with Constraint-Aware Interaction Priors for AC Optimal Power Flow

    Jul 24, 2026Zhilin HuangConstrained Generative ModelingFlow Matching

  2. GridSFM: A Foundation Model for Solving AC Optimal Power Flow

    Sep 24, 2026Luke Bhan, Weiwei Yang, Margaret Capetz +1Neural Surrogate ModelingOptimal Power Flow

  3. Gradient-Free Topology Adaptation for Power Flow Surrogates via In-Context Whitening

    Jul 14, 2026Ayushi Jolotia, Parikshit PareekNeural Surrogate ModelingSurrogate Modeling