重要凸集
一些简单的凸集
- 空集
、任意一点(单点集) 、全空间 都是 的仿射(自然也是凸的)子集。 - 任意直线是仿射的。如果直线通过零点,则是子空间,因此,也是凸锥。
- 一条线段是凸的,但不是仿射的(除非退化为一个点)。
- 一条射线是凸的,但不是仿射的。如果射线的基点是零点,则它是凸锥。
- 任意子空间是仿射的、凸锥(自然是凸的)。
超平面与半空间
超平面是具有如下形式的集合
其中
一个超平面将全空间
半空间是凸的,但不是仿射的。凸性可以直接验证:若
即凸组合仍在半空间中。超平面是半空间的边界。

TikZ 代码
\begin{tikzpicture}[line cap=round,line join=round,scale=0.9]
% closed halfspace {x | a^T x <= b}
\fill[gray!20] (-2,-1.9) -- (3.4,-1.9) -- (3.4,2.0) -- (-2,-0.7) -- cycle;
\draw (-2,-0.7) -- (3.4,2.0);
\node at (-0.9,0.28) [rotate=26.6] {$a^{\top}x = b$};
\fill (0.35,0.475) circle (1.4pt) node[below right] {$x_0$};
\draw[->,thick] (0.35,0.475) -- (0.05,1.475) node[above] {$a$};
\node at (1.3,-1.1) {$a^{\top}x \leq b$};
\end{tikzpicture}Euclid 球和椭球
其中向量
和 Euclid 球类似的还有椭球,它们具有如下形式:
其中

TikZ 代码
\begin{tikzpicture}[line cap=round,line join=round,scale=0.9]
% ellipsoid {(x-xc)^T P^{-1} (x-xc) <= 1}
\draw[fill=gray!20,rotate around={30:(0,0)}] (0,0) ellipse (2 and 0.8);
\fill (0,0) circle (1.4pt) node[below left] {$x_c$};
\draw[->] (0,0) -- (1.73,1.0) node[midway,below right] {$\sqrt{\lambda_1}$};
\draw[->] (0,0) -- (-0.4,0.69) node[above left] {$\sqrt{\lambda_2}$};
\end{tikzpicture}当
椭球另一个常用的表示形式是
范数球和范数锥
关于范数
其中

TikZ 代码
\begin{tikzpicture}[line cap=round,line join=round,scale=0.75]
% unit balls of l1, l2 and linf norms
\draw[fill=gray!20] (1,0) -- (0,1) -- (-1,0) -- (0,-1) -- cycle;
\node at (0,-1.6) {$\|x\|_1 \leq 1$};
\begin{scope}[shift={(3.4,0)}]
\draw[fill=gray!20] (0,0) circle (1);
\node at (0,-1.6) {$\|x\|_2 \leq 1$};
\end{scope}
\begin{scope}[shift={(6.8,0)}]
\draw[fill=gray!20] (-1,-1) rectangle (1,1);
\node at (0,-1.6) {$\|x\|_{\infty} \leq 1$};
\end{scope}
\end{tikzpicture}由范数的三角不等式和正齐次性可知,范数球是凸集:若
范数锥是与范数
显然,它是一个凸锥:若
即
多面体
多面体被定义为有限个线性等式和不等式的解集
因此,多面体是有限个半空间和超平面的交集。仿射集合(例如子空间、超平面、直线)、射线、线段和半空间都是多面体。显而易见,多面体是凸集。

TikZ 代码
\begin{tikzpicture}[line cap=round,line join=round,scale=0.9]
% polyhedron as intersection of five halfspaces
\fill[gray!20] (-1,-0.5) -- (-1,1.0) -- (0,1.5) -- (1.6,0.8) -- (1.2,-0.5) -- cycle;
\draw (-1,-1.2) -- (-1,2.0) node[above] {$a_1^{\top}x = b_1$};
\draw (-1.5,0.75) -- (1.2,2.1) node[above right] {$a_2^{\top}x = b_2$};
\draw (-0.8,1.85) -- (2.2,0.71) node[right] {$a_3^{\top}x = b_3$};
\draw (1.75,1.29) -- (1.1,-1.0) node[below] {$a_4^{\top}x = b_4$};
\draw (-1.6,-0.5) -- (1.9,-0.5) node[right] {$a_5^{\top}x = b_5$};
\end{tikzpicture}如图所示,多面体(阴影部分)是有限个半空间
多面体可以使用紧凑表达式来表示
单纯形
单纯形是一类重要的多面体。设
其中
一维空间中的单纯形是一条线段,二维空间中的单纯形是一个三角形,三维空间中的单纯形是一个四面体。
例如,概率单纯形(probability simplex)
是
多面体的凸包描述
有限集合
它表示
半正定锥
设
这是一个维数为
用
集合
即
例如