Convexity
- is a convex set.
- is a convex function.
Convex combination
Given: Point x, Point y
Convex combination of x and y: A point between two points
Case 1: Given
a convex combination of them is any point of the form strict convex combination:
another name: Interpolation
any point between x and y is called interpolation, any point outside is called extrapolation
Convex set
All there convex combination of two points in the set is also in the set.
A set is convex if ,
Convex function
Conceptually: the value on the mid point is lower than average value
Convexities is preserved:
- Sum of convex functions is convex
- Convexity is preserved under a linear transformation
second partial derivatives is positive semidefinite on the interior of
SPD (Semi-Positive Definite)
eigen-decomposition eigenvalues, eigenvectors: all eigenvalues of are non-negative alternatively: check
Descrete:
- Search
- Iteratively improving an assignment Continuous:
- gradient
Gradient Descent:
initialize $x \leftarrow$ x_0:
repeat
$x \leftarrow x - \alpha \nabla _x f(x)$;
unti convergence;
- how to choose initial point
- how to choose and update step-size
- how to define convergence
Newton-Raphson Method: if twice-differentiable
iterate until convergence:
- Model a problem as a convex optimization problem
- define variable, feasible set, objective function
- prove it its convex (convex function + convex set)
- Build up the model
- Call a solver
- fmincon, cvxpy, cvxopt, cvx