1 Convexity
1 Convexity
1 Convexity
Mauro Passacantando
Optimization Methods
Master of Science in Embedded Computing Systems – University of Pisa
http://pages.di.unipi.it/passacantando/om/OM.html
Subspaces
Given x, y ∈ Rn .
Examples:
I {0}
I any line which passes through zero
I the solution set of a homogeneous system of linear equations
C = {x ∈ Rn : Ax = 0},
where A is a m × n matrix.
Affine sets
A set C ⊆ Rn is an affine set if it contains all the affine combinations of any two
points in C .
Examples:
I any single point {x}
I any line
I the solution set of a system of linear equations
C = {x ∈ Rn : Ax = b},
Convex sets
A convex combination of two given points x and y is a point αx + βy , where
α + β = 1, α ≥ 0, β ≥ 0.
y
x
Convex hull
The convex hull conv(C ) of a set C is the smallest convex set containing C .
C conv(C )
Examples:
I subspace
I affine set
I line segment
I halfspace {x ∈ Rn : aT x ≤ b}
I polyhedron P = {x ∈ Rn : Ax ≤ b} solution set of a system of linear
inequalities
x T Ax > 0 ∀ x 6= 0.
2 0
Exercise. Find B(0, 1) w.r.t. k · k1 , k · k∞ and k · kA where A = .
0 1
Intersection
If C1 and C2 are convex, then C1 ∩ C2 is convex. T
Exercise. If {Ci }i∈I is a family of convex sets, then Ci is convex.
i∈I
Union
If C1 and C2 are convex, then C1 ∪ C2 is convex?
Affine functions
Let f : Rn → Rm be affine, i.e. f (x) = Ax + b, with A ∈ Rm×n , b ∈ Rm .
I If C ⊆ Rn is convex, then f (C ) = {f (x) : x ∈ C } is convex
I If C ⊆ Rm is convex, then f −1 (C ) = {x ∈ Rn : f (x) ∈ C } is convex
Examples:
I scaling, e.g. f (x) = α x, with α > 0
I translation, e.g. f (x) = x + b, with b ∈ Rn
cos θ − sin θ
I rotation, e.g. f (x) = x, with θ ∈ (0, 2π)
sin θ cos θ
Cones
Examples:
I Rn+ is a convex cone
I {x ∈ R2 : x1 x2 = 0} is a nonconvex cone
I Given a polyhedron P = {x : Ax ≤ b}, the recession cone of P is defined as
Exercises
{x ∈ Rn : a1T x ≤ b1 } ⊆ {x ∈ Rn : a2T x ≤ b2 },
where ka1 k2 = ka2 k2 = 1. Also find the conditions under which the two
halfspaces are equal.
3. Which of the following sets are polyhedra?
a) {y1 a1 + y2 a2 : −1 ≤ y1 ≤ 1, −1 ≤ y2 ≤ 1}, where a1 , a2 ∈ Rn .
n n n
b) x ∈ Rn : x ≥ 0, ai2 xi = b2 , where
P P P
xi = 1, ai xi = b1 ,
i=1 i=1 i=1
b1 , b2 , a1 , . . . , an ∈ R.
c) {x ∈ Rn : x ≥ 0, aT x ≤ 1 for all a with kak2 = 1}.
d) {x ∈ Rn : x ≥ 0, aT x ≤ 1 for all a with kak1 = 1}.
Convex functions
Given a convex set C ⊆ Rn , a function f : C → R is convex if
f (αy + (1 − α)x) ≤ αf (y ) + (1 − α)f (x) ∀ x, y ∈ C , ∀ α ∈ (0, 1)
f (y )
α f (y ) + (1 − α) f (x)
f (x)
f (αy + (1 − α)x)
x αy + (1 − α)x y
τ
Thm. f is strongly convex if and only if ∃ τ > 0 s.t. f (x) − kxk2 is convex
2
Exercise.
I Prove that: strongly convex =⇒ strictly convex =⇒ convex
I convex =⇒ strictly convex ?
I strictly convex =⇒ strongly convex ?
M. Passacantando Optimization Methods 13 / 24 – :
Convex sets Convex functions
f (y )
x y
Theorem
I f is strictly convex if and only if
I f is strongly convex if and only if there exists τ > 0 such that ∇2 f (x) − τ I is
positive semidefinite for all x ∈ C , i.e.
v T ∇2 f (x)v ≥ τ kv k22 ∀ v 6= 0,
Examples
Exercises
1. Prove that the function
x1 x2
f (x1 , x2 ) =
x1 − x2
is convex on the set {x ∈ R2 : x1 − x2 > 0}.
1
2. Prove that f (x1 , x2 ) = is convex on the set {x ∈ R2 : x1 , x2 > 0}.
x1 x2
3. Given a convex set C ⊆ Rn , the distance function is defined as follows:
Theorem
I If f is convex and α > 0, then αf is convex
I If f1 and f2 are convex, then f1 + f2 are convex
I If f is convex, then f (Ax + b) is convex
Examples
I Log barrier for linear inequalities:
m
X
f (x) = − log (bi −aiT x) C = {x ∈ Rn : bi −aiT x > 0 ∀ i = 1, . . . , m}
i=1
Pointwise maximum
Theorem
I If f1 , . . . , fm are convex, then f (x) = max{f1 (x), . . . , fm (x)} is convex.
I If {fi }i∈I is a family of convex functions, then f (x) = sup fi (x) is convex.
i∈I
Composition
f : Rn → R and g : R → R.
Theorem
I If f is convex and g is convex and nondecreasing, then g ◦ f is convex.
I If f is concave and g is convex and nonincreasing, then g ◦ f is convex.
Examples
I If f is convex, then e f (x) is convex
I If f is concave and positive, then log f (x) is concave
I If f is convex, then − log(−f (x)) is convex on {x : f (x) < 0}
1
I If f is concave and positive, then is convex
f (x)
I If f is convex and nonnegative, then f (x)p is convex for all p ≥ 1
M. Passacantando Optimization Methods 21 / 24 – :
Convex sets Convex functions
Sublevel sets
Sα (f ) = {x ∈ Rn : f (x) ≤ α}
Quasiconvex functions
Examples
p
I f (x) = |x| is quasiconvex on R
I f (x1 , x2 ) = x1 x2 is quasiconcave on {x ∈ R2 : x1 > 0, x2 > 0}
I f (x) = log x is quasiconvex and quasiconcave
I f (x) = ceil(x) = inf{z ∈ Z : z ≥ x} is quasiconvex and quasiconcave
Exercise
T
Express each convex set defined below in the form {x : fi (x) ≤ 0}, where
i∈I
fi : Rn → R are suitable convex functions:
d) conv{x ∈ R2 : x1 x2 = 1}