Loading AI tools

Subfield of mathematical optimization From Wikipedia, the free encyclopedia

**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]}

A convex optimization problem is defined by two ingredients:^{[5]}^{[6]}

- The
*objective function*, which is a real-valued convex function of*n*variables, ; - The
*feasible set*, which is a convex subset .

The goal of the problem is to find some attaining

- .

In general, there are three options regarding the existence of a solution:^{[7]}^{: chpt.4 }

- If such a point
*x** exists, it is referred to as an*optimal point*or*solution*; the set of all optimal points is called the*optimal set*; and the problem is called*solvable*. - If is unbounded below over , or the infimum is not attained, then the optimization problem is said to be
*unbounded*. - Otherwise, if is the empty set, then the problem is said to be
*infeasible*.

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

where:^{[7]}^{: chpt.4 }

- is the vector of optimization variables;
- The objective function is a convex function;
- The inequality constraint functions , , are convex functions;
- The equality constraint functions , , are affine transformations, that is, of the form: , where is a vector and is a scalar.

The feasible set of the optimization problem consists of all points satisfying the inequality and the equality constraints. This set is convex because is convex, the sublevel sets of convex functions are convex, affine sets are convex, and the intersection of convex sets is convex.^{[7]}^{: chpt.2 }

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

In the standard form it is possible to assume, without loss of generality, that the objective function *f* is a linear function. This is because any program with a general objective can be transformed into a program with a linear objective by adding a single variable t and a single constraint, as follows:^{[9]}^{: 1.4 }

Every convex program can be presented in a *conic form*, which means minimizing a linear objective over the intersection of an affine plane and a convex cone:^{[9]}^{: 5.1 }

where K is a closed pointed convex cone, L is a linear subspace of R* ^{n}*, and b is a vector in R

It is possible to convert a convex program in standard form, to a convex program with no equality constraints.^{[7]}^{: 132 } Denote the equality constraints *h _{i}*(

where the variables are **z**. Note that there are rank(*A*) fewer variables. This means that, in principle, one can restrict attention to convex optimization problems without equality constraints. In practice, however, it is often preferred to retain the equality constraints, since they might make some algorithms more efficient, and also make the problem easier to understand and analyze.

The following problem classes are all convex optimization problems, or can be reduced to convex optimization problems via simple transformations:^{[7]}^{: chpt.4 }^{[10]}

- Linear programming problems are the simplest convex programs. In LP, the objective and constraint functions are all linear.
- Quadratic programming are the next-simplest. In QP, the constraints are all linear, but the objective may be a convex quadratic function.
- Second order cone programming are more general.
- Semidefinite programming are more general.
- Conic optimization are even more general - see figure to the right,

Other special cases include;

- Least squares
- Quadratic minimization with convex quadratic constraints
- Geometric programming
- Entropy maximization with appropriate constraints.

The following are useful properties of convex optimization problems:^{[11]}^{[7]}^{: chpt.4 }

- 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]}

The convex programs easiest to solve are the *unconstrained* problems, or the problems with only equality constraints. As the equality constraints are all linear, they can be eliminated with linear algebra and integrated into the objective, thus converting an equality-constrained problem into an unconstrained one.

In the class of unconstrained (or equality-constrained) problems, the simplest ones are those in which the objective is quadratic. For these problems, the KKT conditions (which are necessary for optimality) are all linear, so they can be solved analytically.^{[7]}^{: chpt.11 }

For unconstrained (or equality-constrained) problems with a general convex objective that is twice-differentiable, Newton's method can be used. It can be seen as reducing a general unconstrained convex problem, to a sequence of quadratic problems.^{[7]}^{: chpt.11 }Newton's method can be combined with line search for an appropriate step size, and it can be mathematically proven to converge quickly.

Other efficient algorithms for unconstrained minimization are gradient descent (a special case of steepest descent).

The more challenging problems are those with inequality constraints. A common way to solve them is to reduce them to unconstrained problems by adding a barrier function, enforcing the inequality constraints, to the objective function. Such methods are called interior point methods.^{[7]}^{: chpt.11 }They have to be initialized by finding a feasible interior point using 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 a simpler convex optimization problem.^{[7]}^{: chpt.11 }

Convex optimization problems can also be solved by the following contemporary methods:^{[12]}

- Bundle methods (Wolfe, Lemaréchal, Kiwiel), and
- Subgradient projection methods (Polyak),
- Interior-point methods,
^{[1]}which make use of self-concordant barrier functions^{[13]}and self-regular barrier functions.^{[14]} - Cutting-plane methods
- Ellipsoid method
- Subgradient method
- Dual subgradients and the drift-plus-penalty method

Subgradient methods can be implemented simply and so are widely used.^{[15]} 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]}

Consider a convex minimization problem given in standard form by a cost function and inequality constraints for . Then the domain is:

