Convex optimization is a subfield of mathematical optimization that studies the problem of minimizing convex functions over convex sets (or, equivalently, maximizing concave functions over convex sets). Many classes of convex optimization problems admit polynomial-time algorithms,[1] whereas mathematical optimization is in general NP-hard.[2][3][4]

Convex optimization has applications in a wide range of disciplines, such as automatic control systems, estimation and signal processing, communications and networks, electronic circuit design,[5] data analysis and modeling, finance, statistics (optimal experimental design),[6] and structural optimization, where the approximation concept has proven to be efficient.[7][8] With recent advancements in computing and optimization algorithms, convex programming is nearly as straightforward as linear programming.[9]

## Definition

A convex optimization problem is an optimization problem in which the objective function is a convex function and the feasible set is a convex set. A function ${\displaystyle f}$ mapping some subset of ${\displaystyle \mathbb {R} ^{n))$into ${\displaystyle \mathbb {R} \cup \{\pm \infty \))$ is convex if its domain is convex and for all ${\displaystyle \theta \in [0,1]}$ and all ${\displaystyle x,y}$ in its domain, the following condition holds: ${\displaystyle f(\theta x+(1-\theta )y)\leq \theta f(x)+(1-\theta )f(y)}$. A set S is convex if for all members ${\displaystyle x,y\in S}$ and all ${\displaystyle \theta \in [0,1]}$, we have that ${\displaystyle \theta x+(1-\theta )y\in S}$.

Concretely, a convex optimization problem is the problem of finding some ${\displaystyle \mathbf {x^{\ast )) \in C}$ attaining

${\displaystyle \inf\{f(\mathbf {x} ):\mathbf {x} \in C\))$,

where the objective function ${\displaystyle f:{\mathcal {D))\subseteq \mathbb {R} ^{n}\to \mathbb {R} }$ is convex, as is the feasible set ${\displaystyle C}$.[10] [11] If such a point exists, it is referred to as an optimal point or solution; the set of all optimal points is called the optimal set. If ${\displaystyle f}$ is unbounded below over ${\displaystyle C}$ or the infimum is not attained, then the optimization problem is said to be unbounded. Otherwise, if ${\displaystyle C}$ is the empty set, then the problem is said to be infeasible.[12]

### Standard form

A convex optimization problem is in standard form if it is written as

{\displaystyle {\begin{aligned}&{\underset {\mathbf {x} }{\operatorname {minimize} ))&&f(\mathbf {x} )\\&\operatorname {subject\ to} &&g_{i}(\mathbf {x} )\leq 0,\quad i=1,\dots ,m\\&&&h_{i}(\mathbf {x} )=0,\quad i=1,\dots ,p,\end{aligned))}

where:[12]

• ${\displaystyle \mathbf {x} \in \mathbb {R} ^{n))$ is the optimization variable;
• The objective function ${\displaystyle f:{\mathcal {D))\subseteq \mathbb {R} ^{n}\to \mathbb {R} }$ is a convex function;
• The inequality constraint functions ${\displaystyle g_{i}:\mathbb {R} ^{n}\to \mathbb {R} }$, ${\displaystyle i=1,\ldots ,m}$, are convex functions;
• The equality constraint functions ${\displaystyle h_{i}:\mathbb {R} ^{n}\to \mathbb {R} }$, ${\displaystyle i=1,\ldots ,p}$, are affine transformations, that is, of the form: ${\displaystyle h_{i}(\mathbf {x} )=\mathbf {a_{i)) \cdot \mathbf {x} -b_{i))$, where ${\displaystyle \mathbf {a_{i)) }$ is a vector and ${\displaystyle b_{i))$ is a scalar.

This notation describes the problem of finding ${\displaystyle \mathbf {x} \in \mathbb {R} ^{n))$ that minimizes ${\displaystyle f(\mathbf {x} )}$ among all ${\displaystyle \mathbf {x} }$ satisfying ${\displaystyle g_{i}(\mathbf {x} )\leq 0}$, ${\displaystyle i=1,\ldots ,m}$ and ${\displaystyle h_{i}(\mathbf {x} )=0}$, ${\displaystyle i=1,\ldots ,p}$. The function ${\displaystyle f}$ is the objective function of the problem, and the functions ${\displaystyle g_{i))$ and ${\displaystyle h_{i))$ are the constraint functions.

The feasible set ${\displaystyle C}$ of the optimization problem consists of all points ${\displaystyle \mathbf {x} \in {\mathcal {D))}$ satisfying the constraints. This set is convex because ${\displaystyle {\mathcal {D))}$ is convex, the sublevel sets of convex functions are convex, affine sets are convex, and the intersection of convex sets is convex.[13]

A solution to a convex optimization problem is any point ${\displaystyle \mathbf {x} \in C}$ attaining ${\displaystyle \inf\{f(\mathbf {x} ):\mathbf {x} \in C\))$. In general, a convex optimization problem may have zero, one, or many solutions.[14]

