Beruflich Dokumente
Kultur Dokumente
System Identification
The solutions presented here are for the exercises:
2G.2
2G.4
2E.2
2E.4
2E.6
(2.63)
s () =
Rs ( )ei
2G.2 Solution
The expression (2.63) represents the Fourier transform of the Autocorrelation
function. This Expression can be divided as:
s () =
0
X
Rs ( )ei +
=0
Rs ( )ei Rs (0)
=0
Rs ( )ei +
=0
Rs ( )ei Rs (0)
=0
Rs ( )ei +
=0
i
Rs ( ) e
=0
by definition
i
cos() =
+e
Rs ( )ei Rs (0)
+e
Rs (0)
i
i
X
e
+e
) Rs (0)
s () = 2
Rs ( )
2
=0
s () = 2
=0
Rs ( )cos( ) Rs (0)
Rs ( )cos( )
=1
(L s) (L s) = ||L s||2 0
Rs ( )ei
where
Rs ( ) = Es(t)s(t ) =
t=
s(t)s (t )
Es(t)s(t )ei
= t=
= t=
s(t)s (t )ei
s(t)s (t )eit ei(t )
if we make t
= then we can rewrite the last expression as
s () =
s(t)eit
t=
"
sT ()ei
t=
s(t)eit
{z
L
}|
s()ei
{z
it
z ()z = z
s(t)e
s(t)eit z
t=
t=
z ()z =
"
t=
s(t)eit
# !
z
"
s(t)eit
t=
"
# 2
X
=
s(t)eit z 0
# !
z
t=
this last term tell us that the expression for will be always larger or equal
than zero due to the square exponent in the final expression
s () 0
=0
Rs ( )cos( ) Rs (0)
instead of (2.63), we see that only affects the term cos( ). By definition
of the cosine function we know that:
cos() = cos()
This relations implies that
s () = s ()
1
2i
s=i
Gc (s)
esT 1
s
1
q
esT
ds
10
2G.4. Solution
If we express the system in terms of the Laplace transform we have
Y (s) = G(s)U (s)
where U(s) will be the Laplace transform of the constant step signal over the
period T
Z T
U (s) =
u(t)est dt
0
1 esT
s
11
To be able to use the discrete transform GT (q) it is needed first to take this
expression back into time domain
Z i
1
Y (s)est ds
y(t) =
2i s=i
Z i
1
1 esT st
y(t) =
e ds
Gc (s)
2i s=i
s
From this expression we can calculate GT (q) applying the definition of the
discrete transform
GT (q) =
T
X
gT (k)q k
k=1
Z
T
X
1
k=1
2i
s=i
Gc (s)
1 esT
s
eskT q k ds
12
1
2i
Gc (s)
s=i
T
1 esT X
eskT q k ds
k=1
skT
T
X
sT
k=1
k=1
1 k
aq
k=0
1 k
q
qa
k=0
sT
1 k
=1+
T
X
k=1
sT
1 k
13
k=1
sT
1 k
T
X
sT
esT
k=0
=
=
1 k
q
esT
q esT
14
GT (q) =
GT (q) =
1
2i
1
2i
Gc (s)
s=i
s=i
Gc (s)
esT 1
esT
esT
esT
q esT
esT
q
esT
ds
ds
15
2E.2. Suppose that {(t)} and {(t)} are two mutually independent
sequences of independent random variables with
E(t) = E(t) = 0,
E 2 (t) = ,
E 2 (t) =
Consider
(t) = (t) + (t) + (t 1)
Determine a MA(1) process
v(t) = e(t) + ce(t 1)
where {e(t)} is white noise with
Ee(t) = 0,
Ee2 (t) = e
such that {(t)} and {v(t)} have the same spectra; that is, find c and e so
that v () ()
Pedro Xavier Miranda La Hera.
16
2E.2. Solution
If we want to achieve
v () ()
then the Fourier transform of both autocorrelation functions should be the
same
X
X
R ( )ei
Rv ( )ei =
=
this reasoning leads to the fact that both autocorrelation functions should be
the same
Rv ( ) R ( )
or
Ev(t)v(t ) E(t)(t )
17
18
19
20
Applying the same reasoning as before, the terms in the last expression
represent only the Autocorrelation functions of R ( ) and R ( ), therefore
we can rewrite as
E(t)(t ) = R ( ) + R ( ) + 2R ( ) + 2 R ( )
= R ( ) + R ( )(1 + )2
21
By the equivalence
Rv ( ) R ( )
we obtain
e (1 + c)2 = + (1 + )2
e + 2ce + c2e = + + 2 + 2
we can form the equalities
e = +
ce =
And finally we can conclude that
e = +
c=
22
23
X(q) =
Y (q) =
(q)
qf
h(q)
qf
+ v(q)
24
as we see in the ARMA process, we are missing the values of and , but
one fact that we have is that the ARMA process is monic, which means that
the term for = 1, thus
yk+1 f yk
= ek+1 + ek
if we name the expression as follow:
k = hk + vk+1 f vk
= ek+1 + ek
To fulfill the equivalence of the process we will find the next equivalences:
Ek = Ek = 0
Ek k = Ek k
Ek k1 = Ek k1
25
h2 R1 + R2 + f 2 R2 = Re + 2 Re
the expression for Ek k1 = Ek k1
f Evk2 = Ee2k
f R2 = Re
26
f R2
h2 R1 + R2 + f 2 R2
f R2
as we see the numerator of the right hand side will be always positive and
equal to some constant value, for simplicity we can rewrite the expression like:
1 + 2
= 2C
27
where
2C =
h2 R1 + R2 + f 2 R2
f R2
28
which tell us that C has to be always 1 < C < 1 in order to avoid complex
values. As we see in the expression for 2C this requirement is going to be
fulfilled whit a good choice of the value f . Another requisite will be
p
|C C 2 1| < 1
and again this decision can be taken with a good choice of the parameter f .
Clearly it can be seen in the process transfer function:
Y (q)
E(q)
q+
qf
C C2 1
Pedro Xavier Miranda La Hera.
29
Suppose that the input u(t) is piecewise constant over the sampling interval
u(t) = uk , kT t < (k + 1)T
(a) Derive a sample data system description for uk , y(kT ).
(b) Assume that there is a time delay of T seconds so that u(t) in the
expression is replaced by u(t T ). Derive a sample data system
description for this case.
(c) Assume that the time delay is 1.5T so that u(t) is replaced by
u(t 1.5T ). Then give the sampled data description.
30
2E.6. Solution
a). The solution to the differential equation which includes the effects of the
input and initial conditions is given by:
Z t
y(t) = ea(tt0 ) y(t0 ) +
ea(t ) u( )d
t0
where y(t0 ) is the initial condition on the state variables. Based on this
solution the sampled state response is given by
Z T
y[(k + 1)T ] = eaT y[kT ] +
ea(T ) u( + kT )d
=0
we can write
y[(k + 1)T ] = Ay[kT ] + Bu[kT ]
where
A=e
aT
B=
=0
a(T )
d =
1 eaT
a
31
if we use Z transform
z(Y (z) y[0]) = AY (z) + BU (z)
Y (z)(z A) = BU (z) + zy[0]
Y (z) =
B
zA
U (z) +
z
zA
y[0]
B X
k=0
Ak+1 u(t k) +
Ak q k y[0]
k=0
32
The solution to the differential equation after applying the delay in the
equation including the effects of the input and the initial conditions is given
by:
Z t
ea(t ) u( T )d
y(t) = ea(tt0 ) y(t0 ) +
t0
where y(t0 ) is the initial condition on the state variables. Based on this
solution the sampled state response is given by
Z T
y[(k + 1)T ] = eaT y[kT ] +
ea(T ) u( + kT T )d
=0
we can write
y[(k + 1)T ] = Ay[kT ] + Bu[kT T ]
Pedro Xavier Miranda La Hera.
33
where
A = eaT
B=
ea(T ) d =
=0
1 eaT
a
u[1] +
y[0]
zA
zA
B
z
U (z) +
u[1] +
y[0]
Y (z) =
z(z A)
zA
zA
Y (z) =
zA
B
U (z) +
34
The solution to the differential equation after applying the delay in the
equation including the effects of the input and the initial conditions is given
by:
Z t
ea(t ) u( 1.5T )d
y(t) = ea(tt0 ) y(t0 ) +
t0
where y(t0 ) is the initial condition on the state variables. Based on this
solution the sampled state response is given by
y[(k + 1)T ] = eaT y[kT ] +
=0
ea(T ) u( + kT T )d
where
T = 1.5T
Pedro Xavier Miranda La Hera.
35
e
B=
ea(1.5T ) d =
a
=0
if we use the Z transform
z(Y (z) y[0]) = AY (z) + Bz 1 U (z) Bu[1]
Y (z)(z A) = U (z)(Bz 1 ) + zy[0] Bu[1]
Y (z) =
Bz 1
y[0]
u[1]
zA
zA
z
B
Y (z) =
U (z) +
y[0]
u[1]
z(z A)
zA
zA
Pedro Xavier Miranda La Hera.
zA
B
U (z) +
36