Académique Documents
Professionnel Documents
Culture Documents
Lecture 18
c Daria Apushkinskaya 2014 () Calculus of variations lecture 18 11. Juli 2014 1 / 25
Purpose of Lesson:
c Daria Apushkinskaya 2014 () Calculus of variations lecture 18 11. Juli 2014 2 / 25
Pontryagin’s Maximum Principle
Modern optimal control theory often starts from the PMP. It is a simple,
coincise condition for an optimal control.
c Daria Apushkinskaya 2014 () Calculus of variations lecture 18 11. Juli 2014 3 / 25
General control problem
Minimize functional
Zt1
J[x, u] = F0 (t, x, u)dt
t0
ẋi = Fi (t, x, u)
notice no dependence on ẋ in F0
this differs from many CoV problems
∂H ∂H
ẋ = and ṗ = −
∂p ∂x
n
P
where the Hamiltonian is H = pi Fi with p0 = −1
i=0
H(t, x, u, p) > H(t, x, u
b, p) for all alternate controls u
b
c Daria Apushkinskaya 2014 () Calculus of variations lecture 18 11. Juli 2014 5 / 25
PMP proof sketch-1
Consider the general problem: minimize functional
Zt1
J[x, u] = F0 (t, x, u)dt
t0
subject to constraints
ẋi = Fi (t, x, u).
We can incorporate the constraints into the functional using the
Lagrange multipliers λi , e.g.
Zt1
Jb = L(t, x, ẋ, u)dt
t0
Zt1 n
X
= F0 (t, x, u)dt + λi (t) [ẋi − Fi (t, x, u)] dt
t0 i=1
c Daria Apushkinskaya 2014 () Calculus of variations lecture 18 11. Juli 2014 6 / 25
PMP proof sketch-2
∂L
pi = = λi .
∂ ẋi
c Daria Apushkinskaya 2014 () Calculus of variations lecture 18 11. Juli 2014 7 / 25
PMP proof sketch-3
because λi = pi , so the ẋi terms cancel. The final result is just the
Hamiltonian as defined in the PMP.
c Daria Apushkinskaya 2014 () Calculus of variations lecture 18 11. Juli 2014 8 / 25
PMP proof sketch-4
From previous slide the Hamiltonian can be written
n
X
H(t, x, p, u) = −F0 (t, x, u) + pi Fi (t, x, u)
i=1
which is the Hamiltonian defined in the PMP. Then the canonical E-L
equations (Hamilton’s equations) are
∂H dxi ∂H dpi
= and =− .
∂pi dt ∂xi dt
∂H dxi
Note that the equations ∂pi = dt just revert to
Fi (t, x, u) = ẋi
∂L
zi = =0
∂ u̇i
∂H dzi
=− =0
∂ui dt
In fact we look for a maximum (and note this may happen on the
bounds of ui ).
c Daria Apushkinskaya 2014 () Calculus of variations lecture 18 11. Juli 2014 10 / 25
PMP Example: plant growth
c Daria Apushkinskaya 2014 () Calculus of variations lecture 18 11. Juli 2014 11 / 25
PMP Example: plant growth
ẋ = F1 (t, x, u) = 1 + u.
Hamiltonian is
c Daria Apushkinskaya 2014 () Calculus of variations lecture 18 11. Juli 2014 12 / 25
PMP Example: plant growth
∂H dx ∂H dp
= and =−
∂p dt ∂x dt
⇓ ⇓
1 + u = ẋ 0 = −ṗ
LHS ⇒ system DE
RHS ⇒ ṗ = 0 means that p = c1 where c1 is a constant.
c Daria Apushkinskaya 2014 () Calculus of variations lecture 18 11. Juli 2014 13 / 25
PMP Example: plant growth
∂H
= −u + p = 0.
∂u
So u = p, and ẋ = 1 + u so
x = (1 + c1 ) t + c2 .
x = 2t.
c Daria Apushkinskaya 2014 () Calculus of variations lecture 18 11. Juli 2014 14 / 25
PMP and natural boundary conditions
c Daria Apushkinskaya 2014 () Calculus of variations lecture 18 11. Juli 2014 15 / 25
PMP and natural boundary conditions
The resulting natural boundary condition is
X ∂φ
∂φ
+ pi δxi
+ − H δt = 0.
∂xi t=t1 ∂t t=t1
i
Special cases
when t1 is fixed and x(t1 ) is completely free we get
∂φ
+ pi δxi = 0, ∀i
∂xi t=t1
c Daria Apushkinskaya 2014 () Calculus of variations lecture 18 11. Juli 2014 16 / 25
Example: stimulated plant growth
Example 18.2 (Stimulated plant growth-1)
Plant growth problem:
Z1
1 2
J[x, u] = −x(t1 ) + u dt
2
0
c Daria Apushkinskaya 2014 () Calculus of variations lecture 18 11. Juli 2014 18 / 25
Plant growth: natural BC
which reduces to
−1 + pt=t = 0.
1
Given p is constant, this sets p(t) = 1, and hence the control u = 1 (as
before).
c Daria Apushkinskaya 2014 () Calculus of variations lecture 18 11. Juli 2014 19 / 25
Autonomous problems
if the end-time is free (and the terminal cost is zero) then the
transversality conditions ensure H = 0 along the optimal trajectory.
c Daria Apushkinskaya 2014 () Calculus of variations lecture 18 11. Juli 2014 20 / 25
PMP example: Gout
Example 18.3 (Gout-1)
Optimal treatment of Gout:
disease characterized by excess of uric acid in blood
define level of uric acid to be x(t)
in absence of any control, tends to 1 according to
ẋ = 1 − x
ẋ = 1 − x − u
∂H dx ∂H dp
= and =−
∂p dt ∂x dt
⇓ ⇓
1 − x − u = ẋ −p = −ṗ
LHS ⇒ system DE
RHS ⇒ ṗ = p has solution p = c1 et .
Now maximize H WRT the u, i.e., find stationary point
∂H
= −u − p = 0
∂u
So, u = −p = −c1 et .
c Daria Apushkinskaya 2014 () Calculus of variations lecture 18 11. Juli 2014 23 / 25
PMP example: Gout
Example 18.3 (Gout-4)
Note
this is an autonomous problem so H = const
1 2 2
H=− k + u + p (1 − x − u)
2
k 2 c2
= − − 1 − c12
2 2
=0
and so c1 = ±k .
c Daria Apushkinskaya 2014 () Calculus of variations lecture 18 11. Juli 2014 24 / 25
PMP example: Gout
Example 18.3 (Gout-5)
Finally solve ẋ = 1 − x − u where u = −ket to get
k t k −t
x =1− e + e = 1 − k sinh t
2 2
The terminal condition is x(t1 ) = 0, and so
t1 = sinh−1 (1/k )