Verifying Global Optimality of Candidate Solutions to Polynomial
Optimization Problems using a Determinant Relaxation Hierarchy
Abstract
We propose an approach for verifying that a given feasible point for a polynomial optimization problem is globally optimal. The approach relies on the Lasserre hierarchy and the result of Lasserre regarding the importance of the convexity of the feasible set as opposed to that of the individual constraints. By focusing solely on certifying global optimality and relaxing the Lasserre hierarchy using necessary conditions for positive semidefiniteness based on matrix determinants, the proposed method is implementable as a computationally tractable linear program. We demonstrate this method via application to several instances of polynomial optimization, including the optimal power flow problem used to operate electric power systems.
I INTRODUCTION
Consider a polynomial optimization problem
(1) |
where we use the multi-index notation for , , and where the data are polynomials so that in the above sums only a finite number of coefficients and are nonzero. We will use the notation .
Polynomial optimization problems (1) are generally non-convex and may therefore have multiple local and global optima. Local optima are feasible points for which no nearby point has a lower-cost objective value. Global optima are feasible points which have the lowest objective value among all feasible points. Many applications require (or at least benefit from) finding a global optimum to (1). Provably obtaining a global optimum is often accomplished by:
-
1.
Using a local solver to compute a locally optimal point that is a candidate for being a global optimum.
-
2.
Computing the optimality gap based on the difference between the objective value of the candidate point and the lower bound on the objective value provided by a convex relaxation of (1).
The candidate point is declared to be globally optimal if the optimality gap is sufficiently small. When the optimality gap is not sufficiently small, typical global optimization methods attempt to close the optimality gap by applying a variety of techniques for tightening the relaxation and obtaining a better local optimum [1, 2].
For certain polynomial optimization problems, especially those modeling physical systems, it is often straightforward to obtain high-quality local optima due to preexisting knowledge of appropriate initializations for local solvers. Consider, for instance, the optimal power flow (OPF) problem used in the operation of electric power systems [3, 4]. OPF problems are known to be NP-hard [5, 6]. Accordingly, there exist various test cases that challenge many solution algorithms [7, 8, 9, 10]. However, despite this challenging worst-case complexity, local solvers with physically justified initializations find the global optima for many practical OPF problems as verified by the small or zero optimality gaps obtained via a variety of convex relaxation techniques [11, 12, 13, 14, 15, 16]. (See [17] for a detailed survey.) Moreover, appropriately initialized local solvers can be significantly more computationally tractable than the convex relaxations used to certify global optimality [18, 19]. Thus, the computational effort for provably obtaining a globally optimal solution is often dominated by the time spent solving relaxations which show that a candidate feasible point from a local solver is, in fact, globally optimal.
Such problems motivate the development of methods for checking whether a given feasible point (e.g., the output of a local solver) is globally optimal. In contrast to convex relaxation techniques, whose objective values provide bounds on the potential suboptimality associated with a local solution, this paper solely focuses on methods for certifying whether a given feasible point is globally optimal. This less ambitious aim in comparison to existing convex relaxation techniques facilitates computational advantages for the proposed approach. Specifically, we reduce the problem of certifying global optimality of a candidate point to testing feasibility of a linear program.
Our proposed approach is particularly useful in settings that require the solution of many polynomial optimization problems. When applied as a screening step, our approach limits the need for explicitly solving computationally intensive relaxations to problems for which the candidate point and the selected relaxation result in a non-zero optimality gap. This allows us to leverage much of the extensive theoretical work regarding relaxations of polynomial optimization problems that has heretofore been practically limited by computational challenges associated with existing conic optimization solvers.
We close the introduction by reviewing two papers that aim to certify global optimality of polynomial optimization problems. Reviews of the specific relaxation techniques we employ will be presented in the following section.
The approach in [20] finds a objective function for which a candidate point, , is globally optimal:
(2) |
where denotes the feasible space defined by the constraints in (1) and is, for instance, the 2-norm of the coefficients. If the optimal objective value of (2) is equal to zero, then is globally optimal. If not, then the solution of (2) provides insight into how far is from the global optimum. Specifically, the solution to (2) yields an objective function, as close to the original objective function as possible, for which the candidate point is globally optimal. In order to solve (2), [20] proposes to replace the non-negativity constraint using Putinar’s Positivstellensatz. The drawback of this approach is that it is a priori as computationally costly as actually computing a global solution.
In [21], another related approach provides a sufficient (but not necessary) condition for certifying global optimality of a candidate point by evaluating whether the point satisfies the Karush-Kuhn-Tucker (KKT) conditions [22, 23] for a relaxation. Assuming certain constraint qualification conditions (e.g., Slater’s condition), a local solution necessarily satisfies the KKT conditions for the non-convex polynomial optimization problem (1). If the local solution additionally satisfies the KKT conditions for a convex relaxation of (1), then the local solution is, in fact, a global optimum. The approach in [21] specifically tests whether a local solution to an OPF problem satisfies the KKT conditions for the Shor relaxation [24], which is equivalent, in the case of OPF problems, to the first-order moment/sum-of-squares relaxation in the Lasserre hierarchy to be discussed below. While explicitly computing the Shor relaxation requires the solution of a semidefinite program, evaluating whether the primal/dual variables obtained from a local solver satisfy the Shor relaxation’s KKT conditions only requires a single Cholesky factorization of a sparse matrix and a vector dot product. Thus, certifying global optimality by evaluating the condition in [21] is up to two orders of magnitude faster than explicitly solving the Shor relaxation for various OPF test cases, even after applying advanced techniques for improving the relaxation’s computational tractability [25, 26]. The approach proposed in the remainder of this paper can be viewed as an extension of the condition in [21] to exploit certain tighter relaxations, specifically, higher-order moment/sum-of-squares relaxations in the Lasserre hierarchy.
II Approach
In 2001, the Lasserre hierarchy [27, 28] (see also [29, 30]) was proposed to find global solutions to polynomial optimization problems. It is also known as moment/sum-of-squares hierarchy in reference to the primal moment hierarchy and the dual sum-of-squares hierarchy. Its global convergence is guaranteed by Putinar’s Positivstellensatz [31] proven in 1993. Typically, if one of the constraints is a ball , then the sequence of lower bounds provided by the hierarchy converges to the global infimum of the polynomial optimization problem. In addition, there is zero duality at all relaxation orders [32].
The moment problem of order is defined as
(3) |
where denotes positive semidefiniteness, and where the Riesz functional, the moment matrix, and the localizing matrices are respectively defined by
(4) |
Above, denotes the ceiling of a real number. Note that the relaxation order must be greater than or equal to . See Section III for an illustrative example of a second-order moment/sum-of-squares relaxation of a quadratically constrained quadratic program corresponding to a two-bus OPF problem.
Our approach extends a relaxation technique proposed in [33] that leverages theory developed in [34, 35] regarding the importance of the convexity of the feasible space rather than its algebraic representation.111In particular, under a mild degeneracy condition, log-barrier solution methods are guaranteed to converge to a global minimizer of a problem with a convex feasible space even if the algebraic representation of the feasible space is non-convex. The technique in [33] further relaxes the Shor relaxation [24] using necessary conditions for positive semidefiniteness based on matrix determinants. Specifically, the approach in [33] exploits the fact that a symmetric matrix is positive semidefinite if and only if all its principal minors (i.e., the determinants of its principal submatrices) are non-negative [36]. Extending this approach to the Lasserre hierarchy (3) yields
(5) |
where is the size of the matrix , is the size of the matrix , and denotes the principal minor corresponding to the index (i.e., the determinant of the submatrix whose rows and columns are indexed by ), likewise for .
To derive our approach, we exploit the KKT conditions of the formulation (5). To express these conditions, let denote the KKT multiplier associated with the constraint . Let denote the KKT multiplier associated with the constraint . Let denote the KKT multiplier associated with the constraint . The KKT conditions of (5) are
(6) |
We have that where the comatrix is defined by ; is the matrix where row and column have been removed. Let denote the comatrix of the submatrix whose rows and columns are indexed by a subset of indices . Below, we will consider matrices and such that the moment and localizing matrices are as follows:
(7) |
and
(8) |
The KKT conditions are then222We use the fact that for all sequences of multi-indexed real numbers , we have .
(9) |
If we substitute using the feasible point , i.e., by taking , the KKT conditions reduce to a linear feasibility problem, that is
(10) |
Observe that all the determinants are equal to zero, except when the index sets and are singletons (i.e., where ). In that case, the determinant is simply equal to a diagonal term of the matrix.
Any point that satisfies (10) provides values for dual variables that, in combination with the primal variables obtained from the candidate solution , satisfy the KKT conditions corresponding to a convex relaxation of (1). Hence, any feasible point for (10) certifies global optimality of the candidate feasible point for the polynomial optimization problem (1).333Observe that neither [34, Assumption 2.1] nor Slater’s condition are required in order to show that every KKT point is a minimizer in [34, Theorem 2.3]. In other words, all assumptions needed for the theory in [34] to be applicable for our purposes are satisfied in our setting.
Since all values are fixed, we emphasize that (10) is linear in the KKT multipliers , , and . Thus, the KKT conditions (10) can be verified using a linear programming solver, which is significantly more computationally tractable than solving the KKT conditions for the relaxation (9) with both primal variables and dual variables , , and allowed to vary (a complementarity problem).
III Numerical experiments
We implemented the algorithms with Matlab R2020a. We used Gloptipoly 3 to obtain the Lasserre hierarchy formulation. As for solving the KKT conditions, we used the LINPROG and LSQLIN solver provided by Matlab. The optimality tolerance of both solvers are set to .
III-A Univariate example
Consider the following polynomial optimization problem represented in Figure 1 with a local minimum at and a global minimum at :
(11) |

