Geometry
Rays
A ray consists of a starting point \(\mathbf{a}\) and all the points in a direction \(\mathbf{d}\). Rays can be described via an algebraic form:
Lines
A line consists of two rays starting at a point pointing two opposite directions:
Hyperplanes and Halfspaces
A hyperplane is a set of the form:
where \(\mathbf{a} \in \mathbb{R}^n\), \(\mathbf{a} \neq \mathbf{0}\), and \(b \in \mathbb{R}\). Analytically, it is the solution set of a nontrivial linear equation among the components of \(\mathbf{x}\). Geometrically, it can be interpreted as the set of points with a constant inner product to a given vector \(\mathbf{a}\), or as a hyperplane with normal vector \(\mathbf{a}\); the constant \(b\) determines the offset of the hyperplane from the origin.
A hyperplane divides \(\mathbb{R}^n\) into two halfspaces. A (closed) halfspace is a set of the form:
where \(\mathbf{a} \neq 0\), i.e., the solution set of one (nontrivial) linear inequality. Halfspaces are convex, but not affine.
Cones
A set \(C\) is called a cone, or nonnegative homogeneous, if for every \(\mathbf{x} \in C\) and \(\theta \geq 0\), we have \(\theta \mathbf{x} \in C\). A set \(C\) is called convex cone if it is convex and a cone, i.e., for any \(\mathbf{x}_1, \mathbf{x}_2 \in C\) and \(\theta_1, \theta_2 \geq\), we have:
A ray \(\mathbf{d}\) is a conic combination of two rays \(\mathbf{e}_1, \mathbf{e}_2\) if \(\mathbf{d}\) is a nonnegative weighted sum of \(\mathbf{e}_1, \mathbf{e}_2\):
The set of all conic combinations of rays \(\mathbf{r}_1, \ldots, \mathbf{r}_m\) is called the conic hull of \(\mathbf{r}_1, \ldots, \mathbf{r}_m\):
Such set is called a cone.
An order \(\geq_{K}\) is defined by an underlying convex cone \(K\) as:
Polyhedron
Polyhedron via Halfspaces
A polyhedra is the intersection of a finite number of halfspaces:
where:
Another way to define polyhedra is as the solution set of a finite number of linear equalities and inequalities:
where \(\mathbf{A} \in \mathbb{R}^{m \times n}\) and \(\mathbf{C} \in \mathbb{R}^{p \times n}\).
A polyhedron is thus the intersection of a finite number of halfspaces and hyper-planes. Affine sets (e.g., subspaces, hyperplanes, lines), rays, line segments, and halfspaces are all polyhedra.
Bounded Polyhedron via Corner Points
A point in \(\mathbf{x}\) in a polyhedron \(P\) is an extreme point iff \(\mathbf{x}\) is not a convex combination of other two different points in \(P\), i.e., there do not exist \(\mathbf{y}, \mathbf{z} \in P\), such that \(\mathbf{y} \neq \mathbf{x}, \mathbf{z} \neq \mathbf{x}\) and \(\mathbf{x} = \theta \mathbf{y} + (1 - \theta) \mathbf{z}\) for some \(\theta \in \left[0, 1 \right]\). Extreme points are corner points. Figure 1 shows the extreme points and a non-extreme point of a tetrahedron.
A non-empty and bounded polyhedron is the convex hull of its extreme points. A bounded polyhedron is a polyhedron that does not extend to infinity in any direction. A bounded polyhedron is also called polytope.
A ray \(\mathbf{e}\) in a cone \(C\) is called an extreme ray if \(\mathbf{e}\) is not a conic combination of other two different rays in the cone \(C\). Note that:
- If a polyhedron is bounded, there is no extreme ray.
- If a polyhedron is bounded, there must be an extreme point.
- If a polyhedron is unbounded and it does not contain a line, it must have an extreme ray.
- If a polyhedron is unbounded, it may not have an extreme point.
Weyl-Caratheodery Theorem
Any non-empty polyhedron \(P\) with at least one extreme point can be formed by its extreme points \(\mathbf{x}^1, \ldots, \mathbf{x}^m\) and its extreme rays \(\mathbf{e}^1, \ldots, \mathbf{e}^k\) as follows:
In order words, any point \(\mathbf{x}\) in a polyedron \(P\) that has at least one extreme point can be written as a sum of two vectors:
where \(\mathbf{x}'\) is in the convex hull of its extreme points and \(d\) is in the conic hull of its extreme rays. Note that if \(P\) does not have an extreme ray, then \(\mathbf{d} = \mathbf{0}\).
Generic Polyhedron Example
Consider an unbounded polyhedron as shown in Figure 2. The polyhedron set is given as:
The extreme points of the polyhedron are:
and the convex hull \(Q\) is formed by all possible convex combinations of these three extreme points. The extreme rays are:
and the conic hull \(C\) is formed by all possible conic combinations of these two rays.
Then, any point \(\mathbf{x} \in P\) can be written as:
where \(\mathbf{x}' \in \text{conv}\left\lbrace \mathbf{x}^1, \mathbf{x}^2, \mathbf{x}^3 \right\rbrace\) and \(\mathbf{d} \in \text{conic} \left\lbrace \mathbf{e}^1, \mathbf{e}^2 \right\rbrace\).
Positive Semidefinite Cone
Let \(\mathbb{S}^n\) be the set of symmetric \(n \times n\) matrices:
which is a vector space with dimension \(n(n + 1)/2\). Let \(\mathbb{S}^n_+\) be the set of symmetric positive semidefinite matrices:
and \(\mathbb{S}^n_{++}\) be the set of symmetric positive definite matrices:
The set \(\mathbb{S}^n_+\) is a convex cone if \(\theta_1, \theta_2 \geq 0\) and \(\mathbf{A}, \mathbf{B} \in \mathbb{S}^n_+\), then \(\theta_1 \mathbf{A} + \theta_2 \mathbf{B} \in \mathbb{S}^n_+\). This is directly from the definition of positive semidefiniteness. For any \(\mathbf{x} \in \mathbb{R}^n\), \(\mathbf{A}, \mathbf{B} \geq 0\), and \(\theta_1, \theta_2 \geq 0\):
Euclidean Balls and Ellipsoids
A (Euclidean) ball in \(\mathbb{R}^n\) is defined as:
where \(r > 0\) is the scalar radius and \(\mathbf{x}_c\) is the center of the ball. Euclidean ball is a convex set: if \(||\mathbf{x}_1 - \mathbf{x}_c||_2 \leq r\), \(||\mathbf{x}_2 - \mathbf{x}_c||_2 \leq r\), and \(0 \leq \theta \leq 0\), then:
An ellipsoid is defined as:
where \(\mathbf{P} = \mathbf{P}^T > 0\), i.e., \(\mathbf{P}\) is a symmetric and positive definite. Ellipsoids are convex sets.