Algorithms For Optimal Decisions Tutorial 1 Answers
Algorithms For Optimal Decisions Tutorial 1 Answers
Tutorial 1
Answers
i.
[0, 1].
(2)
Hence the point x1 +(1)x2 belongs to all the sets Si for [0, 1].
Consequently it belongs to the intersection S = i Si of all these sets.
Therefore we proved that for any two elements x1 , x2 in the intersection
S = i Si and for any [0, 1] the following holds:
x1 + (1 )x2 S,
[0, 1].
(3)
Exercise 2 Show that if f (x) and g(x) are convex functions on a convex set
S, then their sum
h(x) = f (x) + g(x)
(4)
is also a convex function on S.
Solution : Take any two elements x1 , x2 from the set S. To prove that the
sum f (x) + g(x) is a convex function we need to show that:
f (x1 + (1 )x2 ) + g(x1 + (1 )x2 )
(f (x1 ) + g(x1 )) + (1 )(f (x2 ) + g(x2 )).
(5)
Since f and g are convex functions we have that for any two points
x1 , x2 S, and [0, 1] the following holds:
f (x1 + (1 )x2 ) f (x1 ) + (1 )f (x2 )
g(x1 + (1 )x2 ) g(x1) + (1 )g(x2 ).
(6)
(7)
| f (x) b}
(8)
is a convex set.
Solution : We need to prove that for every x1 , x2 L the point x1 + (1
)x2 is also in L.
For any two elements x1 , x2 L we have:
f (x1 ) b, f (x2 ) b
f (x1 ) b, (1 )f (x2 ) (1 )b.
2
(9)
(10)
(11)
s.t.
g1 (x)
g2 (x)
g3 (x)
g4 (x)
=
=
=
=
x1 x2 + 2 0
x21 + x2 1 0
x1 0
x2 0.
(12)
H2 =
2 g2
x21
2 g2
x2 x1
2 g2
x1 x2
2 g2
x22
"
2 0
0 0
(13)
v t H2 v 0.
(14)
v H2 v = (v1 , v2 )
"
2 0
0 0
v1
v2
= 2v12 0.
(15)
i = 1, 2, 3, 4
(16)
H =
2f
x21
2f
x2 x1
2f
x1 x2
2f
x22
"
2 0
0 2
(17)
is positive semidefinite.
Matrix H is positive semidefinite because for any v t = (v1 , v2 ) R2
we have:
t
v Hv = (v1 , v2 )
"
2 0
0 2
v1
v2
= 2v12 + 2v22 0.
(18)