The second-order moment relaxation reads:
(12) |
Using the determinant condition for positive semidefiniteness as in (5), an equivalent formulation of the second-order moment relaxation is as follows:
(13) |
subject to
(14) |
Observe that each constraint taken separately may be non-convex, yet together they yield a convex region. We then define the following Lagrangian:
(15) |
(16) |
We next check whether or are global solutions. In order to do so, we plug into the primal variable in the above system, i.e., , and see whether there exists a feasible set of dual variables. If there exists feasible dual variables, then the point is a global solution. If not, then we may need to increase the order of the hierarchy and try again. In order to check for linear feasibility, we respectively minimize the and norms of the equality constraints, subject to the non-negativity constraints of the dual multipliers. The norm results in a linear program while the norm results in a convex quadratic optimization problem. The numerical results are shown in Table I. The local solution yields an infeasible linear system, while the global solution yields a linear system that is feasible with very high accuracy.
Solution | Optimality | norm | norm |
---|---|---|---|
Local | |||
Global |
III-B Bivariate example
Consider the following polynomial optimization problem represented in Figure 2:
(17) |

The numerical results in Table II again show that the method correctly distinguishes the global solution from the local solution. The KKT system stemming from the second-order moment relaxation was used.
Solution | Optimality | norm | norm |
---|---|---|---|
Local | |||
Global |
III-C Trivariate example
Consider the following polynomial optimization problem:
(18) |
subject to
(19) |
This problem corresponds to the two-bus alternating current optimal power flow problem in Figure 3 from [7].