Many optimization problems can be equivalently formulated in this standard form. For example, the problem of maximizing a concave function ${\displaystyle f}$ can be re-formulated equivalently as the problem of minimizing the convex function ${\displaystyle -f}$. The problem of maximizing a concave function over a convex set is commonly called a convex optimization problem.[15]

## Properties

The following are useful properties of convex optimization problems:[16][12]

• every local minimum is a global minimum;
• the optimal set is convex;
• if the objective function is strictly convex, then the problem has at most one optimal point.

These results are used by the theory of convex minimization along with geometric notions from functional analysis (in Hilbert spaces) such as the Hilbert projection theorem, the separating hyperplane theorem, and Farkas' lemma.[citation needed]

## Applications

The following problem classes are all convex optimization problems, or can be reduced to convex optimization problems via simple transformations:[12][17]

A hierarchy of convex optimization problems. (LP: linear program, QP: quadratic program, SOCP second-order cone program, SDP: semidefinite program, CP: cone program.)

Convex optimization has practical applications for the following.

## Lagrange multipliers

This section does not cite any sources. Please help improve this section by adding citations to reliable sources. Unsourced material may be challenged and removed. (April 2021) (Learn how and when to remove this template message)

Consider a convex minimization problem given in standard form by a cost function ${\displaystyle f(x)}$ and inequality constraints ${\displaystyle g_{i}(x)\leq 0}$ for ${\displaystyle 1\leq i\leq m}$. Then the domain ${\displaystyle {\mathcal {X))}$ is:

${\displaystyle {\mathcal {X))=\left\{x\in X\vert g_{1}(x),\ldots ,g_{m}(x)\leq 0\right\}.}$

The Lagrangian function for the problem is

${\displaystyle L(x,\lambda _{0},\lambda _{1},\ldots ,\lambda _{m})=\lambda _{0}f(x)+\lambda _{1}g_{1}(x)+\cdots +\lambda _{m}g_{m}(x).}$

For each point ${\displaystyle x}$ in ${\displaystyle X}$ that minimizes ${\displaystyle f}$ over ${\displaystyle X}$, there exist real numbers ${\displaystyle \lambda _{0},\lambda _{1},\ldots ,\lambda _{m},}$ called Lagrange multipliers, that satisfy these conditions simultaneously:

1. ${\displaystyle x}$ minimizes ${\displaystyle L(y,\lambda _{0},\lambda _{1},\ldots ,\lambda _{m})}$ over all ${\displaystyle y\in X,}$
2. ${\displaystyle \lambda _{0},\lambda _{1},\ldots ,\lambda _{m}\geq 0,}$ with at least one ${\displaystyle \lambda _{k}>0,}$
3. ${\displaystyle \lambda _{1}g_{1}(x)=\cdots =\lambda _{m}g_{m}(x)=0}$ (complementary slackness).

If there exists a "strictly feasible point", that is, a point ${\displaystyle z}$ satisfying

${\displaystyle g_{1}(z),\ldots ,g_{m}(z)<0,}$

then the statement above can be strengthened to require that ${\displaystyle \lambda _{0}=1}$.

Conversely, if some ${\displaystyle x}$ in ${\displaystyle X}$ satisfies (1)–(3) for scalars ${\displaystyle \lambda _{0},\ldots ,\lambda _{m))$ with ${\displaystyle \lambda _{0}=1}$ then ${\displaystyle x}$ is certain to minimize ${\displaystyle f}$ over ${\displaystyle X}$.

## Algorithms

Unconstrained convex optimization can be easily solved with gradient descent (a special case of steepest descent) or Newton's method, combined with line search for an appropriate step size; these can be mathematically proven to converge quickly, especially the latter method.[22] Convex optimization with linear equality constraints can also be solved using KKT matrix techniques if the objective function is a quadratic function (which generalizes to a variation of Newton's method, which works even if the point of initialization does not satisfy the constraints), but can also generally be solved by eliminating the equality constraints with linear algebra or solving the dual problem.[22] Finally, convex optimization with both linear equality constraints and convex inequality constraints can be solved by applying an unconstrained convex optimization technique to the objective function plus logarithmic barrier terms.[22] (When the starting point is not feasible - that is, satisfying the constraints - this is preceded by so-called phase I methods, which either find a feasible point or show that none exist. Phase I methods generally consist of reducing the search in question to yet another convex optimization problem.[22])

Convex optimization problems can also be solved by the following contemporary methods:[23]

Subgradient methods can be implemented simply and so are widely used.[26][citation needed] Dual subgradient methods are subgradient methods applied to a dual problem. The drift-plus-penalty method is similar to the dual subgradient method, but takes a time average of the primal variables.[citation needed]

