Skip to main content
QUICK REVIEW

[Paper Review] Unsupervised Optimal Power Flow Using Graph Neural Networks

Damian Owerko, Fernando Gama|arXiv (Cornell University)|Oct 17, 2022
Optimal Power Flow DistributionEngineering7 citations
TL;DR

This paper proposes an unsupervised graph neural network (GNN) approach for optimal power flow (OPF) that learns to map power demands to generator outputs while enforcing physical grid constraints through a differentiable log-barrier penalty. The method achieves near-optimal costs with low constraint violations, outperforming traditional solvers in scenarios with binding current or power rate limits.

ABSTRACT

Optimal power flow (OPF) is a critical optimization problem that allocates power to the generators in order to satisfy the demand at a minimum cost. Solving this problem exactly is computationally infeasible in the general case. In this work, we propose to leverage graph signal processing and machine learning. More specifically, we use a graph neural network to learn a nonlinear parametrization between the power demanded and the corresponding allocation. We learn the solution in an unsupervised manner, minimizing the cost directly. In order to take into account the electrical constraints of the grid, we propose a novel barrier method that is differentiable and works on initially infeasible points. We show through simulations that the use of GNNs in this unsupervised learning context leads to solutions comparable to standard solvers while being computationally efficient and avoiding constraint violations most of the time.

Motivation & Objective

  • Address the computational infeasibility of exact optimal power flow (OPF) in large, nonconvex power grids.
  • Overcome limitations of traditional solvers like interior-point methods, which are slow and not scalable.
  • Develop a machine learning approach that respects physical grid constraints without requiring labeled data.
  • Leverage graph signal processing and GNNs to exploit grid topology for scalable, distributed solutions.
  • Introduce a novel differentiable barrier method to enforce constraints during unsupervised training.

Proposed method

  • Use a graph neural network (GNN) to parametrize the mapping from bus power injections to generator outputs.
  • Formulate the OPF problem as an unsupervised learning task by minimizing the total generation cost directly.
  • Introduce a differentiable, piecewise penalty function based on the log-barrier method to enforce voltage, generator, and line flow constraints.
  • Train the GNN using gradient-based optimization, where the loss function combines cost minimization and constraint violation penalties.
  • Apply the GNN in a decentralized, topology-aware manner, exploiting the sparse structure of power grids.
  • Evaluate performance using relative violation error and constraint violation distributions, not just cost or violation rates.

Experimental results

Research questions

  • RQ1Can a GNN learn to solve OPF problems in an unsupervised manner without requiring labeled optimal solutions?
  • RQ2How effective is a differentiable log-barrier penalty in enforcing physical constraints during end-to-end training?
  • RQ3To what extent can GNNs generalize across different power system topologies, such as radial vs. meshed networks?
  • RQ4How do constraint violations scale with system size and topology, particularly when current or power rate limits are binding?
  • RQ5Can GNN-based models achieve near-optimal costs while maintaining low constraint violation rates compared to standard solvers?

Key findings

  • The GNN achieved an average cost of $903.96 on the IEEE-118 dataset, which is 8.12% higher than the IPOPT solver’s $836.10, indicating strong performance relative to a state-of-the-art interior-point method.
  • Constraint violations occurred in 82.5% of IEEE-118 test samples, but the maximum relative violation was 25.28% for voltage magnitude and 17.20% for generator limits, with most violations concentrated in the lower tail of the distribution.
  • The GNN outperformed IPOPT in scenarios where current or power rate limits were binding, suggesting it is better suited for real-world systems with transmission constraints.
  • The model showed better scalability and feasibility on sparse, locally structured grids, particularly when the key assumptions of locality and binding constraints were met.
  • The proposed evaluation metric—relative violation error—revealed that constraint violations were not uniformly distributed and highlighted the importance of severity over mere frequency.
  • Hyperparameter tuning on the smaller IEEE-30 system led to suboptimal performance on IEEE-118, indicating that model generalization across system sizes requires further architectural or data-driven adaptation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.