Linearization de Tanues
Linearization de Tanues
Most chemical process models are nonlinear, but they are often linearized to perform a simulation and stability analysis. Linear models are easier to understand (than nonlinear models) and are necessary for most control system design methods.
( x xs )
xs
f x
( x xs )
xs
dxs = f ( xs ) = 0 dt f dx = f ( x) dt x
( x xs )
xs
d ( x xs ) f dt x
( x xs )
xs
We are often interested in deviations in a state from a steadystate operating point (deviation variable)
dx f dt x
x
xs
dx ax dt
where a =
f x
xs
( x xs )
xs , u s
xs ,us
1 2 f ( x xs )( u us ) + 2 u 2
( u us )
xs , u s
f x
f x
( x xs ) +
xs ,us
f u
f u
( u us )
xs ,us
d ( x xs ) dt
( x xs ) +
xs ,us
( u us )
xs , u s
f u
u
xs ,us
a=
f x
b=
xs , u s
f u
xs ,us
y = g ( x, u )
Perform a Taylor series expansion and truncate high order terms
g ( x, u ) g ( xs , us ) + y ys = g x g x g u
( x xs ) +
xs ,us
( u us )
xs ,us
g ( xs , us ) = ys
( x xs ) +
xs , u s
g u
( u us )
xs , u s
y =cx +du
where
c=
g x
d=
xs ,us
g u
xs , u s
2 = x
dx2 = f 2 ( x1 , x2 , u ) dt
y = g ( x1 , x2 , u )
Perform Taylor series expansion of the nonlinear functions and neglect high-order terms
f1 ( x1 , x2 , u ) = f1 ( x1s , x2 s , us ) + f1 x1 f 2 x1 g x1
( x1 x1s ) +
x1 s , x2 s ,us
f1 x2 f 2 x2
( x2 x2 s ) +
x1 s , x2 s ,us
f1 u f 2 u
( u us )
x1 s , x2 s ,us
f 2 ( x1 , x2 , u ) = f 2 ( x1s , x2 s , us ) +
( x1 x1s ) +
x1 s , x2 s ,us
( x2 x2 s ) +
x1 s , x2 s ,us
( u us )
x1 s , x2 s ,us
g ( x1 , x2 , u ) = g ( x1s , x2 s , us ) +
( x1 x1s ) +
x1 s , x2 s ,us
g x2
( x2 x2 s ) +
x1 s , x2 s ,us
g u
( u us )
x1 s , x2 s ,us
g ( x1s , x2 s , us ) = ys
dx1 d ( x1 x1s ) = dt dt
dx2 d ( x2 x2 s ) = dt dt
x1 s , x2 s ,us
x1 s , x2 s ,us
f1 u x1 s , x2 s ,us x1 x1s x x + f 2 2 2 s f 2 x2 x , x ,u u 1s 2 s s f1 x2
g x2 x1 x1s g + x x x1 s , x2 s ,us u 2 2s
x1 s , x2 s ,us u us ] [ x1 s , x2 s ,us
[u u s ] x1 s , x2 s ,us
x1 s , x2 s ,us
= A x + Bu x y = C x + Du
Generalization
Consider a general nonlinear model with n state variables, m input variables, and r output variables
1 = f1 ( x1 , , xn , u1 , , um ) x n = f n ( x1 , , xn , u1 , , um ) x y1 = g1 ( x1 , , xn , u1 , , um ) yr = g r ( x1 , , xn , u1 , , um )
Vector notation:
= f(x,u) x y = g(x,u)
Aij =
f i x j
Bij =
xs ,u s
f i u j
State-space form:
xs ,u s
= A x + Bu x y = C x + Du
or
g Cij = i x j
xs ,u s
gi Dij = u j
x s , us
F1
F2
F1 = R1 h1 h2
Modeling equations
dh1 F R1 = dt A1 A1 dh2 R1 = dt A2 h1 h2 = f1 ( h1 , h2 , F ) R2 A2
F2 = R2 h2
h1 h2
h2 = f 2 ( h1 , h2 , F )
Assume only the second tank height is measured. The output, in deviation variable form is y = h2 - h2s There are two state variables, one input variable, one one output variable
h h s = 1s h2 s x h h x = 1 = 1 1s x2 h2 h2 s
u = F Fs
R1 2 A1 h1s h2 s
hs , Fs
B11 = B21 =
f1 F f 2 F
=
hs , Fs
1 A1
=0
hs , Fs
hs , Fs
=
hs , Fs
2 A2
=1
hs , Fs
x1 y = [ 0 1] x2
( y = x2 = h2 h2 s )
Interpretation of Linearization
Consider the single tank problem (assume F is constant) dh F R 1 = h = f ( h, F ) = 1 h dt A A 5 1 Linearization f ( h, F ) 0 ( h hs ) 10
1
nonlinear linear
0.5
The linear approximation works well between 3.5 to 7 feet The two functions are exactly equal at the steady-state value of 5 feet
f(x)
h =5
0
-0.5
10
x (h)
5 ft 2.5 R2 = 6 min
A1 = 5ft 2
A2 = 10ft 2
Stable if all of the eigenvalues of A are less than zero The response x(t) is oscillatory if the eigenvalues are complex
Exercise
Consider the following system equations
1 0.5547 Find the responses of x(t) for x(0) = and x(0) = 0 0.8321 (slow subspace v.s. fast subspace)
1 = 0.5 x1 + x2 x 2 = x 2 x2
0.2703 0.8719 Find the responses of x(t) for x(0) = and x (0) = 0.4896 0.9628 (stable subspace v.s. unstable subspace)
Note: Find eigenvalue and eigenvector of A >> [V, D] = eig(A)
1 = 2 x1 + x2 x 2 = 2 x1 x2 x