Academic MPC: E.F. Camacho
Academic MPC: E.F. Camacho
Overview
State Space based MPC
Linear Quadratic Regulator
Generalized Predictive Control
Academic MPC
E.F. Camacho
Universidad de Sevilla
Overview
I Defining
PN−1 = (A + BKN−1 )T QN (A + BKN−1 ) + KN−1
T
RN−1 KN−1
I Which can be written as a quadratic form of the state:
e(t)
A(z −1 )y (t) = B(z −1 )z −d u(t − 1) + C (z −1 ) (5)
4
I where d is the dead time of the system and
I where
I ŷ (t + j | t) is an optimum j step ahead prediction of the
system output on data up to time t,
I N1 , N2 and Nu define the costing and control horizons,
I δ(j) and λ(j) are weighting sequences and
I w (t + j) is the future reference trajectory.
I C (z −1 ) = 1
I Consider the following Diophantine equation:
ŷ (t + j | t) = Gj (z −1 ) 4 u(t + j − d − 1) + Fj (z −1 )y (t)
I where Gj (z −1 ) = Ej (z −1 )B(z −1 ).
E.F. Camacho Academic MPCs
Outline
The white noise case
Overview
The Coloured Noise Case
State Space based MPC
An Example
Linear Quadratic Regulator
Measurable Disturbances
Generalized Predictive Control
I The last two terms in Equation only depend on the past and
can be grouped into f leading to:
y = Gu + f
I If all initial conditions are zero, the free response f is also zero.
I If a unit step is applied to the input at time t; that is,
[4u(t) = 1, 4u(t + 1) = 0, . . . , 4u(t + N − 1) = 0]
I The expected output sequence
[ŷ (t + 1), ŷ (t + 2), . . . , ŷ (t + N)]T is equal to the first column
of matrix G.
I The free response term can be calculated recursively by
I where
£ ¤T
w = w (t + d + 1) w (t + d + 2) · · · w (t + d + N)
Free response
calculation
I C (z −1 ) 6= 1
I Solve the Diophantine equation:
C (z −1 ) = Ej (z −1 )Ã(z −1 ) + z −j Fj (z −1 )
with δ(Ej (z −1 )) = j − 1 and δ(Fj (z −1 )) = δ(Ã(z −1 )) − 1.
I Multiplying the model equation by 4Ej (z −1 )z j and using the
Diophantine equation.
C (z −1 )(y (t+j)−Ej (z −1 )e(t+j)) = Ej (z −1 )B(z −1 )4u(t+j−1)+Fj (z −1 )y (t)
I As the noise terms are all in the future, the expected value of
the left-hand side of this equation is:
E [C (z −1 )(y (t + j) − Ej (z −1 )e(t + j))] = C (z −1 )ŷ (t + j|t)
I The expected value of the output can be generated by the
equation:
C (z −1 )ŷ (t +j|t) = Ej (z −1 )B(z −1 )4u(t +j −1)+Fj (z −1 )y (t)
E.F. Camacho Academic MPCs
Outline
The white noise case
Overview
The Coloured Noise Case
State Space based MPC
An Example
Linear Quadratic Regulator
Measurable Disturbances
Generalized Predictive Control
e(t)
A(z −1 )y f (t) = B(z −1 )u f (t) +
4
I The white noise procedure for computing the prediction can
be used. The predicted signal ŷ f (t + j|t) obtained this way
has to be filtered by C (z −1 ) in order to get ŷ (t + j|t).
I Gi (z −1 ) = Ei (z −1 )B(z −1 ) are
G1 = 0.4 + 0.6z −1
G2 = 0.4 + 1.32z −1 + 1.08z −2
G3 = 0.4 + 1.32z −1 + 2.056z −2 + 1.464z −3
I If λ = 0.8
0.133 0.286 0.147
(GT G + λI)−1 GT = −0.154 −0.165 0.286
−0.029 −0.154 0.1334
ŷ (t + j|t) = Gj (z −1 ) 4 u(t + j − 1) + Hj (z −1 ) 4 v (t + j)
+Gj0 (z −1 ) 4 u(t − 1) + Hj0 (z −1 ) 4 v (t) + Fj (z −1 )y (t) (8)
I Which can be rewritten as
ŷ (t + j|t) = Gj (z −1 ) 4 u(t + j − 1) + Hj (z −1 ) 4 v (t + j) + fj
ŷ (t + 1|t) = G1 (z −1 ) 4 u(t) + Hj (z −1 ) 4 v (t + 1) + f1
ŷ (t + 2|t) = G2 (z −1 ) 4 u(t + 1) + Hj (z −1 ) 4 v (t + 2) + f2
..
.
ŷ (t + N|t) = GN (z −1 ) 4 u(t + N − 1) + Hj (z −1 ) 4 v (t + N) + fN
Pj
where Hj (z −1 ) = i=1 hi z −i and hi are the coefficients of
the system step response to the disturbance.
E.F. Camacho Academic MPCs
Outline
The white noise case
Overview
The Coloured Noise Case
State Space based MPC
An Example
Linear Quadratic Regulator
Measurable Disturbances
Generalized Predictive Control
y = Gu + f 0
u = (GT G + λI)−1 GT (w − f 0 )