10 - Solved Problems
10 - Solved Problems
10)
Optimization: Solution to Selected Exercises
Multi-Variable Optimization
Let L(u) ∈ R be a continuous function of u ∈
Rm, and let it possesses continuous partial deriva-
tives of up to second order with respect to the
elements of u = (u1, u2, . . . , um)T .
Necessary Conditions:
If there are no constraints on the possible val-
ues of u, then the following necessary condi-
tions must be satisfied by a set u = (u1, u2, . . . , um)T
which minimizes L(u):
∂L
Lu = =0 (1)
∂u
and
∂ 2L
Luu = ≥0 (2)
∂u2
Sufficient Condition:
A stationary point of L(u) is its minimum point,
if it satisfies the following sufficient condition
of minimization:
∂ 2L
Luu = 2
>0 (3)
∂u
L(u) = −3u3
Lu = −9u2 = 0
whose only real root is u = 0. Hence the only
stationary point of L(u) is u∗ = 0.
To check whether the stationary point, u∗ = 0,
is also a minimum point, we apply the sufficient
condition, Eq.(3), for that point:
Luu(u∗) = −18u∗ = 0
Since the sufficient condition of minimization
is not satisfied by u∗ = 0, but the necessary
conditions are satisfied, it is a singular point of
L(u).
Exercise 3
(This is Exercise 3 of Lecture 7.)
For
L(u) = u3 − 3u2 + 3u − 4
where u ∈ R, find the stationary points (if any)
and determine if they are the minimum points.
Lu = 3u2 − 6u + 3 ; Luu = 6u − 6
which are continuous throughout the real space,
we can test for the necessary and sufficient
conditions.
Lu = 3u2 − 6u + 3 = 0
whose only real root is u = 1. Hence the only
stationary point of L(u) is u∗ = 1.
To check whether the stationary point, u∗ = 1,
is also a minimum point, we apply the sufficient
condition, Eq.(3), for that point:
Luu(u∗) = 6u∗ − 6 = 0
Since the sufficient condition of minimization
is not satisfied by u∗ = 1, but the necessary
conditions are satisfied, it is a singular point of
L(u).
Exercise 4
(This is Exercise 4 of Lecture 7.)
Consider the following function:
L(u) = u2 2
1 − 2u1 u2 + 4u2
where u = (u1, u2)T ∈ R2. Find the stationary
points (if any) and determine if they are the
minimum points.
L(u) = −u2
1 + 2u u
1 2 + 3u2
2
where u = (u1, u2)T ∈ R2. Find the stationary
points (if any) and determine if they are the
minimum points.
f (x, u) = 0 (4)
where x ∈ Rn are the state variables, and f :
Rn × Rm → Rn is a smooth mapping function,
i.e., it possesses continuous partial derivatives
with respect to both x and u. It is further as-
sumed that L(x, u) possesses continuous par-
tial derivatives with respect to both x and u.
Exercise 6
For the minimization of
2 0
1 2 1 T
L(x, u) = x + u u
2 2 0 1
with respect to u ∈ R2, where x ∈ R, subject
to the constraint
f (x, u) = x + (2 , −1)u + 2 = 0
find the stationary points, (x∗, u∗), (if any) and
determine if they are the minimum points.
H = L(x, u) + λT f (x, u)
is to be minimized with respect to u = (u1, u2)T ,
where λ ∈ R is the Lagrange multiplier.
Finding the partial derivatives of H w.r.t. x and
u and then applying the necessary conditions,
we have:
Hx = x + λ = 0
or λ = −x, and
2 0
Hu = uT + λ(2, −1) = (0, 0)
0 1
which yields
x = −(2 , −1)u − 2
we get
3u1 − u2 = −2
u1 − u2 = −1
solving which, we have the following stationary
point:
−1/2
u∗ =
1/2
λ = −x∗ = 1/2
To see whether the stationary point satisfies
the Legendre-Clebsch condition, we find the
second-order partial derivatives of H w.r.t. x
and u:
Hxx = 1
0
Hux = ; Hxu = (0, 0)
0
T
2 0 2 0
Huu = =
0 1 0 1
The partial derivatives of the equality constraint
are derived as follows:
fx = 1 ; fu = (2 , −1)
Now we apply the Legendre-Clebsch condition
at the stationary point as follows:
u2 2
1 = u2 + 2u1 u2
u2
1 + u2 + 2u u = x − u − u
2 1 2 1 1 2
x1 = u1 + u2 ; x2 = u2
from which it follows that u∗1 = u∗2 = 0 is the
only stationary point,
0
0
u∗ = ; x∗ =
0
0