Affine sets are generalization of lines. Given two points
Given
A set is affine if it is closed under affine combinations.
A set
Note that if
Given
Why can we only verify affine combinations of two points in
We have shown that the solution to each linear equation is an affine set. Conversely, any affine set is also a solution set to a system of linear equations.
Any affine set
If
Since
Roughly speaking, affine can be viewed as linear added by some bias term. Similar to the linear map, we can define an affine map
Given
Clearly, there are at most
Similar to the definition of lines, we can define the segment from
Given
A set is convex if it is closed under convex combinations.
A set
In particular, we can define the convex hull of any set.
The convex hull of a set
Clearly, for any set
For a general set
If we would like to determine the convex hull of some set
At most
We first give some geometric examples of convex sets.
A particular example of convex sets is the convex cone.
Given
A convex cone is a set closed under conic combinations. A convex cone hull of a set
The convex cone hull of a set
Clearly, any cone is a convex set.
Another examples include
For all
Convexity is not only a property of geometric shapes.
Let
For all
Given
For any two points
In fact, note that we do not need the norm function to be
The Ellipsoid in
Why? An idea is to define a norm and the ellipsoid can be viewed as a norm ball. The other viewpoint is that, an ellipsoid is the image of a ball under a linear (or affine) map. To see this, note that
Now we show that an affine map is a convexity-preserving operation.
Suppose
Without loss of generality, assume
For all
The following operations preserve the convexity:
A polyhedron (多面体) is the intersection of some halfspaces:
In particular, we define the simplex (单纯形) as “simplest” polytope:
Why are simplexes polyhedra?
Suppose
In fact, note that