Definition of Convex Sets and Common Convex Sets

It is commonly held that if a real-world problem can be formulated as a convex optimization problem, then the problem is in effect already solved. Recognizing a convex optimization problem, however, is still rather difficult. This article begins by introducing the definition of convex sets and some common convex sets.

Affine Sets

A set CRnC\subseteq R^{n} is affine if and only if, for any x1,x2Cx_{1},x_{2}\in C and θR\theta \in R, we have θx1+(1θ)x2C\theta x_{1}+(1-\theta)x_{2}\in C; that is, CC contains every linear combination of any two of its points whose coefficients sum to 1.

Extending this to the case of multiple points: if θ1+θ2+...+θk=1\theta_{1}+\theta_{2}+...+\theta_{k}=1, we call a point of the form θ1x1+θ2x2+...+θkxk\theta_{1}x_{1}+\theta_{2}x_{2}+...+\theta_{k}x_{k} an affine combination of x1,x2,...,xkx_{1},x_{2},...,x_{k}. For example, the solution set of a system of linear equations C={xAx=b}C=\{x|Ax=b\} is an affine set.

The set consisting of all affine combinations of points in CRnC\subseteq R^{n} is called the affine hull of CC:

aff C={θ1x1+...+θkxkx1,...,xkC,θ1+θ2+...+θk=1}\mathrm{aff}\ C=\{\theta_{1}x_{1}+...+\theta_{k}x_{k}|x_{1},...,x_{k}\in C,\theta_{1}+\theta_{2}+...+\theta_{k}=1\}

The affine hull is the smallest affine set containing CC; that is, if a set SS satisfies CSC\subseteq S, then aff CS\mathrm{aff}\ C\subseteq S. We also define the affine dimension of a set CC as the dimension of its affine hull. For example, the unit circle in R2R^{2} has dimension 1, but its affine dimension is 2, because its affine hull is the whole space R2R^{2}.

Convex Sets

A set CC is convex if, for any x1,x2Cx_{1},x_{2}\in C and 0θ10\le \theta\le 1, we have θx1+(1θ)x2C\theta x_{1}+(1-\theta)x_{2}\in C. The difference from an affine set is that an affine set imposes no requirement that θ0\theta\ge0. For example, a line segment is a convex set, whereas a line is an affine set.

Extending to the multidimensional case, if θ1+θ2+...+θk=1,θi0\theta_{1}+\theta_{2}+...+\theta_{k}=1,\theta_{i}\ge0, then a point of the form θ1x1+θ2x2+...+θkxk\theta_{1}x_{1}+\theta_{2}x_{2}+...+\theta_{k}x_{k} is called a convex combination of x1,x2,...,xkx_{1},x_{2},...,x_{k}.

The set consisting of all convex combinations of points in CRnC\subseteq R^{n} is called the convex hull of CC:

conv C={θ1x1+...+θkxkx1,...,xkC,θ1+...+θk=1,θi0}\mathrm{conv}\ C=\{\theta_{1}x_{1}+...+\theta_{k}x_{k}|x_{1},...,x_{k}\in C,\theta_{1}+...+\theta_{k}=1,\theta_{i}\ge0\}

As with the affine hull, the convex hull is the smallest convex set containing CC. More generally, let CRnC\in R^{n} be a convex set, let xx be a random variable, and suppose xCx\in C with probability 1; then E xCE\ x\in C.

Some Important Convex Sets

Recognizing convex sets is fairly important for identifying convex optimization problems. Here we introduce some of the more important convex sets.

Any affine set or subspace is convex. Some of the simpler ones, such as the empty set \emptyset, a singleton set {x0}\{x_{0}\}, the whole space RnR^{n}, and lines/rays/line segments, are all convex.

Some other important convex sets are as follows:

  1. Hyperplanes {xaTx=b}\{x|a^{T}x=b \} and halfspaces {xaTxb}\{x|a^{T}x\le b\}
  2. Euclidean balls B(xc,r)={x xxc2r}B(x_{c},r)=\{x|\ ||x-x_{c}||_{2}\le r\}
  3. Ellipsoids ξ={x(xxc)TP1(xxc)1}\xi=\{x|(x-x_{c})^{T}P^{-1}(x-x_{c})\le1\}
  4. Norm balls {x xxcr}\{x|\ ||x-x_{c}||\le r\}, where ||\cdot|| is a norm on RnR^{n}
  5. Norm cones C={(x,t) xt}Rn+1C=\{(x,t)|\ ||x||\le t\}\subseteq R^{n+1}
  6. Polyhedra P={xajTbj,j=1,...,m,cjTx=dj,j=1,...,p}P=\{x|a_{j}^{T}\le b_{j},j=1,...,m,c_{j}^{T}x=d_{j},j=1,...,p\}, i.e., the intersection of a finite number of halfspaces and hyperplanes; a simplex is also a convex set and is a special kind of polyhedron
  7. The positive semidefinite cone S+n={XRnnX=XT,X0}S_{+}^{n}=\{X\in R^{n*n}|X=X^{T},X\succeq0\}, i.e., the set of positive semidefinite symmetric matrices