Professional Documents
Culture Documents
OptimalControl2018Souanef
OptimalControl2018Souanef
net/publication/325257623
CITATIONS READS
0 5,147
1 author:
Toufik Souanef
Cranfield University
22 PUBLICATIONS 44 CITATIONS
SEE PROFILE
All content following this page was uploaded by Toufik Souanef on 22 May 2018.
SOUANEF Toufik
2018
1 / 14
Outline
1 Introduction
2 / 14
Definition of Optimal Control
3 / 14
Performance Criterion
Minimum time
Z tf
J= dt
t0
Minimum fuel Z tf
J= ku(t)k1 dt
t0
Minimum energy
1
Z tf
J= u > (t)u(t)dt
2 t0
1 > 1
Z tf
J= x (tf )Fx(tf ) + x > (t)Qx(t) + u > (t)Ru(t) dt
2 2 t0
4 / 14
Unconstrained Optimal Control
Given the Dynamic nonlinear Multi-Input Multi-Output (MIMO) system
ẋ(t) = f (x(t), u(t))
with the following performance criterion:
Z tf
J = Φ(x(tf ), tf ) + L(x, u, t) dt
t0
The Hamiltonian is given as follows
H(x, u, λ, ) = L(x, u, t) + λ> f (x, u)
The necessary conditions of optimality are defined by
∂H(x, u, λ)
Optimal control: u ∗ (t) → =0
∂u
∂H(x, u, λ)
Optimal state: x ∗ (t) → = ẋ ∗ (t)
∂λ
∂H(x, u, λ)
Optimal co-state: λ∗ (t) → = −λ̇∗ (t)
∂x
The boundary conditions are given by
h ∂Φ i
Unspecified final time: + H(x ∗ , u ∗ , λ∗ ) = 0
∂t tf
h ∂Φ i
Unspecified final state: −λ =0
∂x tf
5 / 14
Optimal Control with Constraints on the Input
∂H(x, u, λ)
Optimal state: x ∗ (t) → = ẋ ∗ (t)
∂λ
∂H(x, u, λ)
Optimal co-state: λ∗ (t) → = −λ̇∗ (t)
∂x
The boundary conditions are the same that for the unconstrained case.
6 / 14
Minimum Time Optimal Control of Linear Systems
Given the linear single-input single-output (SISO) system
ẋ(t) = Ax(t) + bu(t)
with the constraint |u(t)| ≤ M
The objective is to elaborate the optimal control law u ∗ (t) to transfer the system from
the initial state x(t0 ) to the final state x(tf ) = 0 in minimum time.
The system eigenvalues should not be of positive real part
The performance criterion is given by
Z t
f
J= dt
t0
Applying the Pontryaguine minimum, the optimal control law is given by
u ∗ (t) = −M sign b> λ∗ (t)
with
>
λ∗ (t) = e(−A t)
λ0
Remark: In the MIMO case:
ẋ = Ax(t) + Bu(t)
The input matrix B can be written as follows
B = [b1 |b2 ...|bm ]
hence
ui∗ (t) = −M sign bi> λ∗ (t) ;
i = 1...m
7 / 14
Optimal Linear Quadratic Regulator (LQR)
1 > 1
Z tf
J= x (tf )F x(tf ) + x > (t)Qx(t) + u > (t)Ru(t) dt
2 2 t0
Assuming that λ∗ (t) = P(t)x ∗ (t), the closed-loop control law is given by
8 / 14
Infinite Horizon Linear Quadratic Regulator (LQR)
1 ∞ >
Z
J= x (t)Qx(t) + u > (t)Ru(t) dt
2 t0
9 / 14
Optimal Linear Quadratic Gaussian (LQG) Control with Infinite
Horizon
Given the linear Multi-Input Multi-Output (MIMO) system assumed to be controllable
and observable
ẋ(t) = Ax(t) + Bu(t) + Gv (t)
y (t) = Cx(t) + Hw(t)
where v (t) and w(t) are uncorrelated white noises, with a null and variance (intensity)
V and W , respectively.
The objective is to compute the optimal control law u ∗ (t) to satisfy the linear quadratic
conditions
1 ∞ >
Z
J= x (t)Qx(t) + u > (t)Ru(t) dt
2 t0
the design of the control law is done in two steps
1- Estimation of the state vector using Kalman filter
˙
x̂(t) = Ax̂(t) + Bu(t) + L(y (t) − C x̂(t))
with:
avec: L = Pe CW −1
10 / 14
Optimal Linear Quadratic Gaussian (LQG) Control with Infinite
Horizon(contd)
u ∗ (t) = −K x̂ ∗ (t),
avec: K = R −1 B > P
11 / 14
Optimal LQR Control of Discrete Systems
The objective is to design the control law u ∗ (k ) which satisfies the Linear Quadratic
discrete criterion
∞
1 X >
J= x (k )Qx(k ) + u > (k )Ru(k )
2
k =0
u ∗ (k ) = −Kx ∗ (k ),
−1
avec: K = R −1 B > (A> ) (P − Q)
P = A> P −1 + BR −1 P A
Matlab
Methode 1 Methode 2
Given the continuous system ẋ(t) = Ac x(t) + Bc u(t) Given the continuous
sysD = c2d(sysC, Ts ), Ts is the sample time system ẋ(t) = Ac x(t) +Bc u(t)
with J = 21 t∞ x > (t)Qx(t) + u > (t)Ru(t) dt
R
[K , P] = dlqr (A, B, Q, R) pour 0
P∞ > >
[K , P] = lqrd(Ac , Bc , Q, R, Ts )
J = 12 k =0 x (k )Qx(k ) + u (k )Ru(k )
12 / 14
Optimal LQG Control of Discrete Systems
Given the dynamic discrete Multi-Input Multi-Output (MIMO) system controllable and
observable
ẋ(k + 1) = Ax(k ) + Bu(k ) + Gv (k )
y (k ) = Cx(k ) + Hw(k )
where v (k ) and w(k ) are uncorrelated white noises, with a null and variance (intensity)
V and W , respectively.
The objective is to design the optimal control lawu ∗ (k ) to satisfy the LQ criterion
∞
1 X >
J= x (k )Qx(k ) + u > (k )Ru(k )
2
k =0