Professional Documents
Culture Documents
A( q ) y ( k ) B ( q ) u ( k ) C ( q ) e ( k )
b g
v ( k ) 2q 0.6 e( k ) , 2e 2
var{ax} a 2 var{x}
Properties of ARMAX model
The original disturbance model can be replaced by
b
g
v ( k ) q 0.3 e ( k ) , 2e 8
C-polynomial having roots outside the unit circle (unstable
inverse) can by spectral analysis be replaced by another
polynomial with roots inside the unit circle (stable inverse).
Consider an example of two disturbances and the spectral
density of the output:
R|v (k) c1 05. q he(k) H (q)e(k)
1 R| () c1 05. e h c1 05. e h
i e
2
i
T
2 v2
T
v2
i e
2
2
i
because
yy ( ) H ( ei ) uu ( ) H T ( e i )
Properties of ARMAX model
The spectral densities are identical so that the processes
can be replaced by each other, when needed (assuming that
the input is white noise). Consider the roots of the two
processes
RSH v1 ( z ) 1 0.5z1
R|S
Hv1 ( z ) z Hv1 ( z ) z (1 0.5z 1 ) z 0.5
TH v 2 ( z ) 1 0.5z
,
|T
Hv1 ( z ) 2 Hv 2 ( z ) 2 (1 0.5z ) z 2
Normalize C to be monic
3(q 0.25)e( k ) (q 0.25) 3e( k ) (q 0.25) e ( k ) , 2e 32 2e 0.9
2 2 2
Properties of ARMAX model
Simplify by using ( k ) e( k )
e
1 ac
1
(1 aq ) y( k ) bq y( k ) (1 cq 1 )e( k )
b
(1 aq 1 ) y( k ) (aq 1 cq 1 ) y( k ) (1 cq 1 )e( k )
(1 aq 1 aq 1 cq 1 ) y ( k ) (1 cq 1 )e( k )
1
1 cq
(1 cq 1 ) y( k ) (1 cq 1 )e( k ) y( k ) 1
e( k ) e( k )
1 cq
y(k) is then white noise. Now it can be seen that if the roots
of C are outside the unit disc, the output has a
uncontrollable and unobservable mode.
Optimal prediction
Assume that the output is generated by the stochastic
process
C (q ) q n C (q ) C * ( q 1 )
y( k ) e( k ) n e( k ) * 1 e ( k )
A( q ) q A( q ) A (q )
Then y(k + m | k) can be estimated at the time k by the
model.
C* (q1 )
y(k m) * 1 e(k m)
A (q )
e(k m) f1e(k m 1) fm1e(k 1) fme(k ) fm1e(k 1)
unknown at time k known at time k
These are obtained from the series expansion. e(k), e(k-1),
… can always be determined by y and u
Optimal prediction
e is white noise, the values of which are unknown and
cannot be predicted. The optimal predictor can only contain
terms which are known or can be calculated based on old
data.
y ( k m| k ) f m e( k ) f m1e( k 1) f m 2 e( k 2)
~
y ( k m| k ) e( k m) f e( k m 1) f e( k 1)
1 m 1
Estimator error is A* ( q 1 )
e ( k ) * 1 y ( k )
C (q )
C* (q1 )
y(k m) * 1 e(k m)
A (q )
e(k m) f1e(k m 1) fm1e(k 1) fme(k ) fm1e(k 1)
unknown at time k known at time k
1
1
*
m G (q ) 1 G* (q1 )
F (q )e(k m) q
*
* 1
e(k m) F (q )e(k m) * 1 e(k )
*
A (q ) A (q )
1 G* (q1 ) A* (q1 ) 1 G* (q1 )
F (q )e(k m) * 1 * 1 y(k ) F (q )e(k m) * 1 y(k )
* *
A (q ) C (q ) C (q )
The division of C* by A* has the result F* and remaining
value G*.
Optimal prediction
C * ( q 1 ) 1 m G *
( q 1
)
1
F (q ) q
*
*
A (q ) A * ( q 1 )
Summarizing:
C * ( q 1 ) A * ( q 1 ) F * ( q 1 ) q m G * ( q 1 )
The Diophantine equation
q m1C ( q ) A(q ) F (q ) G (q )
G * ( q 1 ) qG ( q )
Estimator: y ( k m| k ) * 1 y ( k ) y( k )
C (q ) C (q )
y ( k m| k ) F * ( q 1 ) e( k m) F (q )e( k 1)
~
Estimator error:
Variance of the estimator error: y
2
~ 1 f 1
2
f 2
m 1 2
e c h
R|SF (q
* 1
) 1 f1q 1 f m1q m1
R|SF(q) q f q f
m1
1
m2
m1
|TG (q
* 1
) g0 g1q 1 gn1q n1 |TG(q) g q g q g
0
n1
1
n 2
n1
Optimal prediction, example
Determine a 3-step predictor for the process
q 2 0.2q 0.5
y( k ) 2 e( k ) , e2 1 m 3, n 2
q 15 . q 0.7
R|SF (q) q f q
m 1
1
m 2
f m1 q 2 f 1q f 2
|TG(q) g q g q
0
n 1
1
n2
gn 1 g0q g1
q m1C ( q ) A( q ) F ( q ) G ( q )
c
q 2 q 2 0.2q 0.5 q 2 15h c hc
. q 0.7 q 2 f 1q f 2 g0 q g1 h
q 4 0.2q 3 0.5q 2 q 4 f 1 15 b
. q 3 f 2 15 g b
. f 1 0.7 q 2 g
b
g0 15
. f2 0.7 f gq b g 0.7g
1 1
Optimal prediction, example
R| f 15. 0.2
1 R| f 1.3
1
|| g 15. f 0.7 f 0
0 2 1 ||g 1.715
0
T g 0.7 0
1 1Tg 1.225
We obtain the 3-step predictor
qG ( q ) 1.715q 2 1.225q
y ( k 3| k ) y( k ) 2 y(k )
C (q ) q 0.2q 0.5)
Estimator variance becomes
c h c h
2~y 1 f 12 f m21 e2 1 1.32 1.752 1 5.7525
Optimal prediction, example
The coefficients of F are values of the process pulse
response or coefficients of the weighting function h. They
can also be found by simulating the process pulse response
y=
1.0000
1.3000 2
1.7500 1.5
1.7150 1
1.3475 0.5
0.8208 0
-0.5
0.2879 -1
0 5 10 15 20 25 30
-0.1427
Optimal prediction, example
variance approaches 10
small values of m. 2
m
0
0 2 4 6 8 10 12 14 16 18 20
Minimum variance control
Consider the special case when the roots of B are inside
the unit disc (stable inverse, minimum phase system)
A (q ) A (q )
Minimum variance control
Determine e from the original model
B * ( q 1 ) d C * ( q 1 )
y ( k ) * 1 q u ( k ) * 1 e( k )
A (q ) A (q )
A * ( q 1 ) y ( k ) B * ( q 1 ) q d u ( k )
e( k )
C * ( q 1 )
Substitute into y(k + d)
* * * d *
G G B q B
y ( k d ) F *e ( k d ) * y ( k ) * *
u( k ) * u( k )
C AC A
G *
F e( k d ) * y ( k ) *
B *
CFG*
G * d
q IJ
H K
*
*
u( k )
C C A
Minimum variance control
Because C* = A*F* + q-d G*, then C* - q-d G* = A*F*, and
G *
B
y ( k d ) F e( k d ) * y ( k ) *
*
A * *
F FG IJ
H K
*
*
u( k )
C C A
* * *
G B F
F e( k d ) * y ( k )
*
*
u( k )
C C
Calculate the variance of y(k + d)
2 R
|
E { y ( k d )} E {c F e( k d ) h } E SG
F G *
y( k )
*
B F *
IJ U|V
2
|TH C K |W
2 *
* *
u( k )
C
The minimum is obtained when the last term is zero
Minimum variance control
G* B* F * G*
*
y( k ) *
u( k ) 0 u( k ) * * y ( k )
C C B F
G * ( q 1 ) G (q )
u ( k ) * 1 * 1 y ( k ) y( k )
B (q ) F (q ) B(q ) F (q )
y ( k ) F * ( q 1 ) e( k ) e( k ) f 1e( k 1) f d 1e( k d 1)
and variance 2
y 1 f 1
2
c f 2
d 1 2
e h
Minimum variance control, example
Design a minimum variance controller for the process
cq 17. q
3 2
h b g c h
0.7q y( k ) q 0.5 u( k ) q 3 0.9q 2 e( k ) , e2 1, d 2
Earlier F and G were determined from the identity
q d 1C (q ) A( q ) F (q ) G (q )
Let us now try a direct polynimial division. Divide qd-1C(q) by
A(q), the result is F(q) and the remainder G(q),
q d 1C ( q ) G (q )
F (q )
A( q ) A( q )
Minimum variance control, example
q 0.8
q 3 1.7q 2 0.7q q 4 0.9q 3
( q 4 1.7q 3 0.7q 2 )
0.8q 3 0.7q 2
( 0.8q 3 1.36q 2 0.56q )
0.66q 2 0.56q
q d 1C(q) G( q ) q 4 0.9q 3 0.66q 2 056
. q
F (q ) 3 q 08
. 3
A(q) A(q) q 17
. q 0.7q
2
q 17
. q 2 0.7q
RS F (q) q 0.8
We obtain F and G: TG(q) 0.66q 0.56q
2
Minimum variance control, example
The minimum variance controller is
G(q) 0.66q 2 056
. q 0.66q 2 056
. q
u( k ) y( k ) y( k ) 2
B(q) F (q) b q 05gb
. q 08. g q 13
. q 0.4
y( k )
and the output variance
c h c h
2y 1 f 12 f d21 2e 1 0.82 1 1.64
Check by simulation
Minimum variance control, example
1.8
Variance of y 1.6
1.4
data. -0.2
-20 -15 -10 -5 0 5 10 15 20
General minimum variance control
The control law is valid only if the roots of B are inside the
unit disc (stable inverse)
G (q )
u( k ) y( k )
B (q ) F (q )
Develop minimum variance control so that it can be used
also in this latter case. Factorize B
B( z) B ( z) B ( z)
All the roots of B+ are inside the unit disc and all roots of B-
are outside it. Additionally, B-*(z) is monic and A and B- do
not have common factors.
General minimum variance control
Minimum variance control and the output are
G (q ) d 1 F (q )
u( k ) y( k ) y ( k ) q * e( k )
B (q ) F (q ) B (q )
in which F and G are polynomials that satisfy the
Diophantine equation
d 1 *
q C(q) B (q) A(q) F (q) B (q)G(q) RS
deg F d deg B
1
T
deg G deg A n
1 RS F (q) 1
q 2 1.7q 0.7 q 2 0.7q TG(q) q 0.7
( q 2 1.7q 0.7) q 0.7
u( k ) y( k )
q 0.7 0.9q 1
2y 12 2e 1
General minimum variance control, example
Now without cancellation
2
cq 17. q 0.7h y(k ) b0.9q 1gu(k ) cq 0.7qhe(k ) ,
2
2e 1, d 1
R|S B (q) 1
** 1
B ( q ) 0.9q 1 B 1 *
(q ) q 0.9
|T B (q) 0.9q 1
T g 0.7 f 0
1 1 T g 0.7
1
G (q ) q 0.7
u( k ) y( k ) y( k )
B (q ) F (q ) q 1
-1
-2
-3
0 20 40 60 80 100 120
General minimum variance control, example
An incorrect design leads eventually to instability.
5
x 10
4 3
3
2
2
1
-1
-1
-2
-2
-3 -3
0 20 40 60 80 100 120 0 20 40 60 80 100 120
7
x 10
5 10
4
8
3
6
2
4
1
0 2
-1
0
-2
-2
-3
-4
-4
-5 -6
0 50 100 150 200 250 300 350 400 450 500 0 100 200 300 400 500 600