410 9 Predictive Control
If we take into effect the real value of N
1
, then the first N
1
− 1rowsofthe
matrix G should be removed. Similarly, only the first N
u
columns are retained.
Thus, the real matrix G has the dimension [N
2
− N
1
+1× N
u
].
Hence, the predictor in the vector notation can be written as
ˆy = G˜u + y
0
(9.34)
and the cost function (9.8) as
I =(ˆy −w)
T
(ˆy − w)+λ˜u
T
˜u
=(G˜u + y
0
− w)
T
(G˜u + y
0
− w)+λ˜u
T
˜u
= c
0
+2g
T
˜u + ˜u
T
H ˜u (9.35)
where the gradient g and Hessian H are defined as
g
T
= G
T
(y
0
− w) (9.36)
H = G
T
G + λI (9.37)
Minimisation of the cost function 9.35 now becomes a direct problem of
linear algebra. The solution in the unconstrained case can be found by setting
partial derivative of I with respect to ˜u to zero and yields
˜u = −H
−1
g (9.38)
This equation gives the whole trajectory of the future control increments
and as such it is an open-loop strategy. To close the loop, only the first element
of ˜u,e.g.Δu(k) is applied to the system and the whole algorithm is recom-
puted at time t + 1. This strategy is called the Receding Horizon Principle
and is one of the key issues in the MBPC concept.
If we denote the first row of the matrix (G
T
G + λI)
−1
G
T
by K then the
actual control increment can be calculated as
Δu(k)=K(w − y
0
) (9.39)
Hence, if there is no difference between the free response and the setpoint
sequence in the future, the actual control increment will be zero. If there
will be some differences in the future, the actual control increment will be
proportional to them with the factor K.
To summarise the procedure, it should be noticed, that only two plant
characteristics are needed: free response y
0
that is changing at each sampling
time and step response G(z
−1
) which is in the case of time invariant sys-
tem needed only once. Moreover, also the Hessian matrix H that should be
inverted, contains only information from the step response and can also be
calculated beforehand. The calculation of the actual control increment is thus
dependent only on weighted sum of past inputs and outputs contained in y
0
and forms therefore a linear control law.