ArticleslgStudy

computer science

Second-order cone programming

Second-order cone programming is a computer science 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 Second-order cone programming rather than just read about it. In short: A second-order cone program (SOCP) is a convex optimization problem of the form minimize f T x {\displaystyle \ f^{T}x\ } subject to ‖ A i x + b i ‖ 2 ≤ c i T x + d i , i = 1 , … , m {\displaystyle \lVert A_{i}x+b_{i}\rVert _{2}\leq c_{i}^{T}x+d_{i},\quad i=1,\dots ,m} F x = g {\displaystyle Fx=g\ } where the problem parameters are f ∈ R n , A i ∈ R n i × n , b i ∈ R n i , c i ∈ R n , d i ∈ R , F ∈ R p × n {\display…

Second-order cone programming — main illustration
Second-order cone programming — illustration

Key takeaways

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

Reference excerpt

A second-order cone program (SOCP) is a convex optimization problem of the form

minimize f T x {\displaystyle \ f^{T}x\ }

subject to

‖ A i x + b i ‖ 2 ≤ c i T x + d i , i = 1 , … , m {\displaystyle \lVert A_{i}x+b_{i}\rVert _{2}\leq c_{i}^{T}x+d_{i},\quad i=1,\dots ,m}

F x = g {\displaystyle Fx=g\ }

where the problem parameters are f ∈ R n , A i ∈ R n i × n , b i ∈ R n i , c i ∈ R n , d i ∈ R , F ∈ R p × n {\displaystyle f\in \mathbb {R} ^{n},\ A_{i}\in \mathbb {R} ^{{n_{i}}\times n},\ b_{i}\in \mathbb {R} ^{n_{i}},\ c_{i}\in \mathbb {R} ^{n},\ d_{i}\in \mathbb {R} ,\ F\in \mathbb {R} ^{p\times n}} , and g ∈ R p {\displaystyle g\in \mathbb {R} ^{p}} . x ∈ R n {\displaystyle x\in \mathbb {R} ^{n}} is the optimization variable.

‖ x ‖ 2 {\displaystyle \lVert x\rVert _{2}} is the Euclidean norm and T {\displaystyle ^{T}} indicates transpose. The name "second-order cone programming" comes from the nature of the individual constraints, which are each of the form:

‖ A x + b ‖ 2 ≤ c T x + d {\displaystyle \lVert Ax+b\rVert _{2}\leq c^{T}x+d}

These each define a subspace that is bounded by an inequality based on a second-order polynomial function defined on the optimization variable x {\displaystyle x} ; this can be shown to define a convex cone, hence the name "second-order cone". By the definition of convex cones, their intersection can also be shown to be a convex cone, although not necessarily one that can be defined by a single second-order inequality. See below for a more detailed treatment. SOCPs can be solved by interior point methods and in general, can be solved more efficiently than semidefinite programming (SDP) problems. Some engineering applications of SOCP include filter design, antenna array weight design, truss design, and grasping force optimization in robotics. Applications in quantitative finance include portfolio optimization; some market impact constraints, because they are not linear, cannot be solved by quadratic programming but can be formulated as SOCP problems.

Second-order cones The standard or unit second-order cone of dimension n + 1 {\displaystyle n+1} is defined as

C n + 1 = { [ x t ] | x ∈ R n , t ∈ R , ‖ x ‖ 2 ≤ t } {\displaystyle {\mathcal {C}}_{n+1}=\left\{{\begin{bmatrix}x\\t\end{bmatrix}}{\Bigg |}x\in \mathbb {R} ^{n},t\in \mathbb {R} ,\|x\|_{2}\leq t\right\}} . The second-order cone is also known by the names quadratic cone, ice-cream cone, or Lorentz cone. For example, the standard second-order cone in R 3 {\displaystyle \mathbb {R} ^{3}} is

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Second-order cone programming

Start with the simplest possible case. Write down what Second-order cone programming claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, 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 Second-order cone 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 Second-order cone 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 Second-order cone programming

In research
Second-order cone programming appears in computer science 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 Second-order cone 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
Second-order cone programming is common in secondary-school and first-year university syllabi. It links to neighbouring topics Convex optimization, Optimization algorithms and methods, so understanding it makes those chapters shorter.
In everyday life
Look for Second-order cone 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.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Second-order cone programming in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Second-order cone 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 Second-order cone programming out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Second-order cone programming in simple terms?

A second-order cone program (SOCP) is a convex optimization problem of the form minimize f T x {\displaystyle \ f^{T}x\ } subject to ‖ A i x + b i ‖ 2 ≤ c i T x + d i , i = 1 , … , m {\displaystyle \lVert A_{i}x+b_{i}\rVert _{2}\leq c_{i}^{T}x+d_{i},\quad i=1,\dots ,m} F x = g {\displaystyle Fx=g\…

Why does Second-order cone programming matter?

Because it connects several computer science 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 Second-order cone 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 Second-order cone programming.

Tags

  • Convex optimization
  • Optimization algorithms and methods

Keep exploring