Lecture2 LinearSystems
Lecture2 LinearSystems
• Linear models
– Have simple structure
– Can be analyzed using powerful mathematical tools
– Can be matched against real data using known procedures
– Many simple physics models are linear
– They are just models, not the real systems
x (T + ∆ t ) ≈ x (T ) + ∆ tAx ( t ) = (I + ∆ tA )x (T )
x (T + n ∆ t ) = (I + ∆ tA ) x (T ) → exp( An ∆ t ) x (T )
n
exp( At ) = lim (I + ∆ tA )
t / ∆t
∆t → 0
dt 1
0 5 10 15 20
• Initial condition response
0.02
x ( t ) = exp( At ) x 0 0
-0.02
-0.04
0 5 10 15 20
0.02
Example: 0
%Take A, B, C from the F16 example -0.02
-0.04
>> k = 0.02 -0.06
>> G = A + k*B*C; -0.08
>> x0 = [0.1700; 0 5 10 15 20
-0.0022;
0.05
0; 0
-0.1800]; -0.05
>> -0.1
for j = 1:length(t); -0.15
x(:,j)=expm(G*t(j))*x0; end; 0 5 10 15 20
TIME
EE392m - Spring 2005 Control Engineering 2-7
Gorinevsky
Eigenvalues and Stability Example:
% take A from
• Consider eigenvalues of the matrix A % the F16 example
>> eig(A)
ans =
{λ j } = eig( A); det( Iλ − A) = 0 -1.9125
-0.1519 + 0.1143i
-0.1519 - 0.1143i
0.0970
u
input signal
P y
output signal
x
internal state
(hidden)
• Historically (50 years ago)
– Black-box models EE
– State-space models ME, AA
u y
P
t
⎯
⎯→ t
x ( ∆ t ) ≈ ∆ tAx ( 0 ) + B ∆
{ tu 0.5
0
1
-0.5
x ( ∆ t ) ≈ B ∆ tu = B 0.04
0 10 20
x ( t ) = exp( At ) B 0.02
0
-0.02
0 10 20
• System impulse response 1
h ( t ) = C exp( At ) B 0.5
0
0 10 20
TIME
EE392m - Spring 2005 Control Engineering 2-12
Gorinevsky
Formal transfer function
• Rational transfer function
= IIR (Infinite Impulse Response) model
– Broad class of input-output linear models
dmy d m −1 y d nu d n −1u
a1 m + a 2 m −1 + K + a m +1 y = b1 n + b2 n −1 + K + bn +1u
dt dt dt dt
d
• Differentiation operator →s
dt
• Formal transfer function – rational function of s
N (s) N ( s ) = a1 s m + K + a m s + a m +1
y = H (s) ⋅ u = ⋅u
D(s) D ( s ) = b1 s n + K + bn s + bn +1
• For a causal system m ≤ n
EE392m - Spring 2005 Control Engineering 2-13
Gorinevsky
Poles, Impulse Response
N (s) N (s) = 0 - zeros
y= ⋅u
D(s) D(s) = 0 - poles
• Expand D ( s ) = ( s − p1 ) M 1 ⋅ K ⋅ ( s − p K ) M K
N1 (s) N K (s)
Then y= M1
⋅ u + K + MK
⋅u
( s − p1 ) (s − pK )
• Quasi-polynomial impulse response – see a textbook
( ) ( )
h ( t ) = c1,1t M 1 −1 + K + c1, M 1 +1 e p1t + K + c K ,1t M K −1 + K + c K , M K +1 e p K t
d 2
y 1
• Example: =u Transfer function: y = 2 ⋅ u
dt 2 s
Impulse response: h (t ) = v0 t + x0
EE392m - Spring 2005 Control Engineering 2-14
Gorinevsky
Transfer Function for State Space
• Formal transfer function for a state space model
y = (sI − A ) B ⋅ u
−1
d sx = Ax + Bu
→s
= H ( s ) = C (sI − A ) B
−1
dt y Cx
• Characteristic polynomial
N ( s ) = det (sI − A ) = 0
∫
st
• Laplace integral transform: x ( t ) → xˆ ( s ) = x ( t ) e dt
0
LTI
Plant
e iωt H (iω )e iωt
s (e iωt ) →
d iωt
e = iωe iωt
dt
• Frequency domain analysis
∑ k
u e iωk t
→ y = ∑ k
u H ( iω k ) e iωk t
y = H (iω )eiωt
Magnitude (dB)
10
• Example:
5
1
0
H ( s) = -5
s − 0.7 0
-45
-90
in dB -135
Frequency (rad/sec)
EE392m - Spring 2005 Control Engineering 2-20
Gorinevsky
Model Approximation
• Model structure – physics, computational
• Determine parameters from data
• Step/impulse responses are close the input/output
models are close
• Example – fit step response
• Linearization of nonlinear model
0.8
HEAT FLUX
0.6
0.4
0.2
0
0 20 40 60 80 100
TIME
• Example problem: fit an IIR model of a given order
• This is called model identification
• Considered in more detail in Lecture 8
1
HEAT FLUX
4
0.8
2
0.6
0 0.4
0 20 40 60 80 100
TIME
STEP RESPONSE 0.2
1
0.8 0
HEAT FLUX
0 15
0.6
10
0.4 0.5
5
heat
0.2 0
1 TIME flux
COORDINATE
0
0 20 40 60 80 100
EE392m - Spring 2005 TIME Control Engineering 2-24
Gorinevsky
Impulse response approximation
• Approximating impulse 0.08s 2 − 0.4 s + 2.8
H ( s ) = 0.01 2
and step responses by a s + 0.34 s + 0.03
low order rational
transfer function model 0.06
• Example:
static map linearization
∆f
y = f (u ) ≈ (u − u0 )
∆u
heated part
T
output
furnace
EE392m - Spring 2005 Control Engineering 2-28
Gorinevsky
RTP, cont’d
dT
= f (T ) + bu f (T ) = −c1 (T 4 − TF4 ) − c2 (T − TF )
dt
Linearize around a steady state point
dT
= f L (T ) + bu f L (T ) = a (T − T* ) + d
dt f (T* + ∆ ) − f (T* )
d = f (T* ) a = f ′(T* ) ≈
0
∆
b = 1000, -200
c1 = 1.1⋅10-10, -400
c2 = 0.8, -600
f(T)
TF = 300 -800
-1000
-1200
300 400 500 600 700 800 900 1000 1100 1200 1300
TEMPERATURE
EE392m - Spring 2005 Control Engineering 2-29
Gorinevsky
RTP, cont’d
x& = ax + bu + d x = T − T* Linear system with a pole
u = −kx p = −( a + bk )
600 model,
500 linear d=0
400
model
300
0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5
TIME
q& = Aq + Bv
For more detail see: Aircraft Control and Simulation by Stevens and Lewis
EE392m - Spring 2005 Control Engineering 2-32
Gorinevsky
Nonlinear Model of F16
dx
= f ( x, u ) state evolution
dt
y = g ( x) observation