ArticleslgStudy

mathematics

Semidefinite programming

Semidefinite programming is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Semidefinite programming rather than just read about it. In short: Semidefinite programming (SDP) is a subfield of mathematical programming concerned with the optimization of a linear objective function (a user-specified function that the user wants to minimize or maximize) 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 fo…

Key takeaways

  • Semidefinite programming belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Semidefinite programming to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Semidefinite programming from memory before moving on to harder problems.

Reference excerpt

Semidefinite programming (SDP) is a subfield of mathematical programming concerned with the optimization of a linear objective function (a user-specified function that the user wants to minimize or maximize) 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 (convex) quadratic programs can be expressed as SDPs, and the sum of squares hierarchy of SDPs can approximate the solutions of polynomial optimization problems. 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 (linear programming) are replaced by semidefiniteness constraints on matrix variables in SDP (semidefinite programming). Specifically, a general semidefinite programming problem can be defined as any mathematical programming problem of the form

minx1,…,xn∈ℝn∑i,j∈[n]ci,j(xi⋅xj)subject to∑i,j∈[n]ai,j,k(xi⋅xj)≤bk for all k where the ci,j,ai,j,k, and the bk are real numbers and xi⋅xj is the dot product of xi and xj.

Equivalent formulations An n×n matrix M is said to be positive semidefinite if it is the Gram matrix of some vectors (i.e. if there exist vectors x1,…,xn such that mi,j=xi⋅xj for all i,j). If this is the case, we denote this as M⪰0. 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 𝕊n the space of all n×n real symmetric matrices. The space is equipped with the inner product (where trace denotes the trace):

⟨A,B⟩:=trace(ATB)=∑i=1,j=1nAijBij. We can rewrite the mathematical program given in the previous section equivalently as

minX∈𝕊n⟨C,X⟩subject to⟨Ak,X⟩≤bk,k=1,…,mX⪰0. where entry i,j in C is given by ci,j+cj,i2 from the previous section and Ak is a symmetric n×n matrix having i,jth entry ai,j,k+aj,i,k2 from the previous section. Thus, the matrices C and Ak 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:

minX∈𝕊n⟨C,X⟩subject to⟨Ak,X⟩=bk,k=1,…,mX⪰0. 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 X as a diagonal entry (Xii for some i). To ensure that Xii≥0, constraints Xij=0 can be added for all j≠i. As another example, note that for any positive semidefinite matrix X, there exists a set of vectors {vi} such that the i, j entry of X is Xij=(vi,vj) the scalar product of vi and vj. 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 {vi} can be recovered in O(n3) time (e.g., by using an incomplete Cholesky decomposition of X).

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 X⪰0 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

minX∈𝕊n⟨C,X⟩subject to⟨Ai,X⟩=bi,i=1,…,mX⪰0 (the primal problem or P-SDP), we define the dual semidefinite program (D-SDP) as

maxy∈ℝmbTysubject to∑i=1myiAi⪯C where for any two matrices P and Q, P⪰Q means P−Q⪰0.

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 because

⟨C,X⟩−bTy=⟨C,X⟩−∑i=1myibi=⟨C,X⟩−∑i=1myi⟨Ai,X⟩=⟨C−∑i=1myiAi,X⟩≥0, where 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: (i) Suppose the primal problem (P-SDP) is bounded below and strictly feasible (i.e., there exists X0∈𝕊n,X0≻0 such that ⟨Ai,X0⟩=bi, i=1,…,m). Then there is an optimal solution y∗ to (D-SDP) and

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Semidefinite programming

Start with the simplest possible case. Write down what Semidefinite programming claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Semidefinite programming before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Semidefinite programming ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Semidefinite programming

In research
Semidefinite programming appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Semidefinite programming in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Semidefinite programming is common in secondary-school and first-year university syllabi. It links to neighbouring topics Convex optimization, Linear programming, P-complete problems, so understanding it makes those chapters shorter.
In everyday life
Look for Semidefinite programming outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Semidefinite programming” →

How to study Semidefinite programming in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Semidefinite programming means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Semidefinite programming out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Semidefinite programming in simple terms?

Semidefinite programming (SDP) is a subfield of mathematical programming concerned with the optimization of a linear objective function (a user-specified function that the user wants to minimize or maximize) over the intersection of the cone of positive semidefinite matrices with an affine space, i…

Why does Semidefinite programming matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Semidefinite programming?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Semidefinite programming.

Tags

  • Convex optimization
  • Linear programming
  • P-complete problems
  • Real algebraic geometry

Keep exploring