CVX notes

Preliminaries

1. PSD

M is positive semidefinite matrix all principal submatrices of are PSD

Note: This follows by considering the quadratic form and looking at the components of corresponding to the defining subset of principal submatrix. The converse is trivially true.

M is PSD all principal minors are non-negative (所有主子式非负)

将M写成二次型:

于是取 为标准基 , 再取为零向量只有 i,j两个位置为 1,则


2. Matrix norm

General definition of a norm:

Matrix norm:

  • Frobenius norm:
  • Induced norm: \|A\|_p := \sup_\limits{\|x\|_p = 1} \|Ax\|_p
  • Nuclear norm: (奇异值之和)
  • Spectral norm: (最大特征值)

Spectrial radius


3. Duality

Two equivalent ways to represent a convex set:

  • standard representation: The family of points in the set
  • dual representation: The set of halfspaces containing the set (半平面的交集)

A closed convex set is the intersection of all closed halfspaces containing it.

Polar Let be a convex set containing the origin. The polar of is defined as follows

Note

  • polar is one way of representing the all halfspaces containing a convex set
  • every halfspace with can be written as a “normalized” inequality , by dividing by
  • can be thought of as the normalized representations of halfspaces containing

Properties of the polar:

  1. is a closed convex set containing the origin
  2. When 0 is in the interior of , then is bounded
  3. When is non-convex, , and

Polar duality of convex cones

Notes

  1. is closed and convex

Conjugation of convex functions Let be a convex function. The conjugation of is

f^*(y) := \sup_\limits{x}(y^Tx - f(x))

Properties of the conjugate

  1. is convex (supremum of affine functions of )



Convex sets



Convex functions

  1. affine is convex:

affine 既凸也凹

  1. 任何范数是凸的

Proof: let be a norm of , then

  1. is convex epi() is convex


1. Closed convex

A convex function is called closed if its epigraph is a closed set.

  1. which is convex and continuous on a closed domain is a closed function. (norms)

  2. all differentiable convex functions are closed with dom.

  3. 当考虑一个凸函数时,通常认为在dom外取值为

  4. Jensen’s inequality:

  5. Corollary:

    pf: f(x) = f(\sum\alpha_i x_i) \le \sum \alpha_i f(x_i) \le \max_\limits{i} f(x_i)


2. Level sets

Note: the convexity of level sets does not characterize convex functions, but quasiconvex functions.

  1. convex is closed all its level sets are closed

Some convex sets

  1. norm ball () is convex and closed
  2. 椭球() is convex and closed

    pf: 满足内积的三条性质

    • bilinearity
    • symmetry
    • positivity 上述三条性质 Q is PSD
  3. -neighborhood:


3. Operations perserving convexity of functions

  1. stability under taking weighted sums:
  2. stability under affine substitutions of the argument: or
  3. stability under taking pointwise sup: \{f_i\}_{i \in \mathcal{I}} \mapsto g(x) := \sup_\limits{i \in \mathcal{I}}f_i(x), 凸函数族 逐点取上确界而成的函数也是凸的
  4. stability under partial minimization: jointly convex in , then g(x) = \inf_\limits{y} f(x,y) is convex (suppose g is proper, i.e., > - everywhere and is finite at least at one point)
  5. stability under perspective:

4. Detect convexity

Necessary and Sufficient Convexity Condition for smooth function:

  • 一阶可微的光滑函数 是凸的 单调非减
  • 二阶可微的光滑函数 是凸的

subgradient property is characteristic of convex functions:


5. Subgradient

Examples


6. Optimality conditions

凸函数的局部最优等价于全局最优。

第一充要条件(凸函数) is the minimizer


7. Strong convexity

A differentiable function f is strongly convex if

Note

  1. is not necessarily differentiable, (see the equivalent definition)
  2. if is non-smooth, gradient subgradient
  3. strong convexity strict convexity

Note: Intuitively speaking, strong convexity means that there exists a quartic lower bound on the growth of the function.

Equivalent definition



Lagrange Duality

Consider an optimization problem in standard form (not necessarily convex)

The Lagrangian is

The Lagrange dual function is defined as

Lagrange dual problem

Weak duality

  • : optima of dual problem
  • : optima of primal problem
  • duality gap:
  • always hold

Strong dualiy

  • constraint qualifications strong duality
  • Slater’s Constraint Qualification: a convex problem is strictly feasible (i.e., )

Complementary slackness

KKT conditions



Cones

Tagent cone Let M be a (nonempty) convex set and , the tagent cone of at is the cone

Note:

  • Geometrically, this is the set of all directions leading from inside
  • convex but not necessarily closed
  • fact: if is a minimizer, then . (因为tangent cone里面都是可行解,所以必须不是下降方向)

e.g. 多面体

the tangent cone at is


Normal cone: the polar cone of tangent cone

Note:

  • normal cone is the polar to tangent cone, i.e.,
  • fact: if is a minimizer, then .


Algorithm convergence

~Stepsize RuleConvergence RateIteration Complexity
Gradient descent
strongly convex & smooth
convex & smooth
Frank-Wolfe
(strongly) convex & smooth
Projected GD
convex & smooth
strongly convex & smooth
Subgradient method
convex & Lipschitz
strongly convex & Lipschitz
Proximal GD
convex & smooth (w.r.t. )
strongly convex & smooth (w.r.t. )