The feasible region of the polynomial optimization problem is represented in Figure 4, along with a local solution (blue square) and a global solution (green star).

The numerical results in Table III show that the method is able to distinguish between the local and global solutions, albeit less strikingly than in the univariate and bivariate examples. We attribute this to the proximity between the local and global solutions, which are taken from the test case archive.444https://www.maths.ed.ac.uk/optenergy/LocalOpt/WB2.html Their objective values are also close: the objective values of the local and global solutions are and , respectively (a 3.2% difference). We used the KKT system stemming from the second-order moment relaxation, consistent with the empirical finding in [37, 38] that this relaxation is often tight in the context of power systems.
Solution | Optimality | norm | norm |
---|---|---|---|
Local | |||
Global |
We conclude this section with the runtimes in Table IV. The runtimes are the average of 5 repeated experiments. One can see that there is a significant speed-up, by at least an order of magnitude, when checking for global optimality instead of computing a global solution. We do not report the time taken to setup the linear program and the semidefinite program, both of which could be reduced with a more sophisticated implementation.
Problem | SDP | norm | norm |
---|---|---|---|
Univariate | |||
Bivariate | |||
Trivariate |
IV Conclusion
We have proposed a method for verifying global optimality by checking for the feasibility of a linear system of equations. We have demonstrated the proof of concept on several small examples of polynomial optimization problems. A topic of further investigation is to exploit sparsity in order to make the approach tractable on larger optimal power flow instances. One could use techniques involving chordal graphs as was done in [15], which enabled the application of the Lasserre hierarchy to large-scale instances. Since global solutions were extracted in many instances within minutes, it is reasonable to believe that checking for global optimality should be possible with significantly faster runtimes. Another possible avenue for future research is to find another equivalent formulation of the Lasserre hierarchy whose KKT conditions would also lead to a tractable system for the dual multipliers (perhaps a second-order conic program).
References
- [1] C. A. Floudas, Deterministic Global Optimization: Theory, Methods and Applications, vol. 37. Springer Science & Business Media, 2013.
- [2] S. Gopinath, H. Hijazi, T. Weisser, H. Nagarajan, M. Yetkin, K. Sundar, and R. Bent, “Proving Global Optimality of ACOPF Solutions,” Electric Power Systems Research, vol. 189, p. 106688, 2020.
- [3] M. Carpentier, “Contribution à l’Étude du Dispatching Économique,” Bulletin de la Societe Francoise des Electriciens, vol. 8, pp. 431–447, 1962.
- [4] M. B. Cain, R. P. O’Neil, and A. Castillo, “History of Optimal Power Flow and Formulations (OPF Paper 1),” tech. rep., US Federal Energy Regulatory Commission, Dec. 2012.
- [5] D. Bienstock and A. Verma, “Strong NP-hardness of AC power flows feasibility,” Operations Research Letters, vol. 47, no. 6, pp. 494–501, 2019.
- [6] K. Lehmann, A. Grastien, and P. Van Hentenryck, “AC-Feasibility on Tree Networks is NP-Hard,” IEEE Transactions on Power Systems, vol. 31, pp. 798–801, Jan. 2016.
- [7] W. Bukhsh, A. Grothey, K. McKinnon, and P. Trodden, “Local Solutions of the Optimal Power Flow Problem,” IEEE Transactions on Power Systems, vol. 28, pp. 4780––4788, 2013.
- [8] S. Babaeinejadsarookolaee, A. Birchfield, R. D. Christie, C. Coffrin, C. L. DeMarco, R. Diao, M. Ferris, S. Fliscounakis, S. Greene, R. Huang, C. Josz, R. Korab, B. C. Lesieutre, J. Maeght, D. Molzahn, T. J. Overbye, P. Panciatici, B. Park, J. Snodgrass, and R. D. Zimmerman, “The Power Grid Library for Benchmarking AC Optimal Power Flow Algorithms,” August 2019. arXiv:1908.02788.
- [9] B. Kocuk, S. S. Dey, and X. A. Sun, “Inexactness of SDP Relaxation and Valid Inequalities for Optimal Power Flow,” IEEE Transactions on Power Systems, vol. 31, pp. 642–651, Jan. 2016.
- [10] M. R. Narimani, D. K. Molzahn, D. Wu, and M. L. Crow, “Empirical Investigation of Non-Convexities in Optimal Power Flow Problems,” American Control Conference (ACC), June 2018.
- [11] J. Lavaei and S. Low, “Zero Duality Gap in Optimal Power Flow Problem,” IEEE Transactions on Power Systems, vol. 27, pp. 92–107, Feb. 2012.
- [12] S. H. Low, “Convex Relaxation of Optimal Power Flow: Parts I & II,” IEEE Trans. Control Network Syst., vol. 1, pp. 15–27, Mar. 2014.
- [13] C. Coffrin, H. Hijazi, and P. Van Hentenryck, “The QC Relaxation: Theoretical and Computational Results on Optimal Power Flow,” IEEE Transactions on Power Systems, vol. 31, pp. 3008–3018, 2016.
- [14] D. K. Molzahn and I. A. Hiskens, “Sparsity-Exploiting Moment-Based Relaxations of the Optimal Power Flow Problem,” IEEE Transactions on Power Systems, vol. 30, pp. 3168–3180, Nov. 2015.
- [15] C. Josz and D. K. Molzahn, “Lasserre Hierarchy for Large Scale Polynomial Optimization in Real and Complex Variables,” SIAM Journal on Optimization, vol. 28, no. 2, pp. 1017–1048, 2018.
- [16] B. Kocuk, S. S. Dey, and X. A. Sun, “Matrix Minor Reformulation and SOCP-based Spatial Branch-and-Cut Method for the AC Optimal Power Flow Problem,” Mathematical Programming C, vol. 10, pp. 557–596, Dec. 2018.
- [17] D. K. Molzahn and I. A. Hiskens, “A Survey of Relaxations and Approximations of the Power Flow Equations,” Foundations and Trends in Electric Energy Systems, vol. 4, pp. 1–221, Feb. 2019.
- [18] A. Castillo and R. P. O’Neill, “Computational Performance of Solution Techniques Applied to the ACOPF (OPF Paper 5),” tech. rep., US Federal Energy Regulatory Commission, Jan. 2013.
- [19] R. Zimmerman, C. Murillo-Sánchez, and R. Thomas, “MATPOWER: Steady-State Operations, Planning, and Analysis Tools for Power Systems Research and Education,” IEEE Transactions on Power Systems, no. 99, pp. 1–8, 2011.
- [20] J. B. Lasserre, “Inverse Polynomial Optimization,” Mathematics of Operations Research, vol. 38, no. 3, pp. 418–436, 2013.
- [21] D. Molzahn, B. Lesieutre, and C. DeMarco, “A Sufficient Condition for Global Optimality of Solutions to the Optimal Power Flow Problem,” IEEE Transactions on Power Systems, vol. 29, pp. 978–979, Mar. 2014.
- [22] W. Karush, “Minima of Functions of Several Variables with Inequalities as Side Constraints,” Master’s thesis, University of Chicago, Department of Mathematics, Chicago, IL, 1939.
- [23] H. W. Kuhn and A. W. Tucker, “Nonlinear Programming,” Proceedings of the 2nd Berkeley Symposium on Mathematical Statistics and Probability, pp. 481–492, 1951.
- [24] N. Shor, “Quadratic Optimization Problems,” Soviet Journal of Computer and System Sciences, vol. 25, pp. 1–11, 1987.
- [25] R. Jabr, “Exploiting Sparsity in SDP Relaxations of the OPF Problem,” IEEE Transactions on Power Systems, vol. 27, pp. 1138–1139, May 2012.
- [26] D. Molzahn, J. Holzer, B. Lesieutre, and C. DeMarco, “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.
- [27] J. B. Lasserre, “Optimisation Globale et Théorie des Moments,” Comptes rendus de l’Académie des Sciences, Série I, vol. 331, pp. 929–934, 2000.
- [28] J. B. Lasserre, “Global Optimization with Polynomials and the Problem of Moments,” SIAM Journal on Optimization, vol. 11, pp. 796–817, 2001.
- [29] P. A. Parrilo, Structured Semidefinite Programs and Semialgebraic Geometry Methods in Robustness and Optimization. PhD thesis, California Institute of Technology, May 2000.
- [30] P. A. Parrilo, “Semidefinite Programming Relaxations for Semialgebraic Problems,” Mathematical Programming, vol. 96, pp. 293–320, 2003.
- [31] M. Putinar, “Positive Polynomials on Compact Semi-Algebraic Sets,” Indiana University Mathematics Journal, vol. 42, pp. 969–984, 1993.
- [32] C. Josz and D. Henrion, “Strong Duality in Lasserre’s Hierarchy for Polynomial Optimization,” Springer Optimization Letters, 2015.
- [33] H. Hijazi, C. Coffrin, and P. Van Hentenryck, “Polynomial SDP Cuts for Optimal Power Flow,” 19th Power Systems Computation Conference (PSCC), June 2016.
- [34] J. B. Lasserre, “On Representations of the Feasible Set in Convex Optimization,” Optimization Letters, vol. 4, no. 1, pp. 1–5, 2010.
- [35] J. B. Lasserre, “On Convex Optimization without Convex Representation,” Optimization Letters, vol. 5, no. 4, pp. 549–556, 2011.
- [36] J. E. Prussing, “The Principal Minor Test for Semidefinite Matrices,” Journal of Guidance, Control, and Dynamics, vol. 9, no. 1, pp. 121–122, 1986.
- [37] C. Josz, J. Maeght, P. Panciatici, and J. Gilbert, “Application of the Moment-SOS Approach to Global Optimization of the OPF Problem,” IEEE Transactions on Power Systems, vol. 30, pp. 463–470, Jan. 2015.
- [38] D. K. Molzahn and I. A. Hiskens, “Moment-Based Relaxation of the Optimal Power Flow Problem,” 18th Power Systems Computation Conference (PSCC), Aug. 2014.