A Quadratically-Constrained Convex Approximation for the AC Optimal Power Flow

Gonzalo E. Constante‐Flores, Can LiarXiv 2025 · DOI

Abstract

We introduce a quadratically-constrained approximation (QCAC) of the AC optimal power flow (AC-OPF) problem. Unlike existing approximations like the DC-OPF, our model does not rely on typical assumptions such as high reactance-to-resistance ratio, near-nominal voltage magnitudes, or small angle differences, and preserves the structural sparsity of the original AC power flow equations, making it suitable for decentralized power systems optimization problems. To achieve this, we reformulate the AC-OPF problem as a quadratically constrained quadratic program. The nonconvex terms are expressed as differences of convex functions, which are then convexified around a base point derived from a warm start of the nodal voltages. If this linearization results in a non-empty constraint set, the convexified constraints form an inner convex approximation. Our experimental results, based on Power Grid Library instances of up to 30,000 buses, demonstrate the effectiveness of the QCAC approximation with respect to other well-documented conic relaxations and a linear approximation. We further showcase its potential advantages over the well-documented second-order conic relaxation of the power flow equations in two proof-of-concept case studies: optimal reactive power dispatch in transmission networks and PV hosting capacity in distribution grids.

Introduction

Grid operators solve the AC Optimal Power Flow (AC-OPF) problem to determine the most cost-effective dispatch of power while adhering to the physical limits of the electrical grid. However, the physics of AC power flow are inherently non-convex, rendering the optimization problem computationally challenging at scale.

Traditional approaches often rely on approximations like the DC-OPF or convex relaxations such as Second-Order Cone (SOC) or Semidefinite Programming (SDP). These methods involve significant trade-offs: DC-OPF assumes flat voltage profiles and small angle differences, which are often violated in modern, stressed grids or distribution networks. While convex relaxations can be inexact, other Taylor-series approximations may destroy the mathematical sparsity of the network, leading to high computational costs for large-scale systems. This work introduces a convex approximation that is highly accurate, physically agnostic, and maintains the sparsity required for massive networks.

Methodology: The QCAC Approximation

The proposed Quadratically-Constrained Convex Approximation (QCAC) reformulates the AC-OPF problem to balance accuracy and scalability. The approach utilizes several key techniques:

  1. Lifted Rectangular Coordinates: By formulating the AC-OPF using rectangular voltage coordinates, the complex trigonometric power flow equations are transformed into algebraic equations containing bilinear and quadratic terms.
  2. Difference-of-Convex (DC) Reformulation: Non-convex bilinear products (e.g., $xy$) are expressed as the difference of two convex functions: $\frac{1}{4}(x+y)^2 - \frac{1}{4}(x-y)^2$.
  3. Targeted Linearization: Instead of linearizing the entire equation, which would discard significant second-order information, the authors apply a first-order Taylor series expansion only to the concave portion of the equation, centered around a known base point (e.g., from a state estimator).
  4. Sparsity Preservation: Unlike methods requiring dense matrix decompositions, QCAC operates on individual voltage products, ensuring the resulting convex Quadratically Constrained Quadratic Program (QCQP) mirrors the sparse physical topology of the grid.
Table of notation and parameters for the AC-OPF problem.

Experimental Evaluation

The QCAC model was evaluated using the Power Grid Library (PGLib-OPF), featuring test cases ranging from 30 to 30,000 buses, as well as specific case studies for reactive power dispatch and PV hosting capacity.

Performance at Scale

On a massive 30,000-bus system, QCAC demonstrated high accuracy, with voltage magnitude errors below 0.011 p.u. for 90% of tested instances. Across various benchmarks, QCAC consistently produced generation dispatches closer to the true non-convex feasible set than standard Taylor Series, SOC, or SDP models.

Case Studies

  • Optimal Reactive Power Dispatch (ORPD): In a mixed-integer ORPD problem on a 30-bus system, QCAC achieved 19.43% in cost savings, outperforming the 14.49% savings from a standard SOC relaxation.
  • PV Hosting Capacity: On a 533-node radial distribution network, where SOC relaxations exhibited a 244.8% error, QCAC found near-optimal solutions with approximately 1% error and a 33x speedup over exact non-convex solvers.

Conclusion and Future Work

QCAC offers a scalable and accurate alternative for AC-OPF, particularly in decentralized optimization contexts where sparsity is critical. While the model's accuracy is sensitive to the chosen linearization point, future research will focus on making the approximation adaptive. Integrating QCAC into machine learning pipelines to predict optimal base points and applying it to security-constrained unit commitment are promising directions for further development.

Summary updated

BibTeX
@misc{constanteflores2025quadratically,
  author = {Gonzalo E. Constante‐Flores and Can Li},
  title = {{A Quadratically-Constrained Convex Approximation for the AC Optimal Power Flow}},
  year = {2025},
  eprint = {2501.05623},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.05623},
}
Figure