Académique Documents
Professionnel Documents
Culture Documents
Controllers
Rohit S. Patwardhan1,, Sirish L. Shah1,* and Kent Z. Qi2
1
2
Department of Chemical and Materials Engineering, University of Alberta, Edmonton, AB T6G 2G6, Canada
Shell Canada, Fort Saskatchewan, AB, Canada
954
MPC Preliminaries
This section introduces the MPC preliminaries and notation
used in later sections. The underlying philosophy of model
predictive control consists of minimization of a performance
objective function with respect to future input moves, over a
finite time horizon. The standard objective function in model-based
predictive controllers of the sum of: (i) weighted norm of the
control errors over a prediction horizon, p; and (ii) a weighted
norm of the control moves over a control
horizon, m:
J =
k
2
r (k + i ) - y (k + i k ) Gi +
2
Du(k + i - 1) L
i
i =1
i =1
m
+
i =1
(1)
2
u(k + i - 1) R
i
(2)
s ( j )Du(k - j ) + s (N )u(k - N - 1) + e (k )
(3)
j =1
(4a)
955
0
S = s3 s 2 s1 0
M
O
M
s p s p -1
L s p -m +1
ny .p nu .m
(4b)
T
y k = y1(k + 1 k ) Ky n y (k + 1 k ) Ky1(k + p k ) Ky n y (k + p k )
s3 s 4 K
sN
s2
s3
s4 K
sN 0
s 4 s5 K
H1 = M
M , H2 = s ss I
sN
K
sN
0
2
K
K
s
s
0
0
N
N2+1
(12)
(6)
(8)
uo = u(k - N ) Ku(k - N + p - 1)
(7)
min Jk ( Duk )
Duk W k
(5)
T
d k = d (k + 1 k )[I K I ]
fk = H1Duo + H2uo
(11)
T
(9)
(10)
956
(13)
( )
J * = J Du *
k
k
k
(14)
(16)
y k = y1(k + 1 k ) K y ny (k + 1 k ) K y1(k + p k ) K y ny (k + p k )
The inputs will differ from the design value in part due to the
receding horizon nature of the MPC control law. The value of
the achieved objective function cannot be known a priori, but
only p sampling instants later. A simple measure of performance
can then be obtained by taking a ratio of the design and the
achieved objective functions:
J *
h(k ) = k
Jk
(17)
Ji*
a(k ) = i =1
k
(15)
(18)
ji
i =1
957
Jk (y k ) = (rk - y k ) G(rk - y k )
(19)
Jk (uk ) = DuTK LDuk
then we have,
Jk = Jk (y k ) + Jk (uk )
(20)
J k = J k (y k ) + J k (uk )
where is the 1-norm2 and Jk(yk) and Jk(uk) are the respective
vectors of [Ji(yi)]T and [ Ji(ui)]T, i = 1, , k. The equality on the
second line of Equation (20) will always hold since Jk(yk) and
Jk(uk) are both positive terms by definition. By analogy we have
a similar expression for the design objective term:
( )
J * = J * (y ) + J * u *
k
k k
k k
Stochastic Inputs
and
(21)
( )
J * = J * (y k ) + J * uk*
k
(23)
So, we have expressed the respective objective functions as a
sum of the contributions from the outputs and the inputs.
Comparing each of these terms in the above sum with their
achieved counterparts can give an idea of which quantity, in a
relative sense contributes the most to a loss in performance. We
also define performance indices based on the individual terms
in the objective function:
y (k ) = Cx (k ) + u(k )
(24)
a y (k ) =
J k* y k
( )
J (y k )
k
, au (k ) =
( )
J k* uk*
J (uk )
where F = CA CA
(22)
K CA
Properties
= [I K I ] C x (k ) - x (k )
(25)
= C1 x (k ) - x (k )
where ^
x(k) is the state estimate obtained through a Kalman
predictor/filter. The state space form of the MPC feedback law
is given by:
Duk* = K rk - Fx (k ) - dk
T
= K rk - Ip y (k ) - F - [I K I ] C x (k )
= K1e (k ) - K 2x (k )
958
(26)
where
-1
T
T
K1 = K [I K I ] , K 2 = F - [I K I ] C , K = ST GS + L ST G
(27)
Jk = rk - Fx (k ) - SDuk - dk
For the nominal case the feedback term will correspond to the
noise term. Take the regulatory case where rk = 0: Therefore, we
have:
(29)
rk - Fx (k ) - SDuk - dk
= -Fx (k ) - S K1y (k ) - K 2x (k ) - C1 x (k ) - x (k )
x (k + 1)
A
x (k + 1) = PC
x
-K' C
I (k +1) 1
0
B x (k ) B1 0 w(k )
A - PC B x (k ) + 0
P
' u(k )
I z (k ) 0 -K1
-K'2
=
-K1
q(k )
(-F + SK 2 + C1)
-K 2
(35)
x (k )
0
x (k )
0
z (k )
0 -SK1 w(k )
+
0 -K1 u(k )
or
(36)
x(k + 1) = AF x(k ) + BF y (k )
y j (k ) = CF x(k ) + DF y (k )
Duk* = -K1y (k ) - K 2x (k )
= -K1Cy (k ) - K 2x (k ) - K1u(k )
)T
)(
If we let
(37)
(30)
+ BF y (k )y (k ) BTF
T
T
T
E x(k + 1)x(k + 1) = AF E x(k )x(k ) ATF + BF E y (k )y (k ) BTF
then
(31)
s 2x = AF s 2x ATF + BF s 2y BTF
( )
T
T
E Jk* = E f(k ) Gf(k ) + q(k ) Lq(k )
(32)
T
T
= tr GE f(k )f(k ) + tr LE q(k )q(k )
x (k + 1) = Ax (k ) + Bu(k ) + P y (k ) - y (k )
(33)
'
y k - K'2x k
= -K1
()
()
2 T
2 T
s2
yJ = CF s xCF + DF s y DF
J * = r - Fx (k ) - SDu *
k
k
k
(34)
(38)
(39)
Duk* = K rk - Fx (k )
959
Substituting, we get:
)T (
Fx (k ) Q rk - Fx (k )
lim 1 N
N N y (k ) Q
k =1
K
KS ) G(I - KS ) + K T LK
Finding E[^
Jk] in this case requires a different approach:
lim
K z(k ) D
x (k + 1) = Ax (k ) + Bu(k )
(41)
[]
E Jk*
(46)
[ ]
E Jkrec
xI (k + 1) = xI (k ) + Du(k ) = z (k ) + K1r (k ) - K 2x (k )
(42)
u(k ) = x1(k )
= -Fx (k ) - dk
- 2DukrT ST G -Fx (k ) - dk
=
+ r (k )
xI (k + 1) -K 2 I z (k ) K1
= -Fx (k ) - dk
(43)
(47)
or
where H = (STGS + L), J = STG and J1T is the first row of J.
The control law can simplified to:
x(k + 1) = AF x(k ) + BF r (k )
y (k ) = rk - Fx (k )
= -F
(44)
T
0 x(k ) + [I K I ] r (k )
= CF x(k ) + DF r (k )
2
lim 1 N
E Jk = N y (k )
Q
N k =1
( )
(45)
960
Du(k ) = K1 -Fx (k ) - dk
(48)
Jkrec = rk - Fx (k ) - dk
}T (G + Q1 - Q2 ){rk - Fx (k ) - dk }
(49)
(50)
f(k ) = -Fx (k ) - dk
(51)
2
2
Jk Jk* - y k - y k - Duk - Duk*
G
(56)
then we have
[ ] {
E Jk = tr (G - Q )s 2f
[ ] {
E Jkrec = tr (G - Q1 - Q2 )s 2f
(52)
Therefore:
lim
k V(k ) =
tr (G - Q )s 2f
tr (G - Q1 - Q2 )s 2f
{
}
} {(
tr (G - Q )s 2f
{(
(53)
tr G - Q s 2f + tr Q - Q1 - Q2 s 2f
1 + tr (Q - Q1 - Q2 )s 2f
Jrec
k J k). sf can be found by the method described earlier. The
above expression quantifies the loss in performance due to the
receding horizon nature of the control law. If m = 1, Q = Q1 + Q2,
and there is no loss in performance due to the receding horizon
nature of the control law. Subsequent simulation examples
illustrate the loss in performance due to receding horizon
implementation.
(54)
2
2
= rk - y k + Duk
G
L
(57)
1
JkCR Jk
(58)
Simulation Examples
The design case benchmark and the LQG benchmark are
applied to evaluate the MPC performance for two simulated
examples in this section. The effects of constraints and model
plant mismatch are highlighted.
*
k
*
k - Duk
} tr {(G - Q)s2f }
) L(Du
L( Du - Du )
2
2
+ Duk - Duk*
G
L
(55)
0.0235z -1
1 - 0.8607z -1
-1
P z
=
0.2043z -1
1 - 0.9827z -1
( )
-0.1602z -1
1 - 0.8607z -1
-1
0.2839z
1 - 0.9827z -1
(59)
961
Unconstrained
Constrained
E(JLQG)/E(Jk)
)/E(J )
E( J*
k
k
0.6579
0.4708
0.8426
1.00
Figure 3. The input moves for the constrained controller during the
regulatory run.
Figure 3 shows the input moves during the regulatory run for
the constrained controller. On one hand, the constraints are
active for a large portion of the run and are limiting the
performance of the controller in an absolute sense (LQG). On
the other hand, the controller cannot do any better due to
design constraints as indicated by the design case benchmark.
Figure 2. MPC performance assessment using the LQG benchmark.
962
( )
G z -1 =
(60)
( )
(61)
Nominal
Achieved
Constrained
Tracking
Regulatory
Combined
0.9036
0.7547
0.8120
0.4724
0.4621
0.4621
0.8441
0.7474
0.8038
963
Figure 6. The step response models between the active inputs and
outputs.
964
Figure 10. Ratio of the control relevant mismatch term to the design
objective function.
the two-week period. As mentioned in the discussion of properties of the proposed performance index, this is indicative of poor
robust performance, i.e., deterioration in future performance
can be expected.
In summary, it was found that the QDMC application for the
recycle drum level control is delivering satisfactory performance.
The performance index is 0.87, according to the objective
function method. The constraint handling, however, is not
satisfactory. Constraints on the drum level are violated 24.5% of
the time. Constraint violations also cause poor performance in
CV2, the difference between the WABT setpoints for train 1 and
train 2. Further investigation revealed that the possible reasons
may include a poor model for AV1 and/or unmeasured
disturbances. There appears to be a false sensor reading for FF1,
the total fresh feed flow at sampling instant 533. This was
confirmed by noticing that the achieved objective function is
unchanged whereas the design objective function undergoes a
large change at this point in time. A prediction error analysis
also led to a similar conclusion since the model predictions
showed a large upset and the measured values of the outputs
were relatively unchanged.
Conclusions
Performance assessment of model predictive controllers based
on the design case benchmark is proposed in this work. The
design case benchmark can be treated as a relative measure of
performance. The nominal or the design case serves as the basis
for comparison with the achieved performance. This approach
makes use of the prediction model used by the controller. The
multivariable nature of most chemical processes and presence
of nonlinearities do not pose a hindrance to the application of
this method. Some theoretical properties of this index were
established. These include analytical estimation of the design
objective function, effect of the receding horizon policy on MPC
performance, and bounds on the proposed index. The
proposed measure of performance has been shown to be
sensitive to model plant mismatch, hard constraints, and
stochastic and deterministic disturbances through two simulation
examples. Finally, an industrial case study was used to illustrate
the usefulness of this performance metric.
Nomenclature
A, B, C, D, G
AF, BF, CF, DF
d^k
fk
H
I
^
Jk
^J*
k
Jk
JCR
k
Jrec
k
J
K, K1, K2
m
nu
ny
p
Ri
rk
S
s
uk
uo
Duk
Du*k
Duo
x, xI
^
x
yk
965
y^k
z
Greek Symbols
a
au
ay
ax2
h
w
n
f, q
x, y
G, Gi
L, Li
Wk
End Notes
1
2
3
4
References
Desborough, L. and T.J. Harris, Performance Assessment Measure for
Univariate Feedforward / Feedback Control, Can. J. Chem. Eng. 71,
605616 (1993)
Garcia, C.E., D.M. Prett and M. Morari, Model Predictive Control:
Theory and Practice A Survey, Automatica 25, 335348 (1989).
Harris, T.J., Assessment of Closed Loop Performance, Can. J. Chem. Eng.
67, 856861 (1989).
Harris, T.J., C.T. Seppala and L. Desborough, A Review of Performance
Monitoring and Assessment Techniques for Univariate and
Multivariate Processes, J. Proc. Control 9, 117 (1999).
Harris, T.J., F. Bourdeau and J.F. MacGregor, Performance Assessment
of Multivariate Feedback Controllers, Automatica 32, 15051518
(1996).
Howie, B., Application Manual on HCU Recycle Surge Drum Level
Control, Technical report, Shell Canada, Scotford Refinery, Fort
Saskatchewan, AB (1995).
966