Semidefinite programming
Semidefinite programming is a subfield of mathematical programming concerned with the optimization of a linear objective function
over the intersection of the cone of positive semidefinite matrices with an affine space, i.e., a spectrahedron.
Semidefinite programming is a relatively new field of optimization which is of growing interest for several reasons. Many practical problems in operations research and combinatorial optimization can be modeled or approximated as semidefinite programming problems. In automatic control theory, SDPs are used in the context of linear matrix inequalities. SDPs are in fact a special case of cone programming and can be efficiently solved by interior point methods.
All linear programs and quadratic programs can be expressed as SDPs, and via hierarchies of SDPs the solutions of polynomial optimization problems can be approximated. Semidefinite programming has been used in the optimization of complex systems. In recent years, some quantum query complexity problems have been formulated in terms of semidefinite programs.
Motivation and definition
Initial motivation
A linear programming problem is one in which we wish to maximize or minimize a linear objective function of real variables over a polytope. In semidefinite programming, we instead use real-valued vectors and are allowed to take the dot product of vectors; nonnegativity constraints on real variables in LP are replaced by semidefiniteness constraints on matrix variables in SDP. Specifically, a general semidefinite programming problem can be defined as any mathematical programming problem of the formwhere the, and the are real numbers and is the dot product of and .
Equivalent formulations
An matrix is said to be positive semidefinite if it is the Gram matrix of some vectors. If this is the case, we denote this as. Note that there are several other equivalent definitions of being positive semidefinite, for example, positive semidefinite matrices are self-adjoint matrices that have only non-negative eigenvalues.Denote by the space of all real symmetric matrices. The space is equipped with the inner product :We can rewrite the mathematical program given in the previous section equivalently as
where entry in is given by from the previous section and is a symmetric matrix having th entry from the previous section. Thus, the matrices and are symmetric and the above inner products are well-defined.
Note that if we add slack variables appropriately, this SDP can be converted to an equational form:
For convenience, an SDP may be specified in a slightly different, but equivalent form. For example, linear expressions involving nonnegative scalar variables may be added to the program specification. This remains an SDP because each variable can be incorporated into the matrix as a diagonal entry. To ensure that, constraints can be added for all. As another example, note that for any positive semidefinite matrix, there exists a set of vectors such that the, entry of is the scalar product of and. Therefore, SDPs are often formulated in terms of linear expressions on scalar products of vectors. Given the solution to the SDP in the standard form, the vectors can be recovered in time.
Relations to other optimization problems
The space of semidefinite matrices is a convex cone. Therefore, SDP is a special case of conic optimization, which is a special case of convex optimization.When the matrix C is diagonal, the inner products <C,''X> is equivalent to a vector product of the diagonal of C'' and the diagonal of X. Analogously, when the matrices Ak are diagonal, the corresponding inner products are equivalent to vector products. In these vector products, only the diagonal elements of X are used, so we can add constraints equating the non-diagonal elements of X to 0. The condition is then equivalent to the condition that all diagonal elements of X are non-negative. Then, the resulting SDP becomes a linear program in which the variables are the diagonal elements of X.
Duality theory
Definitions
Analogously to linear programming, given a general SDP of the form, we define the dual semidefinite program as
where for any two matrices and, means.
Weak duality
The weak duality theorem states that the value of the primal SDP is at least the value of the dual SDP. Therefore, any feasible solution to the dual SDP lower-bounds the primal SDP value, and conversely, any feasible solution to the primal SDP upper-bounds the dual SDP value. This is becausewhere the last inequality is because both matrices are positive semidefinite, and the result of this function is sometimes referred to as duality gap.
Strong duality
When the value of the primal and dual SDPs are equal, the SDP is said to satisfy the strong duality property. Unlike linear programs, where every dual linear program has optimal objective equal to the primal objective, not every SDP satisfies strong duality; in general, the value of the dual SDP may lie strictly below the value of the primal, and the P-SDP and D-SDP satisfy the following properties:Suppose the primal problem is bounded below and strictly
feasible. Then there is an optimal solution to and
Suppose the dual problem is bounded above and strictly
feasible.
Then there is an optimal solution to and
the equality from holds.
A sufficient condition for strong duality to hold for a SDP problem is the Slater's condition. It is also possible to attain strong duality for SDPs without additional regularity conditions by using an extended dual problem proposed by Ramana.
Examples
Example 1
Consider three random variables,, and. A given set of correlation coefficients are possible if and only ifThis matrix is called the correlation matrix. Suppose that we know from some prior knowledge that and. The problem of determining the smallest and largest values that can take is given by:
We set to obtain the answer. This can be formulated by an SDP. We handle the inequality constraints by augmenting the variable matrix and introducing slack variables, for example
Solving this SDP gives the minimum and maximum values of as and respectively.
Example 2
Consider the problemwhere we assume that whenever.
Introducing an auxiliary variable the problem can be reformulated:
In this formulation, the objective is a linear function of the variables.
The first restriction can be written as
where the matrix is the square matrix with values in the diagonal equal
to the elements of the vector.
The second restriction can be written as
Defining as follows
We can use the theory of Schur Complements to see that
The semidefinite program associated with this problem is
Example 3 (Goemans–Williamson max cut approximation algorithm)
Semidefinite programs are important tools for developing approximation algorithms for NP-hard maximization problems. The first approximation algorithm based on an SDP is due to Michel Goemans and David P. Williamson. They studied the max cut problem: Given a graph G =, output a partition of the vertices V so as to maximize the number of edges crossing from one side to the other. This problem can be expressed as an integer quadratic program:Unless P = NP, we cannot solve this maximization problem efficiently. However, Goemans and Williamson observed a general three-step procedure for attacking this sort of problem:
- Relax the integer quadratic program into an SDP.
- Solve the SDP.
- Round the SDP solution to obtain an approximate solution to the original integer quadratic program.
This is an SDP because the objective function and constraints are all linear functions of vector inner products. Solving the SDP gives a set of unit vectors in ; since the vectors are not required to be collinear, the value of this relaxed program can only be higher than the value of the original quadratic integer program. Finally, a rounding procedure is needed to obtain a partition. Goemans and Williamson simply choose a uniformly random hyperplane through the origin and divide the vertices according to which side of the hyperplane the corresponding vectors lie. Straightforward analysis shows that this procedure achieves an expected approximation ratio of 0.87856 - ε. Assuming the unique games conjecture, it can be shown that this approximation ratio is essentially optimal.
Since the original paper of Goemans and Williamson, SDPs have been applied to develop numerous approximation algorithms. Subsequently, Prasad Raghavendra has developed a general framework for constraint satisfaction problems based on the unique games conjecture.
Other applications
Semidefinite programming has been applied to find approximate solutions to combinatorial optimization problems, such as the solution of the max cut problem with an approximation ratio of 0.87856. SDPs are also used in geometry to determine tensegrity graphs, and arise in control theory as LMIs, and in inverse elliptic coefficient problems as convex, non-linear, semidefiniteness constraints. It is also widely used in physics to constrain conformal field theories with the conformal bootstrap.Run-time complexity
The semidefinite feasibility problem is the following decision problem: given an SDP, decide whether it has at least one feasible solution. The exact run-time complexity of this problem is unknown. However, Ramana proved the following:- In the Turing machine model, SDF is in NP iff it is in co-NP. Therefore, SDF is not NP-complete unless NP=coNP.
- In the Blum–Shub–Smale machine model, SDF is in the intersection of NP and co-NP.
Algorithms for solving SDPs
Ellipsoid method
The ellipsoid method is a general method for convex programming, and can be used in particular to solve SDPs. In the context of SDPs, the ellipsoid method provides the following guarantee.Consider an SDP in the following equational form:Let L be the affine subspace of matrices in Sn satisfying the m equational constraints; so the SDP can be written as:. Suppose all coefficients in the SDP are rational numbers. Let R be an explicitly given upper bound on the maximum Frobenius norm of a feasible solution, and ε>0 a constant. A matrix X in Sn is called ε-deep if every matrix Y in L with Frobenius distance at most ε from X satisfies the feasibility condition. Denote. The ellipsoid returns one of the following outputs:- A matrix X* in L, such that the Frobenius distance between X* and some feasible solution is at most ε, and .
- A certificate that the problem has no ε-deep solutions.
Note that, in general, R may be doubly-exponential in n. In that case, the run-time guarantee of the ellipsoid method is exponential in n. But in most applications, R is not so huge. In these cases, the ellipsoid method is the only known method that guarantees polynomial runtime in the Turing machine model. But in practice, its performance is not so good.
Interior point methods
Most codes are based on interior point methods. These are robust and efficient for general linear SDP problems, but restricted by the fact that the algorithms are second-order methods and need to store and factorize a large matrix. Theoretically, the state-of-the-art high-accuracy SDP algorithms are based on this approach.First-order methods
First-order methods for conic optimization avoid computing, storing and factorizing a large Hessian matrix and scale to much larger problems than interior point methods, at some cost in accuracy. A first-order method is implemented in the Splitting Cone Solver. Another first-order method is the alternating direction method of multipliers. This method requires in every step projection on the cone of semidefinite matrices.Bundle method
The code ConicBundle formulates the SDP problem as a nonsmooth optimization problem and solves it by the Spectral Bundle method of nonsmooth optimization. This approach is very efficient for a special class of linear SDP problems.Other solving methods
Algorithms based on Augmented Lagrangian method are similar in behavior to the interior point methods and can be specialized to some very large scale problems. Other algorithms use low-rank information and reformulation of the SDP as a nonlinear programming problem.Approximate methods
Algorithms that solve SDPs approximately have been proposed as well. The main goal of such methods is to achieve lower complexity in applications where approximate solutions are sufficient and complexity must be minimal. A prominent method that has been used for data detection in multiple-input multiple-output wireless systems is Triangular Approximate SEmidefinite Relaxation, which operates on the Cholesky decomposition factors of the semidefinite matrix instead of the semidefinite matrix. This method calculates approximate solutions for a max-cut-like problem that are often comparable to solutions from exact solvers but in only 10-20 algorithm iterations. Hazan has developed an approximate algorithm for solving SDPs with the additional constraint that the trace of the variables matrix must be 1.Preprocessing algorithms
Facial reduction algorithms are algorithms used to preprocess SDPs problems by inspecting the constraints of the problem. These can be used to- Detect lack of strict feasibility;
- Delete redundant rows and columns;
- Reduce the size of the variable matrix.