Inexact Convex Relaxations for AC Optimal Power Flow: Towards AC Feasibility
Andreas Venzke, Spyros Chatzivasileiadis, Daniel K. Molzahn

TL;DR
This paper investigates the limitations of convex relaxations in AC optimal power flow problems, analyzing solution quality, proposing new metrics, and evaluating methods for improving AC feasibility in large-scale systems.
Contribution
It provides a detailed analysis of inexact convex relaxations, introduces new metrics for solution quality, and assesses feasibility recovery methods across extensive test cases.
Findings
Many solutions with low optimality gaps still lack AC feasibility.
Penalization methods often fail to recover feasible solutions in large systems.
Warm-starting non-convex solvers can significantly reduce computation time in most cases.
Abstract
Convex relaxations of AC optimal power flow (AC-OPF) problems have attracted significant interest as in several instances they provably yield the global optimum to the original non-convex problem. If, however, the relaxation is inexact, the obtained solution is not AC-feasible. The quality of the obtained solution is essential for several practical applications of AC-OPF, but detailed analyses are lacking in existing literature. This paper aims to cover this gap. We provide an in-depth investigation of the solution characteristics when convex relaxations are inexact, we assess the most promising AC feasibility recovery methods for large-scale systems, and we propose two new metrics that lead to a better understanding of the quality of the identified solutions. We perform a comprehensive assessment on 96 different test cases, ranging from 14 to 3120 buses, and we show the following: (i)…
| Penalty | Add. rank-1 | Range of | min. opt. | Range of | max. opt. |
|---|---|---|---|---|---|
| term | cases (%) | (%) | gap (%) | (%) | gap (%) |
| 42.2 | – | 0.0–24.0 | – | 0.2–39.2 | |
| 17.8 | – | 0.0-24.0 | – | 0.0-31.0 | |
| 31.1 | – | 0.0-27.3 | – | 0.0-47.7 |
| Solver / Initialization | Flat start | DC-OPF | QC | SDP |
|---|---|---|---|---|
| KNITRO (SQP) | 85.4 | 75.0 | 81.3 | 81.3 |
| KNITRO (IPM) | 99.0 | 92.7 | 97.9 | 93.8 |
| IPOPT (IPM) | 100.0 | 100.0 | 100.0 | 100.0 |
| QC relaxation | SDP relaxation | |||||
| distance to | distance to | distance to | distance to | |||
| opt. gap | AC-feas. | local opt. | opt. gap | AC-feas. | local opt. | |
| Test cases | (%) | (%) | (%) | (%) | (%) | (%) |
| pglib_opf_case14_ieee | 0.11 | 1.01e+00 | 1.30 | 0.00 | 0.00e+00 | 1.17 |
| pglib_opf_case24_ieee_rts | 0.01 | 4.09e-01 | 0.71 | 0.00 | 4.11e-07 | 1.52 |
| pglib_opf_case30_as | 0.06 | 0.00e+00 | 1.34 | 0.00 | 0.00e+00 | 0.91 |
| pglib_opf_case30_fsr | 0.39 | 4.70e+00 | 8.11 | 0.00 | 8.62e-03 | 0.49 |
| pglib_opf_case30_ieee | 10.78 | 3.08e+01 | 3.35 | 0.00 | 9.41e-05 | 0.72 |
| pglib_opf_case39_epri | 0.48 | 3.47e+01 | 5.31 | 0.01 | 1.42e+01 | 1.43 |
| pglib_opf_case57_ieee | 0.46 | 3.08e+01 | 2.36 | 0.00 | 7.61e-06 | 1.14 |
| pglib_opf_case73_ieee_rts | 0.03 | 3.71e+01 | 1.19 | 0.00 | 2.71e-05 | 1.53 |
| pglib_opf_case89_pegase | 0.73 | 3.26e+01 | 5.67 | 0.01 | 5.29e+01 | 1.71 |
| pglib_opf_case118_ieee | 2.19 | 2.62e+02 | 5.82 | 0.18 | 1.33e+02 | 4.09 |
| pglib_opf_case162_ieee_dtc | 7.54 | 2.07e+02 | 7.68 | 2.26 | 1.02e+03 | 6.08 |
| pglib_opf_case179_goc | 0.12 | 2.04e+03 | 8.26 | 0.06 | 2.04e+03 | 7.98 |
| pglib_opf_case200_tamu | 0.00 | 5.27e-01 | 0.42 | 0.00 | 2.27e-02 | 0.29 |
| pglib_opf_case240_pserc | 3.80 | 7.30e+02 | 10.88 | 2.27 | 6.69e+02 | 9.80 |
| pglib_opf_case300_ieee | 2.55 | 2.13e+02 | 3.10 | 0.11 | 2.00e+01 | 1.78 |
| pglib_opf_case500_tamu | 5.38 | 7.43e+02 | 1.96 | 2.11 | 8.81e+03 | 3.39 |
| pglib_opf_case588_sdet | 1.67 | 8.20e+03 | 7.42 | 0.67 | 3.06e+02 | 4.37 |
| pglib_opf_case1354_pegase | 2.39 | 3.79e+03 | 3.96 | 0.56 | 1.62e+03 | 2.31 |
| pglib_opf_case1888_rte | 1.81 | n.a. | 10.70 | 1.74 | n.a. | 10.47 |
| pglib_opf_case1951_rte | 0.11 | n.a. | 2.53 | 0.01 | n.a. | 1.73 |
| pglib_opf_case2316_sdet | 2.21 | 7.81e+03 | 6.37 | 0.73 | 2.32e+03 | 4.51 |
| pglib_opf_case2383wp_k | 0.99 | 1.11e+04 | 4.60 | 0.38 | 5.12e+03 | 3.58 |
| pglib_opf_case2736sp_k | 0.29 | 1.22e+04 | 2.56 | 0.02 | 1.36e+03 | 0.36 |
| pglib_opf_case2737sop_k | 0.25 | 1.53e+04 | 1.87 | 0.03 | 8.48e+02 | 0.46 |
| pglib_opf_case2746wop_k | 0.36 | 2.99e+05 | 2.88 | 0.06 | 1.39e+04 | 0.52 |
| pglib_opf_case2746wp_k | 0.32 | 3.44e+04 | 2.55 | 0.01 | 1.71e+03 | 0.41 |
| pglib_opf_case2848_rte | 0.12 | n.a. | 4.42 | 0.04 | n.a. | 3.94 |
| pglib_opf_case2853_sdet | 1.43 | 5.30e+03 | 7.64 | 0.54 | 4.81e+03 | 5.64 |
| pglib_opf_case2868_rte | 0.10 | n.a. | 2.16 | 0.20 | n.a. | 2.29 |
| pglib_opf_case2869_pegase | 1.07 | 9.80e+03 | 2.86 | 0.41 | 1.28e+03 | 1.78 |
| pglib_opf_case3012wp_k | 0.98 | 5.24e+03 | 4.03 | 0.16 | 1.05e+04 | 0.99 |
| pglib_opf_case3120sp_k | 0.53 | 1.01e+04 | 3.35 | 0.11 | 5.20e+03 | 0.75 |
| n.a. – The AC power flows in MATPOWER did not converge for these test cases. | ||||||
| QC relaxation | SDP relaxation | |||||
| distance to | distance to | distance to | distance to | |||
| opt. gap | AC-feas. | local opt. | opt. gap | AC-feas. | local opt. | |
| Test cases | (%) | (%) | (%) | (%) | (%) | (%) |
| pglib_opf_case14_ieee__api | 1.77 | 3.21e+00 | 1.13 | 0.00 | 1.62e-06 | 2.16 |
| pglib_opf_case24_ieee_rts__api | 13.01 | 6.89e+01 | 9.24 | 2.06 | 1.91e+01 | 8.27 |
| pglib_opf_case30_as__api | 44.60 | 5.50e+01 | 12.60 | 1.41 | 1.74e+00 | 2.07 |
| pglib_opf_case30_fsr__api | 2.75 | 2.14e+01 | 13.32 | 0.28 | 1.55e+00 | 1.01 |
| pglib_opf_case30_ieee__api | 3.72 | 2.46e+01 | 5.80 | 0.00 | 7.22e-01 | 1.58 |
| pglib_opf_case39_epri__api | 1.57 | 5.80e+01 | 8.25 | 0.18 | 8.18e+00 | 2.68 |
| pglib_opf_case57_ieee__api | 0.07 | 2.15e+01 | 2.27 | 0.00 | 3.65e+00 | 0.94 |
| pglib_opf_case73_ieee_rts__api | 11.06 | 1.05e+02 | 7.37 | 2.91 | 2.14e+01 | 7.35 |
| pglib_opf_case89_pegase__api | 8.13 | 4.02e+01 | 7.39 | 6.88 | 3.11e+01 | 6.26 |
| pglib_opf_case118_ieee__api | 28.63 | 3.64e+02 | 16.46 | 11.14 | 3.30e+02 | 10.51 |
| pglib_opf_case162_ieee_dtc__api | 5.44 | 1.03e+02 | 5.74 | 1.71 | 3.43e+02 | 4.72 |
| pglib_opf_case179_goc__api | 7.17 | 2.38e+03 | 9.92 | 0.64 | 2.12e+03 | 8.96 |
| pglib_opf_case200_tamu__api | 0.02 | 1.16e-01 | 0.68 | 0.00 | 4.10e-05 | 0.45 |
| pglib_opf_case240_pserc__api | 0.79 | 4.19e+02 | 7.53 | 0.33 | 3.68e+02 | 7.16 |
| pglib_opf_case300_ieee__api | 0.88 | 1.52e+02 | 3.81 | 0.03 | 3.79e+01 | 2.25 |
| pglib_opf_case500_tamu__api | 0.07 | 1.98e+00 | 1.16 | 0.00 | 3.25e-03 | 0.48 |
| pglib_opf_case588_sdet__api | 0.92 | 1.88e+03 | 5.32 | 0.53 | 2.39e+02 | 3.82 |
| pglib_opf_case1354_pegase__api | 0.85 | 2.97e+04 | 5.55 | 0.38 | 3.76e+04 | 4.40 |
| pglib_opf_case1888_rte__api | 0.28 | n.a. | 6.44 | 0.17 | n.a. | 5.84 |
| pglib_opf_case1951_rte__api | 0.43 | n.a. | 3.44 | 0.19 | n.a. | 3.01 |
| pglib_opf_case2316_sdet__api | 1.95 | 4.76e+03 | 7.34 | 0.61 | 1.16e+03 | 3.92 |
| pglib_opf_case2383wp_k__api | 0.00 | 1.52e+03 | 4.97 | 0.00 | 3.43e+03 | 9.46 |
| pglib_opf_case2736sp_k__api | 12.97 | 1.58e+03 | 5.98 | 2.60 | 1.57e+03 | 3.50 |
| pglib_opf_case2737sop_k__api | 3.66 | 1.07e+03 | 9.87 | 2.83 | 1.10e+03 | 2.04 |
| pglib_opf_case2746wop_k__api | 0.00 | 1.05e+04 | 4.52 | 0.00 | 1.58e+04 | 8.06 |
| pglib_opf_case2746wp_k__api | 0.00 | 4.79e+03 | 4.46 | 0.00 | 7.82e+03 | 7.94 |
| pglib_opf_case2848_rte__api | 0.21 | n.a. | 3.71 | 0.05 | n.a. | 2.87 |
| pglib_opf_case2853_sdet__api | 2.30 | 4.26e+03 | 7.91 | 0.95 | 4.41e+03 | 4.59 |
| pglib_opf_case2868_rte__api | 0.18 | n.a. | 2.36 | 0.19 | n.a. | 2.04 |
| pglib_opf_case2869_pegase__api | 1.31 | 6.83e+02 | 2.84 | 0.92 | 5.98e+02 | 2.25 |
| pglib_opf_case3012wp_k__api | 0.00 | 1.88e+03 | 5.56 | 0.00 | 3.79e+03 | 6.70 |
| pglib_opf_case3120sp_k__api | 24.14 | 2.41e+03 | 8.13 | 9.59 | 5.16e+03 | 4.99 |
| n.a. – The AC power flows in MATPOWER did not converge for these test cases. | ||||||
| QC relaxation | SDP relaxation | |||||
| distance to | distance to | distance to | distance to | |||
| opt. gap | AC-feas. | local opt. | opt. gap | AC-feas. | local opt. | |
| Test cases | (%) | (%) | (%) | (%) | (%) | (%) |
| pglib_opf_case14_ieee__sad | 7.16 | 3.82e+01 | 5.04 | 0.03 | 6.00e+00 | 4.56 |
| pglib_opf_case24_ieee_rts__sad | 2.93 | 2.93e+01 | 5.71 | 2.52 | 1.48e+01 | 10.19 |
| pglib_opf_case30_as__sad | 2.31 | 1.18e+01 | 7.65 | 0.16 | 9.39e+00 | 5.40 |
| pglib_opf_case30_fsr__sad | 0.41 | 4.78e+00 | 9.03 | 0.02 | 1.70e+00 | 5.57 |
| pglib_opf_case30_ieee__sad | 3.41 | 9.57e+00 | 2.72 | 0.00 | 4.80e-05 | 2.36 |
| pglib_opf_case39_epri__sad | 0.19 | 9.63e+00 | 2.39 | 0.02 | 2.17e+01 | 5.54 |
| pglib_opf_case57_ieee__sad | 0.83 | 1.17e+02 | 2.77 | 0.08 | 6.38e+01 | 4.96 |
| pglib_opf_case73_ieee_rts__sad | 2.53 | 6.20e+01 | 4.72 | 1.47 | 6.69e+01 | 8.83 |
| pglib_opf_case89_pegase__sad | 0.82 | 9.40e+01 | 5.44 | 0.05 | 3.67e+02 | 4.77 |
| pglib_opf_case118_ieee__sad | 9.48 | 1.24e+02 | 8.12 | 3.70 | 7.00e+01 | 7.55 |
| sad/pglib_opf_case162_ieee_dtc__sad | 8.02 | 3.10e+02 | 6.97 | 2.28 | 1.25e+03 | 7.66 |
| pglib_opf_case179_goc__sad | 1.04 | 1.11e+03 | 8.03 | 0.95 | 2.56e+03 | 10.68 |
| pglib_opf_case200_tamu__sad | 0.00 | 1.17e+00 | 0.51 | 0.00 | 2.42e-02 | 1.73 |
| pglib_opf_case240_pserc__sad | 5.24 | 7.73e+02 | 10.32 | 4.17 | 7.33e+02 | 10.37 |
| pglib_opf_case300_ieee__sad | 2.35 | 1.61e+02 | 2.64 | 0.11 | 1.87e+01 | 2.90 |
| pglib_opf_case500_tamu__sad | 7.89 | 1.66e+01 | 1.33 | 7.59 | 1.72e+03 | 3.06 |
| pglib_opf_case588_sdet__sad | 6.26 | 3.56e+03 | 9.49 | 5.75 | 6.57e+02 | 9.01 |
| pglib_opf_case1354_pegase__sad | 2.36 | 4.09e+03 | 3.63 | 0.59 | 1.76e+03 | 3.18 |
| pglib_opf_case1888_rte__sad | 2.72 | n.a. | 9.23 | 2.67 | n.a. | 10.18 |
| pglib_opf_case1951_rte__sad | 0.41 | n.a. | 2.32 | 0.28 | n.a. | 2.96 |
| pglib_opf_case2316_sdet__sad | 2.17 | 6.93e+03 | 6.35 | 0.73 | 2.32e+03 | 5.03 |
| pglib_opf_case2383wp_k__sad | 2.15 | 1.45e+04 | 5.26 | 0.56 | 9.59e+03 | 4.25 |
| pglib_opf_case2736sp_k__sad | 1.53 | 1.74e+04 | 5.14 | 0.18 | 1.94e+04 | 2.90 |
| pglib_opf_case2737sop_k__sad | 1.92 | 1.29e+04 | 4.28 | 0.51 | 2.22e+04 | 2.76 |
| pglib_opf_case2746wop_k__sad | 2.00 | 4.03e+05 | 6.08 | 0.36 | 2.89e+04 | 2.65 |
| pglib_opf_case2746wp_k__sad | 1.67 | 3.66e+04 | 6.00 | 0.19 | 1.80e+04 | 2.56 |
| pglib_opf_case2848_rte__sad | 0.27 | n.a. | 6.33 | 0.20 | n.a. | 7.27 |
| pglib_opf_case2853_sdet__sad | 2.39 | 4.95e+03 | 8.16 | 1.42 | 3.98e+03 | 6.86 |
| pglib_opf_case2868_rte__sad | 0.54 | n.a. | 2.34 | 0.51 | n.a. | 4.41 |
| pglib_opf_case2869_pegase__sad | 1.41 | 9.49e+03 | 3.20 | 0.42 | 1.46e+03 | 2.90 |
| pglib_opf_case3012wp_k__sad | 1.40 | 4.80e+03 | 4.39 | 0.45 | 1.22e+04 | 1.84 |
| pglib_opf_case3120sp_k__sad | 1.41 | 7.83e+03 | 4.29 | 0.60 | 4.16e+03 | 2.98 |
| n.a. – The AC power flows in MATPOWER did not converge for these test cases. | ||||||
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Inexact Convex Relaxations for AC Optimal
Power Flow: Towards AC Feasibility
Andreas Venzke, Spyros Chatzivasileiadis, and Daniel K. Molzahn A. Venzke and S. Chatzivasileiadis are with the Department of Electrical Engineering, Technical University of Denmark, 2800 Kgs. Lyngby, Denmark e-mail: {andven, spchatz}@elektro.dtu.dk.D. K. Molzahn is with the School of Electrical and Computer Engineering, Georgia Institute of Technology, Atlanta, GA 30313, USA as well as the Energy Systems Division, Argonne National Laboratory, Lemont, IL 60439 USA, e-mail: [email protected] work is supported by the multiDC project, funded by Innovation Fund Denmark, Grant Agreement No. 6154-00020B as well as by the U.S. Department of Energy, Office of Electricity Delivery and Energy Reliability under contract DE-AC-02-06CH11357.
Abstract
Convex relaxations of AC optimal power flow (AC-OPF) problems have attracted significant interest as in several instances they provably yield the global optimum to the original non-convex problem. If, however, the relaxation is inexact, the obtained solution is not AC-feasible. The quality of the obtained solution is essential for several practical applications of AC-OPF, but detailed analyses are lacking in existing literature. This paper aims to cover this gap. We provide an in-depth investigation of the solution characteristics when convex relaxations are inexact, we assess the most promising AC feasibility recovery methods for large-scale systems, and we propose two new metrics that lead to a better understanding of the quality of the identified solutions. We perform a comprehensive assessment on 96 different test cases, ranging from 14 to 3120 buses, and we show the following: (i) Despite an optimality gap of less than 1%, several test cases still exhibit substantial distances to both AC feasibility and local optimality and the newly proposed metrics characterize these deviations. (ii) Penalization methods fail to recover an AC-feasible solution in 15 out of 45 cases. (iii) The computational benefits of warm-starting non-convex solvers have significant variation, but a computational speedup exists in over 75% of the cases.
Index Terms:
Convex quadratic optimization, optimal power flow, nonlinear programming, semidefinite programming.
I Introduction
The AC optimal power flow (AC-OPF) problem is fundamental for the efficient operation of power systems [1]. Formulations of AC-OPF have found practical use in tools that minimize system losses and optimize setpoints of reactive power sources (e.g., synchronous condensers). Moreover, AC-OPF is being increasingly considered for market clearing procedures. The AC-OPF minimizes an objective function (e.g., generation cost) subject to the power system operational constraints (e.g., limits on the transmission line flows and bus voltages). However, nonlinearities from the AC power flow equations result in the AC-OPF problem being non-convex and generally NP-hard [2, 3]. To address this issue, different convex relaxations of the AC-OPF problem have been proposed during the last decade, including second-order cone programming (SOCP) [4], semidefinite programming (SDP) [5, 6], and quadratic convex (QC) relaxations [7]. These relaxations have attained significant interest as in several test cases they provably yield the global optimum to the original non-convex problem [6, 8], i.e., they are exact, and are shown to be tractable for test cases with thousands of buses [8, 7]. Besides obtaining a global optimality certificate, solving a convex instead of a non-convex problem has major advantages in various applications of AC-OPF. For example, several decomposition techniques are only guaranteed to converge for convex problems [9] and bi-level programs arising in AC-OPF under uncertainty are more tractable [10]. Additional examples include applications of convex relaxations for distributed AC-OPF in microgrids [11], and for reactive power control in distribution networks [12].
If, however, the convex relaxations of AC-OPF problems are inexact, the obtained solutions are no longer AC-feasible, yielding only a lower bound on the objective value. This poses a barrier for practical applications. Understanding when convex relaxations fail to be exact and what are the most promising options to obtain an AC-feasible (near-)globally optimal solution becomes fundamental for enabling the use of these methods in practice. This paper aims to cover this gap. To this end, we provide an in-depth analysis of the solution characteristics when convex relaxations are inexact, we assess promising AC feasibility recovery methods in a wide range of cases, and we propose new metrics that lead to a better understanding of the quality of the identified solutions.
A related strand in research investigates theoretical conditions which guarantee exactness of convex relaxations of AC-OPF problems. These are, however, mainly limited to radial networks (see, e.g., [13] for a comprehensive review) or impose restrictive assumptions on network parameters [14]. On the other hand, there are several works [15, 16] which define sufficient conditions for inexactness of convex relaxations. The work in [15] focuses on radial networks, and explores conditions for which the SDP relaxation is inexact. The work in [16] provides conditions for arbitrary networks under which the solution to the SDP relaxation will have rank larger than one, i.e., be inexact. The motivation for our work is that the derived conditions on exactness and inexactness do not apply to a large set of meshed transmission grid test instances. Instead, using an comprehensive empirical analysis, we investigate the solution quality when relaxations are inexact, define two metrics to evaluate the distance to AC-feasibility and local optimality, and evaluate the most promising AC-feasibility recovery procedures.
First, we assess the quality of the identified solutions when convex relaxations are inexact. Previous research has shown that although convex relaxations are inexact for the majority of available test cases [17], optimality gaps (i.e., the difference between the objective value of the relaxation and the objective value reported by a non-convex solver) of less than 1% can be achieved in many instances. While much of the literature (e.g., [7, 18]) focuses on further reducing the optimality gap, the quality of the obtained solution is often neglected. However, the quality of the obtained decision variables is essential for various applications of AC-OPF, e.g., in bi-level programs [10] or where an AC-feasible solution is a requirement. As we show in this paper, it is important to realize that even a zero optimality gap does not guarantee that the obtained solution is AC-feasible.
In this paper, we provide a comprehensive assessment of the inexact solutions to the QC and SDP relaxations with respect to both AC feasibility and local optimality. From our analysis, it becomes obvious that the optimality gap alone is an insufficient metric for assessing the quality of the obtained solution. To address this limitation, we propose two new metrics: i) the cumulative normalized constraint violation, and ii) the average normalized distance to local optimality. While existing related studies have focused only on radial distribution networks and the obtained voltage magnitudes for inexact SOCP relaxations [19], in our comprehensive assessment, we use a wide range of meshed transmission network PGLib OPF test cases from [17] and consider all AC-OPF state variables.
Second, we rigorously evaluate two of the most promising directions for recovering an AC-feasible solution on up to 96 different test cases, ranging from 14 up to 3120 buses. The first focuses on modifying the objective functions of convex relaxations with penalization terms to guide them towards an AC-feasible solution [20, 21, 22, 23]. We show how the newly proposed metrics can assess and improve the performance of penalization methods.
This paper focuses on penalty terms based on reactive power [20] and apparent branch flow losses [21], as they have been shown to be tractable for larger systems and to result in near-globally optimal solutions for certain test cases.
The second direction to recover an AC-feasible solution uses the result of the inexact convex relaxation to warm-start a general non-linear solver. While prior work in [18] has solely focused on warm-starting interior-point solvers with solutions to the inexact SOCP relaxation, this paper investigates warm-starting both interior-point and sequential quadratic programming solvers with inexact solutions to the QC and SDP relaxations.
The main contributions of this paper are:
This is the first work to provide an in-depth assessment of the quality of the solution obtained through convex relaxations, measuring the distance of the decision variables for both the QC and SDP relaxations to AC feasibility and local optimality in 96 test cases, ranging from 14 to 3120 buses. We propose two empirical metrics complementary to the optimality gap: i) the cumulative normalized constraint violation, and ii) the average normalized distance to local optimality. We show that despite an optimality gap of less than 1%, several test cases still exhibit substantial distances to AC feasibility and local optimality, highlighting the added value of the two metrics. 2. 2.
We provide a rigorous analysis of three different penalization methods for the SDP relaxation on 45 PGLib OPF test cases up to 300 buses. We show that they fail to recover an AC-feasible solution for 35.6% of test cases and can incur significant sub-optimality of up to 47.7%. We characterize the obtained solutions from penalized SDP relaxations using our proposed metrics. We also show that in cases where penalization methods fail, they often exhibit substantial distances to both AC-feasibility and local optimality. For failed test instances with small distances, we show how our proposed metrics inform a fine-tuning of penalty weights to obtain AC-feasible solutions. 3. 3.
We investigate warm-starting interior-point and sequential quadratic programming solvers with the solutions to the inexact convex relaxations compared to initializations with a flat start or the solutions to the DC optimal power flow. Examining 96 test cases with up to 3120 buses, we show that benefits in terms of computational speed, solver reliability, and solution quality strongly depend on solver and test case, which corroborates the complexity of the AC feasibility recovery problem. The warm-started interior point solver IPOPT [24] achieves the best performance, gaining a computational speed-up in over 75% of the cases.
This paper is structured as follows: Section II formulates the AC-OPF problem and the considered QC and SDP relaxations. Section III proposes two metrics to assess the distances to AC feasibility and local optimality of inexact convex relaxations. Section IV reviews different methods for recovering AC-feasible or locally optimal solutions from inexact convex relaxations. Section V provides extensive computational studies using the PGLib OPF benchmarks. Section VI concludes.
II AC Optimal Power Flow and Relaxations
The AC-OPF problem has a variety of different mathematically equivalent formulations. For a detailed survey on AC-OPF and convex relaxations, the reader is referred to [25]. Here, for brevity, we follow the AC-OPF formulation of [7] to facilitate the derivation of the SDP and QC relaxations.
A power grid consists of the set of buses, a subset of those denoted by have a generator. The buses are connected by a set of power lines from bus to . The optimization variables are the complex bus voltages for each bus and the complex power dispatch of generator for each bus . The objective function minimizes the cost associated with active power dispatch:
[TABLE]
The terms , and denote quadratic, linear and constant cost terms associated with generator active power dispatch, respectively. The following constraints are enforced:
[TABLE]
The bus voltage magnitudes are constrained in (2a) by upper and lower limits and . The superscript denotes the complex conjugate. Similarly, the generators’ complex power outputs are limited in (2b) by upper and lower bounds and , where inequality constraints for complex variables are interpreted as bounds on the real and imaginary parts. The apparent branch flow is upper bounded in (2c) by . The nodal complex power balance (2d) including the load has to hold for each bus. The apparent branch flow is defined in (2e). The term denotes the admittance matrix of the power grid. The branch flow is also limited in (2f) by an upper limit on the angle difference . As proposed in [6, 7], an additional auxiliary matrix variable is introduced, which denotes the product of the complex bus voltages:
[TABLE]
This facilitates the reformulation of (2a), (2e), and (2f) as:
[TABLE]
The only source of non-convexity is the voltage product (3).
II-A DC Optimal Power Flow (DC-OPF) Approximation
The DC-OPF, which serves here as benchmark, is an approximation that is often used in, e.g., electricity markets and unit commitment problems. This approximation neglects voltage magnitudes, reactive power, and active power losses. The state variables are the active generation and the voltage angles . Depending on whether a quadratic cost term is included, the optimization problem is either a linear program (LP) or a quadratic program (QP). For brevity the formulation is omitted, but can be found in, e.g., [26]. Since solver reliability is very important, most system operators currently use the DC power flow approximation, which, however, can exhibit substantial errors [26].
II-B Quadratic Convex (QC) Relaxation
The QC relaxation proposed in [7] uses convex envelopes of the polar representation of the AC-OPF problem to relax the dependencies among voltage variables. The non-convex constraint (3) is removed; variables for voltages, , and squared current flows, , are added; and convex constraints and envelopes are introduced [7]:
[TABLE]
The superscripts denote convex envelopes for the square, bilinear product, cosine, and sine functions, respectively; for details, see [7]. The term denotes the line impedance. The resulting optimization problem is an SOCP that minimizes (1) subject to (2b) – (2d), (4), and (5). The QC relaxation dominates the SOCP relaxation of [4] in terms of tightness at a similar computational complexity, and is particularly effective for meshed transmission networks with tight angle constraints. We therefore omit the SOC relaxation.
II-C Semidefinite (SDP) Relaxation
In the semidefinite (SDP) relaxation proposed in [5, 6], the non-convex constraint (3) is reformulated in matrix form:
[TABLE]
The non-convexity of the resulting formulation is encapsulated in the rank constraint (6b), which is subsequently relaxed. The resulting optimization is an SDP that minimizes the objective function (1) subject to (2b) – (2d), (4), and (6a). In terms of theoretical tightness, the QC neither dominates nor is dominated by the SDP relaxation [7].
Higher-order moment relaxations generalize the SDP relaxation of [6], facilitating global solutions to a broader class of problems at the computational cost of larger SDP constraints [27, 28]. To reduce the size of these constraints, the work in [29] proposes a method to exploit sparsity by sequentially enforcing higher-order moment constraints only for parts of the network which corresponds to higher rank-components in matrix . As this approach is not as computationally mature as the SDP and QC relaxations, and its use for various further application of the AC-OPF, e.g. distributed AC-OPF and bi-level programs, is not explored yet, we leave its detailed computational analysis for future work.
III Distance Metrics for Inexact Solutions
The optimality gap is a widely used distance metric for assessing the quality of inexact solutions obtained from convex relaxations. The optimality gap between the solution to the convex relaxation and the best known feasible point for the non-convex AC-OPF problem is defined as follows:
[TABLE]
The term denotes the lower objective value bound from the relaxation and is the objective value of the best known feasible point obtained from a local non-convex solver. If the relaxation is inexact, the magnitude of the optimality gap does not necessarily indicate the decision variables’ distances to feasibility or local optimality for the original non-convex AC-OPF problem; e.g., for cases with very flat objective functions, solutions with small optimality gaps could still exhibit substantial distances to both. Additionally, the closest solution that is AC-feasible might not coincide with the closest locally optimal solution. To assess both these distances for a wide range of test cases, we propose two new alternative metrics: i) the cumulative normalized constraint violation and ii) the average normalized distance to a local solution.
III-A Cumulative Normalized Constraint Violation
To assess the distance to AC feasibility, we run an AC power flow (AC-PF) with set-points obtained from an inexact convex relaxation and evaluate the constraint violations. For each bus , there are four state variables: the voltage magnitude , the voltage angle , the active power injection , and the reactive power injection . If the solution to the convex relaxation is inexact, the resulting state variables do not fulfill the AC power flow equations and are hence AC-infeasible. To recover a solution that satisfies the AC power flow equations, an AC power flow (AC-PF) can be computed with the set-points obtained from the convex relaxation.
Theoretically, it is possible to model generator-connected buses as , , or buses. Please note that for all three options discussed in the following we assume that one of the generator is designated as slack bus, and is therefore modelled as bus. We exclude the possibility to model all generators as buses due to two reasons: First, the voltage angles are not readily available for the SDP relaxation, and, if estimated, would likely of lower quality than , and set-points directly obtained from the solution to the relaxation. Second, specifying voltage angles at multiple buses within the AC power flow has to our knowledge not been reported in literature, and we expect poor convergence performance. For modeling as buses, in our computational experiments, we also observed issues with the convergence of AC power flows. Accordingly, we choose to use the setpoints for active power injections and voltage magnitudes at generator-connected buses from the relaxation’s solution, i.e., modeling generators as buses.
We propose the cumulative normalized constraint violation resulting from this power flow solution as a metric to quantify the distance to AC feasibility. This metric can be computed by taking the sum of constraint violations from the AC-PF solution, normalized by the respective upper and lower constraint bounds. For each variable and corresponding set we define the cumulative normalized constraint violations as:
[TABLE]
The term refers to to the value of the variable from the AC power flow solution. The minimum and maximum constraints on the variable are represented by the terms and , respectively. We take the magnitude of the violation into account since larger violations indicate a larger distance to AC-feasibility. We normalize each violation with respect to the upper and lower constraint limits, which allows for a fair comparison between different type of violations. We choose not to normalize by the number of buses or constraints, as only a very low percentage of constraints is usually violated in our studies, as can be seen in Fig. 1. We found that this metric carries more information than assessing the average or maximum constraint violations since only a small subset of the constraints are active in typical AC-OPF problems. This metric allows for a comparison of the distance to AC feasibility among relaxations for a given system. Note that it is not averaged by the number of buses, and as a result, inexact convex relaxations of AC-OPF problems for larger systems may exhibit larger values.
We note that the accuracy of any power system model inherently relies on appropriate values for parameters such as transmission line limits, impedances, etc. These parameters can vary with changes in the weather and operating conditions, leading to differences between the modeled and actual system behavior. While analyses of these differences are not in the scope of this paper, we refer the reader to other research which proposes models that incorporate the effects of temperature, weather, frequency variations, etc. on the model parameters [30, 31, 32, 33].
III-B Average Normalized Distance to a Local Solution
To assess the distance to local optimality, we propose an additional metric defined as the averaged normalized distance of the variable values obtained with the inexact convex relaxation to a locally optimal solution obtained with a non-convex solver.111Note that no AC-OPF problems with multiple local solutions were identified in the numerical results for our large-scale test cases with any of the three different solvers or in [34]. This could indicate that no spurious locally optimal solutions exist, i.e., solutions that are locally optimal and not globally, and the identified solutions are in fact the globally optimal solutions. This metric can be computed by taking the absolute difference between the variable value from the relaxation’s solution and the value from the local optimum, normalized by the difference in the upper and lower variable bound, and then averaging over all variables. As this metric is averaged by the number of variables, which is a function of the system size, it allows for fair comparison among relaxations for systems with different sizes. For each variable and corresponding set , we define the average normalized distance as:
[TABLE]
The terms and are the values of the variable defined by the solution to the convex relaxation and by a locally optimal solution to the original non-convex AC-OPF problem, respectively.
IV Recovery of AC-Feasible and Local Solutions
IV-A Penalization Methods for SDP Relaxation
For a variety of test cases, the SDP relaxation has a small optimality gap but the obtained solution does not fulfill the rank-1 condition (6b); see, e.g., [20]. To drive the solution towards a rank-1 point in order to recover an AC-feasible solution, several works [20, 21] have proposed augmenting the objective function of the semidefinite relaxation with penalty terms, denoted with . Note that the penalized formulations are not relaxations of the original AC-OPF problem, but can still be useful for recovering feasible points. We focus on the following three penalty terms. First, the nuclear norm proposed by [35] is a widely used penalty term for the general rank-minimization problem:
[TABLE]
The penalty weight is denoted with and the term indicates the trace of the matrix , i.e., the sum of the diagonal elements. Second, specific for the AC-OPF, the work in [20] proposes penalization of the reactive generator outputs:
[TABLE]
The term denotes the reactive power output of the generator connected to bus . Finally, the work in [21] suggests adding an apparent branch flow loss penalty to the objective function:
[TABLE]
The term represents the absolute apparent power loss on the line from bus to bus . Both the works [20, 21] show that certain choices of result in successful recovery of an AC-feasible and near-globally optimal operating points for selected test cases. In Section V-C, we will present a counterexample and provide a detailed empirical analysis of the different penalty terms for a wide range of test cases. Note that to the knowledge of the authors, penalization methods have not been applied to address inexact solutions resulting from the QC relaxation.
The two proposed metrics in Section III-A and Section III-B complement the evaluation of penalization methods as follows. First, by evaluating the cumulative normalized constraint violation for different penalty weights , we can quantify if a solution obtained from the penalized SDP relaxation is AC-feasible as well as how different magnitudes of penalty weights compare in terms of distance to AC-feasibility, e.g., we can assess whether increasing the penalty moves the obtained solution closer to AC-feasibility. Second, by evaluating the average normalized distance to local optimality, we can assess whether the penalization terms drive the solution towards the solution provided by a non-convex solver, or otherwise either towards regions with sub-optimal costs. Note that in theory the penalization could also drive the solution towards a spurious locally or globally optimal solution with an lower objective value. For the large-scale test cases in our simulation study, we did not observe multiple locally optimal solutions, and the penalization did not drive the solution towards an AC-feasible solution with lower objective value. Third, if both metrics remain substantial for a wide range of penalty weights , then this indicates that the penalty term under study might not be able to recover an AC-feasible solution. Refer to Section V-C for a detailed computational analysis.
IV-B Warm-Starting Non-Convex Local Solvers
When penalization methods are not successful at recovering a rank-1 solution, non-convex solvers can be warm started with the solution of convex relaxations in order to recover an AC-feasible and locally optimal solution. Compared to a flat start of , , which is a common initialization for non-convex solvers, warm-starting could lead to i) reduced computational time and ii) improved solution quality. For these purposes, we utilize two types of non-convex solvers:
IV-B1 Sequential Quadratic Programming (SQP)
To compute a search direction, this method iteratively solves second-order Taylor approximations of the Lagrangian which are formulated as Quadratic Programs (QP). Line-search or other methods are used to determine an appropriate step size. In theory, this solution method is well suited for being warm-started [36]. We will use KNITRO [37] as the reference SQP solver.
IV-B2 Interior-Point Methods (IPM)
To deal with the constraint inequalities in the optimization problem, a logarithmic barrier term is added to the objective function with a multiplicative factor. This factor is decreased as the interior-point method converges, and the resulting barrier term resembles the indicator function. Interior point methods are challenging to efficiently warm start since the logarithmic barrier term initially keeps the solution away from inequality constraints that are binding at optimality [38]. While theoretical performance guarantees on warm-starting interior-point methods for linear programs exist (see e.g. [39, 40]), common practice in the literature for non-convex programs (see, e.g., [41]) is to follow an empirical approach based on extensive computational experiments. We will use both KNITRO [37] and IPOPT [24] as reference IPM solvers as they are among the most robust and scalable solvers for AC-OPF [34].
V Simulations & Results
First, we specify the simulation setup. For the PGLib OPF test cases, we then evaluate the distance to AC feasibility and local optimality for the DC-OPF solution and solutions to the QC and SDP relaxations. We also study how these distances are correlated with the optimality gap. We use the DC-OPF as a computationally inexpensive benchmark. We next investigate the robustness and potential sub-optimality of penalization methods. Finally, we focus on warm-starting of non-convex solvers with solutions of inexact convex relaxations.
V-A Simulation Setup
We use the implementations of the AC-OPF, DC-OPF, QC relaxation, and SDP relaxation provided in PowerModels.jl [42], a computationally efficient open-source implementation in Julia. In PowerModels.jl, we use KNITRO and IPOPT to solve the non-convex AC-OPF, MOSEK to solve the DC-OPF and the SDP relaxation, and IPOPT to solve the QC relaxation. The analysis in this work uses the PGLib OPF Benchmarks v18.08 [17], in particular, the test cases ranging from 14 to 3120 buses under typical, congested, and small angle difference conditions. We exclude the test case case2000_tamu since the SDP relaxation fails for this test case. For the remaining 96 test cases, the QC and SDP relaxations return the optimal solution, although it should be noted that MOSEK reports “stall” in some of the test cases due to numerical issues. For the small angle difference conditions, the DC-OPF is infeasible for several instances. For these, we iteratively relax the angle difference constraints in the DC-OPF problem in 10% steps until we obtain a feasible solution. All simulations are carried out on a laptop.
V-B Distances to AC Feasibility and Local Optimality
V-B1 AC Feasibility
In the following, we evaluate the constraint violation resulting from AC power flow solutions in Matpower [43] obtained using the generators’ setpoints for active power outputs and voltage magnitudes from the DC-OPF, QC relaxation, and SDP relaxation. Note that the generator voltage set-points are fixed to 1.0 p.u. for the DC-OPF. For this purpose, we make the following assumptions: The largest generator is selected as slack bus. A numerical tolerance of 0.1% is considered as minimum constraint violation limit. Note that out of 96 test cases considered, the AC power flow does not converge for four test cases under any of the three loading configurations due to numerical ill-conditioning, i.e., in total 12 AC power flows do not converge. The characteristics of these four test cases, which model parts of the French transmission network, are detailed in [44]. These AC power flows also do not converge using PowerModels.jl with IPOPT. The underlying reasons for power flow non-convergence are outside the scope of this work. The following AC feasibility analysis uses the results of the Matpower AC-PF and focuses on the remaining 84 convergent test cases.
In Fig. 1, we investigate the fraction of constraints violated and show that, in terms of fraction of constraints violated, the lower 75th percentiles for the QC and SDP relaxations (2.9% and 2.7%, respectively) are lower than for DC-OPF (4.2%). In Fig. 2, we show the cumulative normalized constraint violation for each constraint type and for the entire AC-OPF problem. We can make the following observations: First, for active power constraints, the 75th percentile for the SDP relaxation do not exhibit constraint violation, whereas for the DC-OPF this holds true only for the 25th percentile. The cumulative violation of generator reactive power constraints represents a significant share of the overall cumulative violation, with the SDP and QC relaxations exhibiting lower constraint violations than DC-OPF. For the voltage magnitude, all three initializations of the AC-PF lead to similar cumulative violations. For the apparent branch flow constraints, it can be observed that AC power flows initialized with the solution to the SDP relaxation lead to significantly smaller constraint violations compared to DC-OPF and QC relaxation. Regarding the overall cumulative constraint violation, the lower 25th percentile for the SDP relaxation (11.8%) is lower than the QC relaxation (33.7%) and the DC-OPF (239.5%), as these test cases are very close to a rank-1 solution. Furthermore, the lower 75th percentile of the cumulative constraint violation for the QC and SDP relaxations are 54.1% and 63.5% lower than for the DC-OPF, respectively, highlighting that the obtained solutions are closer to AC feasibility. We also evaluate the type of constraint leading to the maximum constraint violation and we find that this is the generator reactive power in 71.1%, 50.6% and 49.4% of test cases for the DC-OPF, QC relaxation and SDP relaxation, respectively. If we enforce the reactive power limits in the AC-PF, whenever possible, active generator power and voltage limit violations occur more often instead. Developing systematic procedures to convert to buses when generator reactive power limits are violated in the AC power flow is an interesting direction for future work. The cumulative constraint violation relates to the distance to an AC-feasible solution, which is not necessarily the same as the distance to a local optimum. We analyze the latter next.
V-B2 Local Optimality
For the 96 considered test cases, we compute the average normalized distance between the locally optimal solution found by the non-convex solver IPOPT and the solutions to the DC-OPF, the QC relaxation, and the SDP relaxation. Fig. 3 shows the average distance for each state variable and for the average of all state variables. Considering all state variables, the lower 75th percentiles for the SDP and QC relaxations are less than 10% (9.0% and 9.9%), and significantly smaller than the DC-OPF solution (19.3%). Looking at the individual state variables, the SDP and QC relaxations’ solutions are significantly closer to the local solution than the DC-OPF, particularly for the reactive generator power and voltage magnitude . For generator active power and the apparent branch flow, the SDP relaxation is the closest (less than 5% for the lower 75th percentile). Since obtaining the voltage angles from the SDP relaxation’s solutions is not straightforward, the angles are set to zero, and we do not report the distance in Fig. 3. The closeness of solutions from the QC and SDP relaxations relative to the local solution motivates our investigation of warm-starting techniques in Section V-D.
V-B3 Correlation with Optimality Gap
We investigate the correlation between the optimality gaps and both the averaged normalized distance and cumulative constraint violation for the QC and SDP relaxations as shown in Fig. 4. Note that both axes are on a logarithmic scale and the values are thresholded at . We use the locally optimal solution obtained from IPOPT as the best known feasible point to compute the optimality gap. Even for cases with optimality gaps that are less than 1%, both the distances to local optimality and the cumulative constraint violations can still be substantial, suggesting that the optimality gap does not adequately capture the tightness of a relaxation in terms of the decision variable accuracy.
Furthermore, there is a group of test cases with non-negligible distances to local optimality and substantial constraint violations that nevertheless have optimality gaps which are almost zero. The outliers are the following four test cases: case2383wp_k__api, pglib_opf_case2746wop_k__api, case2746wp_k__api, case3012wp_k__api, which are some of the test cases representing the Polish grid under congested operation conditions (api). A possible explanation is that the objective functions for these test cases are very flat with respect to the change in the active generator dispatch, i.e., there are many generators with the same cost parameters for these four test cases. Note that all four test cases only have linear cost parameters (the quadratic and constant cost terms are zero). To test this hypothesis, we created variants of these four test cases where we assigned a random linear cost function to each generator. To this end, we took random samples between the minimum and maximum linear cost parameters of the original test case. When recomputing optimality gaps and distances to AC-feasiblity and local optimality for these test cases, we observed that the obtained optimality gaps are non-zero, thus supporting our hypothesis.
For the correlation analysis, we use Spearman’s rank and Pearson’s correlation coefficient. The first coefficient relates to the (possibly non-linear) monotonicity of the optimality gap with the two metrics described in Section III. For the Pearson correlation coefficient, we identify the strength of possible linear relationships between the base-10 logarithms of the optimality gaps and these metrics. For both coefficients, the obtained values can range between -1 and 1, where the minimum and maximum values correspond to perfect negative or positive correlation, and the value of 0 expresses that the quantities are uncorrelated in this statistical measure. With regard to both the cumulative constraint violation and distance to local optimality metrics, the resulting Spearman’s rank and Pearson correlation coefficients are in an interval between 0.32 and 0.59, showing both metrics are not strongly correlated with the optimality gap.
V-C Penalization Methods for SDP Relaxation
The previous section shows that the SDP relaxation’s solution is close to both AC feasibility and local optimality in various test cases. To drive the solution towards rank-1 and consequently AC feasibility, we have presented three penalty terms from the literature in Section IV-A. In this section, we provide a detailed analysis of the robustness of these heuristic penalization methods for recovering an AC-feasible solution and show how the proposed metrics can be used to assess the quality of the solutions obtained from penalized SDP relaxations. We also quantify the sub-optimality incurred by modifying the original objective function. First, we present a five-bus test case serving as an illustrative example where penalty terms can fail to recover both an AC-feasible solution and a near-globally or locally optimal solution. Then, we provide a detailed numerical analysis on the PGLib OPF test case database considering all test cases with up to 300 buses. To facilitate comparability, as the absolute objective function values of the different test cases vary significantly, we define the penalty weight in percent of the original objective function value of the SDP relaxation with no penalty term included. As an illustrative example, a penalty weight of corresponds to . While previous works have used heuristic measures for the rank-1 property of the obtained matrix, in particular requiring the ratio of the first and second eigenvalue of the obtained matrix to be at least between and , we directly compute the cumulative normalized constraint violation defined in (8) to assess whether the obtained decision variables are AC-feasible or not. This is based on our observations that despite having an eigenvalue ratio of larger than , several of the test cases exhibit non-zero distances to AC-feasibility, i.e., constraint violations occur. Note that, due to numerical inaccuracies, if the cumulative normalized constraint violation is below %, we assume that no constraint violations occur, i.e., the solution is AC-feasible.
V-C1 Five-Bus Test Case
We investigate the five-bus test case from [45]. The feasible space of this system is visualized in [46] and shown to be disconnected with one local solution in addition to the global optimum. The upper plot in Fig. 5 shows the objective value versus the penalty weight for the three different penalty functions. We use a fine penalty step size of % ranging from % to %. The solid line sections represent the region within which each penalty term yields a rank-1 solution matrix . The lower plot in Fig. 5 shows the feasible space and the corresponding results of the penalization methods projected onto the disconnected feasible space with respect to the active power generation and . We make the following observations: The SDP relaxation without a penalty term included is inexact, but very close to the global optimum. Excluding the voltage angles (which are not available from the PowerModels.jl implementation of the SDP relaxation), the normalized distances to the local and global optima are 4.2% and 0.1%, respectively. The Matpower AC-PF, however, does not converge if initialized with the solution of the inexact SDP relaxation. The performance of the three penalization terms is compared: By including a reactive power penalty, the solution is moving towards the local optimum and away from the global optimum. If the reactive power penalty weight is chosen high enough, we obtain a rank-1 matrix, represented by the solid part of the line, and we obtain the locally optimal solution for a small interval of penalty weights ( to ). As we increase the penalty weight beyond , the solution is driven towards a different rank-1 (and hence AC-feasible) point which incurs sub-optimalities of 19.7% and 4.7% for the globally and locally optimal solutions, respectively. For the matrix trace, a sufficiently high penalty term of yields a rank-1 solution. In this case, we cannot obtain the locally optimal solution, but incur at least a sub-optimality of % and % with respect to the global and local optima, respectively. As seen in the plot of the feasible space, increasingly penalizing the matrix trace results in movement toward the same portion of the feasible space as increasing the reactive power penalty, but does not result in passing through the locally optimal solution. The apparent branch loss penalty term fails to recover a rank-1 solution.
V-C2 PGLib OPF Test Cases up to 300 Buses
We investigate the performance of the three penalization methods on 45 PGLib OPF test cases with up to 300 buses. Of these, the SDP relaxation is exact for %, i.e., an AC-feasible and globally optimal solution can be recovered. For the remaining % of test cases, we evaluate a wide range of penalty weights from % and determine the number of additional test cases which lead to an AC-feasible solution. For each successful test case, we evaluate the range of minimum and maximum penalty weights , that allow recovery of an AC-feasible solution. For both the minimum and maximum penalty, we report the range of minimum and maximum optimality gap with respect to the non-penalized objective value of the SDP relaxation.
The results are shown in Table I. Note that we display a range of values over all 35 investigated test cases (15 test cases are AC-feasible without penalization). The penalty term for reactive power is the most effective at recovering rank-1 solutions. Specifically, AC-feasible solutions are obtained for an additional % test cases. Note that the test cases recovered by the apparent branch loss and the matrix trace are a subset of those recovered by the reactive power penalty. As a result, in % of the test cases, none of these penalties successfully recover a rank-1 solution and the penalization heuristics fail to obtain an AC-feasible solution. For the reactive power penalty in particular, the spread of the minimum optimality gap over all test cases to obtain an AC-feasible solution is %, ranging from % to %. The sub-optimality for the reactive power penalty can increase up to , indicating that a large sub-optimality can be incurred by assigning a sub-optimal penalty weight. Similar observations hold true for the apparent branch flow and matrix trace penalization terms. Note the minimum penalty weight necessary to recover an AC-feasible solution for the different test cases and different penalty terms varies considerably, with the interval for the minimum reactive power penalty ranging from to . Since a detailed screening of a wide range of penalty terms is likely to be computationally prohibitive, these results highlight the challenge of choosing a penalty weight that both recovers an AC-feasible solution and is small enough to obtain a near-globally optimal solution. Some works (e.g. [21]) propose using a combination of penalty terms with individual penalty weights to obtain an AC-feasible solution, which, however, leads to an exponential increase in possible penalty weight combinations.
To provide more insight into the quality of the solutions obtained from the three different penalization techniques, we show in Fig. 6 a) the optimality gap versus the average normalized distance to local optimality for test cases where the penalization has been successful, and b) the cumulative normalized constraint violation versus the average normalized distance to a locally optimal solution for test cases where the penalization failed. Note that for a) we report the metrics for the minimum (non-zero) magnitude of penalty term necessary to achieve an AC-feasible solution. For b) we report the metrics for the minimum value of the distance to AC-feasibility in (8), i.e., the magnitude of penalty term for which the solution variables are closest to AC-feasibility.
First, focusing on Fig. 6a), we observe the wide spread between the minimum optimality gaps for the different test cases and penalization terms (corresponding to the third column in Table I). We observe that the average distance to the locally optimal solution provided by a non-convex solver can also be substantial (larger than 10%). This confirms the findings of the 5-bus test case in the previous subsection that the penalization terms do not necessarily drive the solution towards the locally optimal solution, but instead toward other parts of the non-convex feasible space with higher costs. This highlights that AC-feasible solutions obtained by penalized SDP relaxations might incur substantial sub-optimality compared to the solution obtained by a non-convex solver.
Second, focusing on Fig. 6b), we can observe that for the majority of cases for which at least one of the penalization methods did not achieve an AC-feasible solution, both the distance to AC-feasibility and distance to the locally optimal solution is substantial. This showcases that the penalty terms can also drive the solution towards portions of the feasible space of the convex relaxation that are not close to the feasible space of the non-convex AC-OPF. Only 5 out of the 64 combinations of test cases and penalty terms have a distance to AC-feasibility that is below 1%. For these 5 test cases only, we re-run the penalization with penalization weights sampled close to the penalty weight that lead to the smallest cumulative normalized constraint violation in (8). As a result, we identify penalty weights for these test cases that lead to an AC-feasible solution. To conclude, applying the proposed metrics for penalization methods allows us to fine-tune the penalty weights to obtain AC-feasible solutions. On the other hand, as evident in Fig. 6b), there exist several test cases (33.3% of test cases examined) for which none of the penalization methods resulted in recovery of an AC-feasible solution. The penalized solutions have substantial distances both to AC-feasibility and to the locally optimal solution provided by a non-convex solver. This motivates the investigation of warm-starting non-convex solvers with the inexact solutions of convex relaxations to recover an AC-feasible solution in the next section. We compute both the Spearman’s rank and Pearson’s correlation coefficient to quantify the correlations in Fig. 6. The correlation coefficients range from -0.28 to 0.53, thus showing that neither of the quantities have a strong correlation using both correlation coefficients.
V-D Warm-Starting Non-Convex Solvers
This section investigates whether non-convex solvers can be efficiently warm-started in the search for local optima when initialized with solutions of convex relaxations. To this end, we use the SQP solver in KNITRO (algorithm 4), and the IPM solvers provided by KNITRO (algorithm 1) and IPOPT. We deactivated the presolve in KNITRO, as enabling the presolve resulted in significantly longer solver times. An upper time limit of 2000 seconds is enforced. For the remaining options, we use the default values. We first look at the solver reliability, then study the variation in computational speed for different initializations, and finally evaluate the solution quality.
V-D1 Solver Reliability
Table II shows the share of the 96 considered PGLib OPF test cases which are solved to local optimality for the different initializations and solvers. IPOPT is the most reliable solver, with 100% of the test cases solved to local optimality irrespective of the initialization. The IPM and SQP solvers in KNITRO are less reliable, and achieve their highest reliability for the flat start initialization. For the other instances solved by KNITRO, either the time limit of 2000 seconds was reached or the solver reported local infeasibility.
V-D2 Computational Speed
Fig. 7 shows the variation in computational speed relative to a flat start for the warm-started non-convex solvers initialized with the solutions to the DC-OPF and the QC and SDP relaxations. Note that we only consider instances solved to local optimality, and we do not include the computational time required to compute the initializations. Warm-starting can have a positive or negative effect on computational speed for both solution methods and all three solvers. The interior-point solver IPOPT shows the best performance with the lower 75th percentiles exhibiting speed improvements when initalized with solutions to the DC-OPF and the QC and SDP relaxations as well as median speed improvements of % for DC-OPF, % for the QC relaxation, and % for the SDP relaxation. This does not confirm that SQP methods are usually more suitable for warm-starting as stated in Section IV-B. The IPM solver in KNITRO performs worse, with only the lower 50th percentile of test cases exhibiting a speed improvement. The SQP solver in KNITRO has better computational speed than the IPM solver in KNITRO but has significantly lower solver reliability as shown in Table II. Both the Pearson’s and Spearman’s rank correlation coefficients for the computational speed-up and the i) optimality gaps, ii) cumulative constraint violations, and iii) the distances to local optimality lie in a range between -0.22 and 0.49, thus showing that these three metrics are not strongly correlated with the computational speed-up in these statistical measures.
Fig. 8 shows the solution times of all the non-convex solvers initalized with a flat start and the solution times for the DC-OPF, the QC relaxation, and the SDP relaxation. The DC-OPF is by far the fastest, as it involves only solving an LP or QP. The SDP relaxation in PowerModels.jl is faster than the QC relaxation for small and medium systems but is approximately an order-of-magnitude slower for large systems. It can be observed that interior-point solvers, in particular IPOPT, are significantly faster than SQP solvers for the AC-OPF problem as the SQP solvers do not scale well with increasing system size. Note that the computational time for solving the QC and SDP relaxation (as shown in Fig. 8) is larger than the computational time for solving the AC-OPF with an interior-point solver and a flat start initialization in most instances. As a result, even if a very large speed-up is achieved by initializing the non-convex solver with the solution to the QC and SDP relaxation, the overall combined computational time still will be larger than directly solving the AC-OPF with a flat start. This finding highlights that there is a need for computationally efficient methods to recover an AC-feasible solution from inexact convex relaxations.
V-D3 Solution Quality
For the evaluated cases, all non-convex solvers which converge to local optimality from all starting points obtain the same objective value to within a small numerical tolerance of . This confirms the finding of the study [34] that non-convex solvers report the same objective value for a wide range of cases and different spurious locally optimal solutions are not identified. For the five-bus test case from [45] discussed earlier, IPOPT and the SQP solver in KNITRO return the spurious locally optimal solution, i.e. not the globally optimal one, when initialized with the flat start. All warm-started local solvers return the globally optimal solution to this problem; thus, in this case, warm-starting the solvers yields an improvement in solution quality.t
VI Conclusions and Outlook
Using the PGLib OPF benchmarks from [17], we provided a comprehensive study regarding the distance of the inexact solutions to the QC relaxation and the SDP relaxation relative to both AC feasibility and local optimality for the original non-convex AC-OPF problem. We investigated penalization methods for recovering AC-feasible solutions and warm-starting of non-convex solvers for recovering locally optimal solutions. Based on our detailed results, we summarize our main conclusions and outline directions for further research:
1) To quantify the distances to AC feasibility and local optimality, we proposed two empirical metrics to complement the optimality gap for analyzing the relaxations’ accuracy. For both the QC and SDP relaxations, we have shown that these metrics are not strongly correlated with the optimality gap, and despite an optimality gap of less than %, several test cases still exhibit a substantial distance to AC feasibility and local optimality highlighting the added value of the two metrics. Detailed investigations of these cases and of four outliers could provide additional insights into the QC and SDP relaxations.
2) Heuristic penalization methods for the SDP relaxation can be successful in recovering an AC-feasible and near-globally optimal solution. However, choosing an appropriate penalty weight can be challenging since detailed screenings of a wide range of penalty terms might be computationally prohibitive. Furthermore, there exists a range of test cases for which all three penalization methods fail to recover an AC-feasible solution. We characterize the obtained solutions from the penalized SDP relaxation using our proposed metrics, and show that most instances for which penalization methods fail exhibit substantial distances to both AC-feasibility and local optimality. For failed test instances with small distances, we show how our proposed metrics inform a fine-tuning of penalty weights to obtain AC-feasible solutions. A direction for improvement is to develop systematic and scalable methods to choose penalty weights and penalty terms in order to reliably recover AC-feasible and near-globally optimal solutions.
3) We investigated warm-starting non-convex solvers with the solutions of the inexact convex relaxations. We have shown that the sequential quadratic programming solver in KNITRO is not scalable to large instances and exhibits issues with solver convergence when warm started. Conversely, the interior-point solver in IPOPT is highly reliable and computationally efficient: in more than 75% of the considered PGLib OPF test cases, a computational speed-up can be achieved by warm-starting with the solution of an inexact convex relaxation. A future direction is to improve the warm-starting of the interior-point method by a) decreasing the initial logarithmic barrier term in the objective function, b) using dual information or c) learning optimal warm-starts points [47].
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] P. Panciatici et al. , “Advanced Optimization Methods for Power Systems,” in 18th Power Systems Computation Conference (PSCC) , 2014.
- 2[2] K. Lehmann, A. Grastien, and P. Van Hentenryck, “AC-Feasibility on Tree Networks is NP-Hard,” IEEE Transactions on Power Systems , vol. 31, no. 1, pp. 798–801, 2016.
- 3[3] D. Bienstock and A. Verma, “Strong np-hardness of ac power flows feasibility,” Operations Research Letters , 2019.
- 4[4] R. Jabr, “Radial Distribution Load Flow using Conic Programming,” IEEE Transactions on Power Systems , vol. 21, no. 3, pp. 1458–1459, 2006.
- 5[5] X. Bai, H. Wei, K. Fujisawa, and Y. Wang, “Semidefinite Programming for Optimal Power Flow Problems,” International Journal of Electrical Power & Energy Systems , vol. 30, no. 6-7, pp. 383–392, 2008.
- 6[6] J. Lavaei and S. H. Low, “Zero Duality Gap in Optimal Power Flow Problem,” IEEE Transactions on Power Systems , vol. 27, no. 1, pp. 92–107, Feb 2012.
- 7[7] C. Coffrin, H. L. Hijazi, and P. Van Hentenryck, “The QC Relaxation: A Theoretical and Computational Study on Optimal Power Flow,” IEEE Transactions on Power Systems , vol. 31, no. 4, pp. 3008–3018, 2016.
- 8[8] D. K. Molzahn, J. T. Holzer, B. C. Lesieutre, and C. L. De Marco, “Implementation of a Large-Scale Optimal Power Flow Solver based on Semidefinite Programming,” IEEE Transactions on Power Systems , vol. 28, no. 4, pp. 3987–3998, 2013.