### Software

There is a large software ecosystem for convex optimization. This ecosystem has two main categories: solvers on the one hand and modeling tools (or interfaces) on the other hand.

Solvers implement the algorithms themselves and are usually written in C. They require users to specify optimization problems in very specific formats which may not be natural from a modeling perspective. Modeling tools are separate pieces of software that let the user specify an optimization in higher-level syntax. They manage all transformations to and from the user's high-level model and the solver's input/output format.

The table below shows a mix of modeling tools (such as CVXPY and Convex.jl) and solvers (such as CVXOPT and MOSEK). This table is by no means exhaustive.

Program Language Description FOSS? Ref
CVX MATLAB Interfaces with SeDuMi and SDPT3 solvers; designed to only express convex optimization problems. Yes [27]
CVXMOD Python Interfaces with the CVXOPT solver. Yes [27]
CVXPY Python [28]
Convex.jl Julia Disciplined convex programming, supports many solvers. Yes [29]
CVXR R Yes [30]
YALMIP MATLAB, Octave Interfaces with CPLEX, GUROBI, MOSEK, SDPT3, SEDUMI, CSDP, SDPA, PENNON solvers; also supports integer and nonlinear optimization, and some nonconvex optimization. Can perform robust optimization with uncertainty in LP/SOCP/SDP constraints. Yes [27]
LMI lab MATLAB Expresses and solves semidefinite programming problems (called "linear matrix inequalities") No [27]
LMIlab translator Transforms LMI lab problems into SDP problems. Yes [27]
xLMI MATLAB Similar to LMI lab, but uses the SeDuMi solver. Yes [27]
AIMMS Can do robust optimization on linear programming (with MOSEK to solve second-order cone programming) and mixed integer linear programming. Modeling package for LP + SDP and robust versions. No [27]
ROME Modeling system for robust optimization. Supports distributionally robust optimization and uncertainty sets. Yes [27]
GloptiPoly 3 MATLAB,

Octave

Modeling system for polynomial optimization. Yes [27]
SOSTOOLS Modeling system for polynomial optimization. Uses SDPT3 and SeDuMi. Requires Symbolic Computation Toolbox. Yes [27]
SparsePOP Modeling system for polynomial optimization. Uses the SDPA or SeDuMi solvers. Yes [27]
CPLEX Supports primal-dual methods for LP + SOCP. Can solve LP, QP, SOCP, and mixed integer linear programming problems. No [27]
CSDP C Supports primal-dual methods for LP + SDP. Interfaces available for MATLAB, R, and Python. Parallel version available. SDP solver. Yes [27]
CVXOPT Python Supports primal-dual methods for LP + SOCP + SDP. Uses Nesterov-Todd scaling. Interfaces to MOSEK and DSDP. Yes [27]
MOSEK Supports primal-dual methods for LP + SOCP. No [27]
SeDuMi MATLAB, Octave, MEX Solves LP + SOCP + SDP. Supports primal-dual methods for LP + SOCP + SDP. Yes [27]
SDPA C++ Solves LP + SDP. Supports primal-dual methods for LP + SDP. Parallelized and extended precision versions are available. Yes [27]
SDPT3 MATLAB, Octave, MEX Solves LP + SOCP + SDP. Supports primal-dual methods for LP + SOCP + SDP. Yes [27]
ConicBundle Supports general-purpose codes for LP + SOCP + SDP. Uses a bundle method. Special support for SDP and SOCP constraints. Yes [27]
DSDP Supports general-purpose codes for LP + SDP. Uses a dual interior point method. Yes [27]
LOQO Supports general-purpose codes for SOCP, which it treats as a nonlinear programming problem. No [27]
PENNON Supports general-purpose codes. Uses an augmented Lagrangian method, especially for problems with SDP constraints. No [27]
SDPLR Supports general-purpose codes. Uses low-rank factorization with an augmented Lagrangian method. Yes [27]
GAMS Modeling system for linear, nonlinear, mixed integer linear/nonlinear, and second-order cone programming problems. No [27]
Optimization Services XML standard for encoding optimization problems and solutions. [27]

## Extensions

Extensions of convex optimization include the optimization of biconvex, pseudo-convex, and quasiconvex functions. Extensions of the theory of convex analysis and iterative methods for approximately solving non-convex minimization problems occur in the field of generalized convexity, also known as abstract convex analysis.[citation needed]

## Notes

