NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A GPU-based Distributed Algorithm for Linearized Optimal Power Flow in Distribution Systems

Minseok Ryu, Geunyeong Byeon, Kibaek KimarXiv 2023 · DOI

Abstract

We propose a GPU-based distributed optimization algorithm aimed at controlling optimal power flow (OPF) in multi-phase and unbalanced distribution systems. Conventional distributed optimization algorithms often rely on parallel execution with multiple CPUs, which leads to significant computation time due to the need for optimization solvers to solve subproblems at every iteration. To address this, we propose a distributed optimization algorithm that eliminates solver dependencies and harnesses GPU acceleration. By decomposing networks to yield subproblems with closed-form solutions based on matrix operations, we leverage the massive parallel processing power of GPUs. Numerical experiments on IEEE test instances ranging from 13 to 8500 buses affirm the scalability and superior speed of our GPU-based approach, achieving up to a 50x speedup compared to CPU-based counterparts.

Introduction

As modern power grids integrate increasing amounts of distributed energy resources (DERs) like solar photovoltaics, electric vehicles, and battery storage, managing the local distribution grid becomes increasingly complex. Unlike high-voltage transmission systems, local distribution grids are typically "unbalanced," featuring multiple phases and highly variable loads. Managing these systems requires solving the Optimal Power Flow (OPF) problem, which ensures efficient operation while respecting physical and operational constraints.

The Computational Bottleneck in Distributed OPF

Distributed OPF is a common strategy to handle large-scale grids by breaking the network into smaller, manageable subsystems that coordinate to find a global solution. The Alternating Direction Method of Multipliers (ADMM) is a standard algorithm for this task. However, ADMM faces a significant bottleneck: in every iteration, each subsystem must invoke a specialized numerical solver (e.g., an LP or NLP solver) on a CPU. For systems with thousands of buses requiring thousands of iterations, this "solver-in-the-loop" approach is too slow for real-time grid management.

Methodology: Solver-Free GPU Acceleration

Our approach reformulates the distributed OPF problem to eliminate the need for external solvers, making it natively compatible with GPU architectures.

1. Linearized Unbalanced Model

We utilize a linearized model of the unbalanced distribution system. This model accurately accounts for complex configurations, including wye and delta connections, which are prevalent in distribution networks.

2. Decomposing for Closed-Form Solutions

The core innovation lies in the mathematical decomposition of the optimization problem. By isolating bound constraints (such as voltage limits) from local equality constraints (physics equations), we derive subproblems that can be solved using closed-form analytical expressions. These expressions consist primarily of matrix-vector multiplications.

3. Leveraging GPU Parallelism

Because the algorithm is reduced to pure linear algebra, it is perfectly suited for GPUs. While a CPU cluster might solve tasks sequentially or in small parallel batches, a GPU can process thousands of matrix operations simultaneously. We implemented this framework using Julia and the CUDA.jl package to exploit high-performance computing capabilities.

Experimental Validation

The algorithm was tested on four standard IEEE test instances to evaluate performance across different scales:

  • IEEE 13-bus: A small, highly loaded case.
  • IEEE 37-bus: A medium-sized underground network.
  • IEEE 123-bus: A complex network with multiple voltage regulators.
  • IEEE 8500-bus: A massive system representing a real-world utility feeder.

Results and Performance

The GPU-based approach demonstrated remarkable efficiency and scalability.

Convergence and Precision

A critical finding was that the transition to GPU hardware did not compromise the algorithm's accuracy. Using single-precision (Float32) on the GPU yielded the same convergence behavior as double-precision (Float64) on the CPU.

Comparison of primal residuals over iterations for CPU and GPU implementations.

As shown in the figure above, the primal residuals for both CPU and GPU implementations follow an identical trajectory, confirming that the GPU acceleration maintains the mathematical integrity of the optimization process.

Speed and Scalability

The performance gains were most evident in the largest test cases. For the IEEE 8500-bus system, the algorithm required 15,817 iterations to converge. The GPU implementation was approximately 50 times faster than a parallel CPU version running on 16 high-performance cores. Total wall-clock time dropped from hundreds of seconds on a CPU cluster to just a few seconds on a single GPU.

Conclusion and Future Work

By replacing traditional solvers with GPU-accelerated matrix operations, we have enabled real-time optimal power flow management for large-scale, unbalanced distribution grids. While this work focuses on a linearized model, it provides a foundation for more complex formulations.

Future research will explore extending this "solver-free" approach to Second-Order Conic Relaxation (SOCR) for improved non-linear modeling. Additionally, we aim to integrate these fast solvers with machine learning models to create hybrid, physics-informed controllers for the next generation of smart grids.

Summary updated

BibTeX
@misc{ryu2023gpu,
  author = {Minseok Ryu and Geunyeong Byeon and Kibaek Kim},
  title = {{A GPU-based Distributed Algorithm for Linearized Optimal Power Flow in Distribution Systems}},
  year = {2023},
  eprint = {2310.09410},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.09410},
}
Figure