The Lagrangian function for the problem is

For each point in that minimizes over , there exist real numbers called Lagrange multipliers, that satisfy these conditions simultaneously:

- minimizes over all
- with at least one
- (complementary slackness).

If there exists a "strictly feasible point", that is, a point satisfying

then the statement above can be strengthened to require that .

Conversely, if some in satisfies (1)–(3) for scalars with then is certain to minimize over .

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 | ^{[16]} |

CVXMOD | Python | Interfaces with the CVXOPT solver. | Yes | ^{[16]} |

CVXPY | Python | ^{[17]} | ||

Convex.jl | Julia | Disciplined convex programming, supports many solvers. | Yes | ^{[18]} |

CVXR | R | Yes | ^{[19]} | |

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 | ^{[16]} |

LMI lab | MATLAB | Expresses and solves semidefinite programming problems (called "linear matrix inequalities") | No | ^{[16]} |

LMIlab translator | Transforms LMI lab problems into SDP problems. | Yes | ^{[16]} | |

xLMI | MATLAB | Similar to LMI lab, but uses the SeDuMi solver. | Yes | ^{[16]} |

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 | ^{[16]} | |

ROME | Modeling system for robust optimization. Supports distributionally robust optimization and uncertainty sets. | Yes | ^{[16]} | |

GloptiPoly 3 | MATLAB,
Octave |
Modeling system for polynomial optimization. | Yes | ^{[16]} |

SOSTOOLS | Modeling system for polynomial optimization. Uses SDPT3 and SeDuMi. Requires Symbolic Computation Toolbox. | Yes | ^{[16]} | |

SparsePOP | Modeling system for polynomial optimization. Uses the SDPA or SeDuMi solvers. | Yes | ^{[16]} | |

CPLEX | Supports primal-dual methods for LP + SOCP. Can solve LP, QP, SOCP, and mixed integer linear programming problems. | No | ^{[16]} | |

CSDP | C | Supports primal-dual methods for LP + SDP. Interfaces available for MATLAB, R, and Python. Parallel version available. SDP solver. | Yes | ^{[16]} |

CVXOPT | Python | Supports primal-dual methods for LP + SOCP + SDP. Uses Nesterov-Todd scaling. Interfaces to MOSEK and DSDP. | Yes | ^{[16]} |

MOSEK | Supports primal-dual methods for LP + SOCP. | No | ^{[16]} | |

SeDuMi | MATLAB, Octave, MEX | Solves LP + SOCP + SDP. Supports primal-dual methods for LP + SOCP + SDP. | Yes | ^{[16]} |

SDPA | C++ | Solves LP + SDP. Supports primal-dual methods for LP + SDP. Parallelized and extended precision versions are available. | Yes | ^{[16]} |

SDPT3 | MATLAB, Octave, MEX | Solves LP + SOCP + SDP. Supports primal-dual methods for LP + SOCP + SDP. | Yes | ^{[16]} |

ConicBundle | Supports general-purpose codes for LP + SOCP + SDP. Uses a bundle method. Special support for SDP and SOCP constraints. | Yes | ^{[16]} | |

DSDP | Supports general-purpose codes for LP + SDP. Uses a dual interior point method. | Yes | ^{[16]} | |

LOQO | Supports general-purpose codes for SOCP, which it treats as a nonlinear programming problem. | No | ^{[16]} | |

PENNON | Supports general-purpose codes. Uses an augmented Lagrangian method, especially for problems with SDP constraints. | No | ^{[16]} | |

SDPLR | Supports general-purpose codes. Uses low-rank factorization with an augmented Lagrangian method. | Yes | ^{[16]} | |

GAMS | Modeling system for linear, nonlinear, mixed integer linear/nonlinear, and second-order cone programming problems. | No | ^{[16]} | |

Optimization Services | XML standard for encoding optimization problems and solutions. | ^{[16]} |

Convex optimization can be used to model problems in a wide range of disciplines, such as automatic control systems, estimation and signal processing, communications and networks, electronic circuit design,^{[7]}^{: 17 } data analysis and modeling, finance, statistics (optimal experimental design),^{[20]} and structural optimization, where the approximation concept has proven to be efficient.^{[7]}^{[21]} Convex optimization can be used to model problems in the following fields:

- Portfolio optimization.
^{[22]} - Worst-case risk analysis.
^{[22]} - Optimal advertising.
^{[22]} - Variations of statistical regression (including regularization and quantile regression).
^{[22]} - Model fitting
^{[22]}(particularly multiclass classification^{[23]}). - Electricity generation optimization.
^{[23]} - Combinatorial optimization.
^{[23]} - Non-probabilistic modelling of uncertainty.
^{[24]} - Localization using wireless signals
^{[25]}

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]}

Seamless Wikipedia browsing. On steroids.

Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.

Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.