1. ^ a b Nesterov & Nemirovskii 1994
2. ^ Murty, Katta; Kabadi, Santosh (1987). "Some NP-complete problems in quadratic and nonlinear programming". Mathematical Programming. 39 (2): 117–129. doi:10.1007/BF02592948. hdl:2027.42/6740. S2CID 30500771.
3. ^ Sahni, S. "Computationally related problems," in SIAM Journal on Computing, 3, 262--279, 1974.
4. ^ Quadratic programming with one negative eigenvalue is NP-hard, Panos M. Pardalos and Stephen A. Vavasis in Journal of Global Optimization, Volume 1, Number 1, 1991, pg.15-22.
5. ^ Boyd & Vandenberghe 2004, p. 17
6. ^ Chritensen/Klarbring, chpt. 4.
7. ^ Boyd & Vandenberghe 2004
8. ^ Schmit, L.A.; Fleury, C. 1980: Structural synthesis by combining approximation concepts and dual methods. J. Amer. Inst. Aeronaut. Astronaut 18, 1252-1260
9. ^ Boyd & Vandenberghe 2004, p. 8
10. ^ Hiriart-Urruty, Jean-Baptiste; Lemaréchal, Claude (1996). Convex analysis and minimization algorithms: Fundamentals. p. 291. ISBN 9783540568506.
11. ^ Ben-Tal, Aharon; Nemirovskiĭ, Arkadiĭ Semenovich (2001). Lectures on modern convex optimization: analysis, algorithms, and engineering applications. pp. 335–336. ISBN 9780898714913.
12. ^ a b c d Boyd & Vandenberghe 2004, chpt. 4
13. ^ Boyd & Vandenberghe 2004, chpt. 2
14. ^
15. ^ "Optimization Problem Types - Convex Optimization". 9 January 2011.
16. ^ Rockafellar, R. Tyrrell (1993). "Lagrange multipliers and optimality" (PDF). SIAM Review. 35 (2): 183–238. CiteSeerX 10.1.1.161.7209. doi:10.1137/1035044.
17. ^ Agrawal, Akshay; Verschueren, Robin; Diamond, Steven; Boyd, Stephen (2018). "A rewriting system for convex optimization problems" (PDF). Control and Decision. 5 (1): 42–60. arXiv:1709.04494. doi:10.1080/23307706.2017.1397554. S2CID 67856259.
18. Boyd, Stephen; Diamond, Stephen; Zhang, Junzi; Agrawal, Akshay. "Convex Optimization Applications" (PDF). Archived (PDF) from the original on 2015-10-01. Retrieved 12 Apr 2021.
19. ^ a b c Malick, Jérôme (2011-09-28). "Convex optimization: applications, formulations, relaxations" (PDF). Archived (PDF) from the original on 2021-04-12. Retrieved 12 Apr 2021.
20. ^ Ben Haim Y. and Elishakoff I., Convex Models of Uncertainty in Applied Mechanics, Elsevier Science Publishers, Amsterdam, 1990
21. ^ Ahmad Bazzi, Dirk TM Slock, and Lisa Meilhac. "Online angle of arrival estimation in the presence of mutual coupling." 2016 IEEE Statistical Signal Processing Workshop (SSP). IEEE, 2016.
22. ^ a b c d Boyd, Stephen; Vandenberghe, Lieven (2004). Convex Optimization (PDF). Cambridge University Press. ISBN 978-0-521-83378-3. Retrieved 12 Apr 2021.((cite book)): CS1 maint: url-status (link)
23. ^ For methods for convex minimization, see the volumes by Hiriart-Urruty and Lemaréchal (bundle) and the textbooks by Ruszczyński, Bertsekas, and Boyd and Vandenberghe (interior point).
24. ^ Nesterov, Yurii; Arkadii, Nemirovskii (1995). Interior-Point Polynomial Algorithms in Convex Programming. Society for Industrial and Applied Mathematics. ISBN 978-0898715156.
25. ^ Peng, Jiming; Roos, Cornelis; Terlaky, Tamás (2002). "Self-regular functions and new search directions for linear and semidefinite optimization". Mathematical Programming. 93 (1): 129–171. doi:10.1007/s101070200296. ISSN 0025-5610. S2CID 28882966.
26. ^ Bertsekas
27. Borchers, Brian. "An Overview Of Software For Convex Optimization" (PDF). Archived from the original (PDF) on 2017-09-18. Retrieved 12 Apr 2021.
28. ^ "Welcome to CVXPY 1.1 — CVXPY 1.1.11 documentation". www.cvxpy.org. Retrieved 2021-04-12.
29. ^ Udell, Madeleine; Mohan, Karanveer; Zeng, David; Hong, Jenny; Diamond, Steven; Boyd, Stephen (2014-10-17). "Convex Optimization in Julia". arXiv:1410.4821 [math.OC].
30. ^ "Disciplined Convex Optimiation - CVXR". www.cvxgrp.org. Retrieved 2021-06-17.

## References

• Ruszczyński, Andrzej (2006). Nonlinear Optimization. Princeton University Press.
• Schmit, L.A.; Fleury, C. 1980: Structural synthesis by combining approximation concepts and dual methods. J. Amer. Inst. Aeronaut. Astronaut 18, 1252-1260