Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Theory of Convexity
L03 - 1 Optimisation
Scope
L03 - 2 Optimisation
Let us examine a one-dimensional convex function
f(x)
b
a
xa xb x
Observation:
If we draw a line arbitrarily between two points on the convex
curve, all the values of this line lie above the curve.
How to express this observation mathematically?
L03 - 3 Optimisation
Definitions
L03 - 4 Optimisation
Similarly, we can define a concave function as follows
xa xb x
Questions
L03 - 6 Optimisation
Answers
A:
f(x) f(x)
Concave Convex
b b
a a
xa xb x xa xb x
B:
f(x) Strictly concave f(x) Strictly convex
xa xb x xa xb x
xa xb x
L03 - 7 Optimisation
L03 - 8 Optimisation
Significance of Convexity
L03 - 9 Optimisation
L3-9
L03 - 10 Optimisation
• Use the previous inequality Not convenient!
Let us try to use derivatives
e.g. f(x) = x2 x0R
f(x) fN(x) = 2x fO(x) = 2 > 0
0 X 0 X 0 X
L03 - 11 Optimisation
• fO(x) are both negative and positive for x0R ] f(x) is indefinite
L03 - 12 Optimisation
Examples:
a) f(x) = 3x2
b) f(x) = 2x
c) f(x) = -5x2
d) f(x) = 2x2-x3
L03 - 13 Optimisation
Solution:
L03 - 14 Optimisation
So far, we have discussed one-dimensional functions.
How to determine the convexity (concavity) of a multi-
variable function, f(x) where x is a vector of variables?
L03 - 15 Optimisation
Hessian Matrix
• Use Hessian matrix to represent second derivative for a multi-variable
function
M ƒ(x) M ƒ(x) M ƒ(x) T
grad (x) = L ƒ(x) = M x1 M x2 M xn
!
2
M ƒ(x) M 2ƒ(x) M 2ƒ(x)
M xn M x1 M xn M x 2 M xn2
L03 - 16 Optimisation
Definitions
L03 - 17 Optimisation
L03 - 18 Optimisation
Two convenient tests can be used to establish the
status of H(x) for strict convexity:
L03 - 19 Optimisation
H(x) = 4 -3
-3 4
L03 - 20 Optimisation
Solution (cont.)
M1 (order 1) = 4; det M1 = 4
M2 (order 2) = H; det M2 = 16 - 9 = 7
L03 - 21 Optimisation
Hence: H(x) = 4 2
2 3
L03 - 22 Optimisation
Solution (cont.)
L03 - 23 Optimisation
L03 - 24 Optimisation
Example 3
Classify the following function as concave or convex.
f (x) = - 2 x12 - 4 x22 + 3 x1 x2 + 5 x2 - 6
Solution:
-4 3
H (x) =
3 -8
-4 -8 3
H - 8I =
3 -8 -8
-4 -8 3
det 3 -8 -8 =0 Y (-4 -8) (-8 -8) - 9 = 0
-2.4
8 + 12 8 + 23 = 0
2
Y 8=
Y function is strictly concave.
-9.6
L03 - 25 Optimisation
Summary
L03 - 26 Optimisation
If a function is separable into
L03 - 27 Optimisation
Example
L03 - 28 Optimisation
26
Convex Regions
• Examine two following regions:
X1 X1
R1 R2
X2 X2
Convex region Non convex region
L03 - 29 Optimisation
• Mathematically,
R is a convex region if
"x1 + (1-")x2 ,R
where x1, x2 ,R and 0 # " # 1
• Theorem:
L03 - 30 Optimisation
Example: A region is bounded by following constraints
g1(x): -x12 + x2 -1 $ 0
g2(x): x1 - x2 + 2 # 0
Is this region convex?
Solution:
2
g1(x)
1
-2 -1 0 1 2 x1
L03 - 31 Optimisation
g1(x) = x12 - x2 + 1 # 0
g2(x) = x1 - x2 + 2 # 0
2 0
H[g1] = 0 0 , all eigenvalues are non negative Y g1 is convex
0 0
H[g2] = , all eigenvalues are non negative Y g2 is convex
0 0
L03 - 32 Optimisation
Corollary: If a region is bounded by linear functions,
then it is a convex region
For example, X2
convex region
X1
L03 - 33 Optimisation
L03 - 34 Optimisation