Convex Optimization

A convex optimization problem is an optimization problem in which the objective function is convex and the feasible set is a convex set. Convex optimization is important because it guarantees that any local minimum is also a global minimum, which greatly simplifies both analysis and algorithms. In strictly convex functions, the global minimum is either unique or does not exist.

Formally, an optimization problem of the form

is called a convex optimization problem if:

  • The objective function is convex.
  • Each inequality constraint is convex.
  • Each equality constraint is affine.

The set of optimal points of a convex optimization problem is also convex, and therefore cannot be split into multiple regions. This implies that if more than one optimal point exists, is one continuous global minimum region, not multiple isolated ones.

Examples

Make it Convex!

Consider the optimization problem

\min_{x \in \mathbb{R}^2} \quad & \left(\frac{1}{12}x_1^4 + a_3 x_1^3 + a_2 x_1^2 + a_1 x_1 + a_0\right) + x_2^{18} \\ \text{s.t.} \quad & a_2 x_1^2 + a_1 x_1 + a_0 \le -10x_2 + 5, \\ & a_1 x_1 + a_0 = x_2 + 1. \end{align}$$ >[!example]- Find all coefficients $a_{i}$ for which the problem is convex. >To proceed, we must ensure that the objective and constraints are convex, and the equality constraint is affine. We analyze the Hessian of the objective, such that >$$\nabla f_{0}(x)=\begin{bmatrix} \frac{1}{3}x_{1}^3+3a_{3}x_{1}^2+2a_{2}x_{1}+a_{1} \\ 18x_{2}^{17}\end{bmatrix},$$ >$$\nabla f_{1}(x)=\begin{bmatrix}2a_{2}x_{1}+a_{1} \\ 10\end{bmatrix},$$ >$$\nabla h_{1}(x)=\begin{bmatrix}a_{1} \\ -1\end{bmatrix}$$ >and therefore >$$\nabla^2f_{0}(x)= >\begin{bmatrix} >x_{1}^2+6a_{3}x_{1}+2a_{2} & 0 \\ >0 & 306x_{2}^{16} >\end{bmatrix}$$ >$$\nabla^2f_{1}(x)=\begin{bmatrix}2a_{2} & 0 \\ 0 & 0\end{bmatrix}$$ >$$\nabla^2 h_{1}(x)=0$$ >Since both Hessians are diagonal, we only need the diagonals to be nonnegative for the Hessians to be PSD and meet the second-order condition. Furthermore, all leading factors are even-squared, indicating that their values are always nonnegative. As such, the only constraint (setting $x_{1}=0$) is that the discriminant of the quadratic formula is non-positive, such that $(6a_{3})^2-4\cdot2 a_{2} \leq 0$, which indicates that the function has at most one root with a $y$-value of $0$. Therefore, the coefficients for which the problem is convex satisfy the inequality >$$36a_{3}^2 \leq 8a_{2} \iff 9a_{3}^2 \leq 2a_{2}.$$ >So the set of coefficients is >$$\left\{ a_{0}, a_{1}, a_{2}, a_{3} \mid \frac{9}{2}a_{3}^2 \leq a_{2} \right\}.$$ >Since $a_{3}^2 \geq 0$, we can ignore $2a_{2} \ge 0$.

Feasible & Optimal Sets

Consider the convex optimization problem

\min_{x \in \mathbb{R}^3} \quad &
e^{-x_1 - x_2 - x_3} + (x_1 + 2x_2 + 3x_3)^4 \
\text{s.t.} \quad
& x_1 - x_2 - x_3 = 1, \
& x_1^2 + x_2^2 + x_3^2 + x_1 x_2 + x_2 x_3 + x_1 x_3 \le 2, \
& 0 \le x_1 \le 1, \
& 0 \le x_2 \le 1, \
& 0 \le x_3 \le 1.
\end{aligned}$$

Local & Global Minima

Consider a convex function such that:

  • The points and are both global minima of the function with the property that .

  • .

Example