Skip to main content
QUICK REVIEW

[Paper Review] Emulating AC OPF solvers for Obtaining Sub-second Feasible, Near-Optimal Solutions

Kyri Baker|arXiv (Cornell University)|Dec 18, 2020
Optimal Power Flow DistributionEngineering8 references8 citations
TL;DR

This paper proposes a machine learning approach that emulates an interior-point AC OPF solver using a shallow feedforward neural network with feedback to iteratively approximate the optimal solution. By leveraging learned dynamics to converge quickly and then applying a power flow to enforce AC feasibility, the method achieves sub-second, near-optimal solutions on systems up to 1,354 buses, outperforming DC OPF in cost and matching or exceeding SOCP in speed and accuracy.

ABSTRACT

Using machine learning to obtain solutions to AC optimal power flow has recently been a very active area of research due to the astounding speedups that result from bypassing traditional optimization techniques. However, generally ensuring feasibility of the resulting predictions while maintaining these speedups is a challenging, unsolved problem. In this paper, we train a neural network to emulate an iterative solver in order to cheaply and approximately iterate towards the optimum. Once we are close to convergence, we then solve a power flow to obtain an overall AC-feasible solution. Results shown for networks up to 1,354 buses indicate the proposed method is capable of finding feasible, near-optimal solutions to AC OPF in milliseconds on a laptop computer. In addition, it is shown that the proposed method can find "difficult" AC OPF solutions that cause flat-start or DC-warm started algorithms to diverge.

Motivation & Objective

  • To address the challenge of achieving fast, feasible, and near-optimal solutions to AC optimal power flow (AC OPF) using machine learning.
  • To overcome the limitation of existing ML-based AC OPF methods that often fail to guarantee AC feasibility despite speedups.
  • To develop a framework that emulates iterative solver behavior rather than directly predicting solutions, enabling convergence toward optimality.
  • To ensure feasibility without restricting training data or requiring complex loss functions that penalize constraint violations.
  • To demonstrate the method's robustness on large, challenging networks—including those near voltage collapse—where traditional solvers may diverge.

Proposed method

  • A three-layer fully connected feedforward neural network $F_R$ is trained to emulate the iterative update steps of the Matpower Interior Point Solver (MIPS), using feedback from its own output to generate the next iterate.
  • The network takes the current solution vector $\mathbf{x}^k = [\mathbf{v}^k, \boldsymbol{\theta}^k, \mathbf{P}_g^k, \mathbf{Q}_g^k]^T$ as input and outputs the next iterate $\mathbf{x}^{k+1} = F_R(\mathbf{x}^k)$, enabling iterative refinement toward the optimum.
  • Convergence is determined by $||\mathbf{x}^{k+1} - \mathbf{x}^k|| \leq \epsilon$, avoiding matrix inversions and Jacobian computations inherent in traditional solvers.
  • After convergence, a subset of the predicted variables (voltage magnitudes, angles, and generator outputs) is passed to an AC power flow solver to enforce full AC feasibility.
  • The method does not require restricted training sets or modified OPF formulations; it uses standard AC OPF solutions from a solver as training data.
  • The approach is agnostic to the underlying solver, with the framework applicable to any iterative OPF solver, not limited to MIPS.

Experimental results

Research questions

  • RQ1Can a learned neural network model effectively emulate the iterative behavior of a traditional AC OPF solver to achieve fast convergence without matrix factorizations?
  • RQ2Can the proposed method produce AC-feasible solutions with near-optimal objective values while maintaining sub-second runtime on large systems?
  • RQ3How does the method perform on challenging AC OPF cases—such as those near voltage collapse—where standard solvers may fail to converge?
  • RQ4Does the method outperform DC OPF and SOCP relaxations in terms of solution quality and speed, especially when AC feasibility is required?
  • RQ5Can the method generalize across diverse operating conditions without requiring specialized data augmentation or constraint-penalizing loss functions?

Key findings

  • The method achieves sub-second solution times (0.05–0.25 seconds) on 30-, 500-, and 1,354-bus systems using only a laptop, significantly faster than SOCP and traditional solvers.
  • For the 1,354-bus system, the method achieved an average optimality gap of 0.09%, outperforming SOCP (0.28%) and matching the best-known solution from MIPS.
  • The method successfully solved AC OPF instances that caused flat-start and DC-warm-start MIPS solvers to diverge, demonstrating robustness on difficult cases.
  • Despite being trained on a single network configuration, the model generalized across diverse loading conditions, including those near voltage collapse.
  • The AC power flow post-processing step increased the objective value compared to the AC OPF solution, likely due to slack bus over-generation, indicating a trade-off in feasibility enforcement.
  • The model trained in under 12 hours on a laptop and used only a single hidden layer, indicating low training cost and ease of tuning compared to deep architectures.

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.