OPTCON LQ Optimal Control 2024-10-16
OPTCON LQ Optimal Control 2024-10-16
A special thank to Dr. L. Sforni for the support on the slide preparation
The present slides are for internal use of the course
Optimal Control @ University of Bologna.
Linear Quadratic (LQ) Optimal Control Problem
Consider a linear quadratic optimal control problem as:
T
X −1
x1
min
,...,x
1
2
x> > 1 >
t Qt xt + ut Rt ut + 2 xT QT xT
T
u0 ,...,uT −1 t=0
s.t. xt+1 = At xt + Bt ut t = 0, . . . , T − 1
x0 = xinit
s.t. xt+1 = At xt + Bt ut t = 0, . . . , T − 1
x0 = xinit
The first-order necessary and sufficient conditions for (x∗ , u∗ ) to be an optimal trajectory become
There exits a λ∗ such that
λ∗t = Pt x∗t .
λ∗t = Pt x∗t
where we have used the first-order necessary condition λ∗t = A> ∗
t λt+1 + Qt xt .
PT = QT
t = T − 1, . . . , 0
Pt = A> > >
t Pt+1 At − At Pt+1 Bt (Rt + Bt Pt+1 Bt )
−1 >
Bt Pt+1 At + Qt
1
(At + BC)−1 = A−1
t − A−1
t Bt (I + CA
−1
Bt )−1 CA−1
Prof. Giuseppe Notarstefano – Optimal Control – LQ Optimal Control 7 | 12
Infinite horizon LQ optimal control (I)
Consider the infinite-horizon optimal control problem
∞
X
1 > >
min
x ,x ,... 2
xt Qxt + u t Ru t
1 2
u0 ,u1 ,... t=0
Remark The controllability assumption guarantees a finite cost. Indeed, if the system is controllable,
there exists a sequence driving the state to zero in finite time, so that the cost is finite.
Remark The observability of (A, C) guarantees that if the stage cost goes to zero, then the state
trajectory goes to zero.
subj. to xt+1 = At xt + Bt ut + ct t = 0, . . . , T − 1
where:
• Qt ∈ Rnx ×nx and Qt = Q>
t ≥ 0 for all t = 0, . . . , T
2
Namely, Qt − St> Rt−1 St positive semi-definite.
Prof. Giuseppe Notarstefano – Optimal Control – LQ Optimal Control 10 | 12
Affine LQR (II)
Augmenting the state as
1
x̃t :=
xt
0 qt>
1 0 0
Q̃t := S̃t := rt St R̃t := Rt Ãt := B̃t := .
qt Q t ct At Bt
where
with pT = qT and PT = QT .