• 沒有找到結果。

Linearization of Nonlinear Models

N/A
N/A
Protected

Academic year: 2021

Share "Linearization of Nonlinear Models"

Copied!
15
0
0

加載中.... (立即查看全文)

全文

(1)

Linearization of Nonlinear Models

• 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.

(2)

Single Variable Example

• A general single variable nonlinear model

The function f(x) can be approximated by a Taylor series approximation around the steady-state operating point (xs)

• Neglect the quadratic and higher order terms dx ( )

dt = f x

( )

2 2

( )

2

( ) ( ) 1 high order terms

s 2 s

s s s

x x

f f

f x f x x x x x

x x

∂ ∂

= + − + − +

∂ ∂

( )

( ) ( )

s

s s

x

f x f x f x x

x

≈ + ∂ −

( )

( )

s

s x

dx f

f x x x

dt x

= ≈ ∂ −

At steady-state

( ) 0

s

s

dx f x

dt = =

The partial derivative of f(x) with respect to x, evaluated at the steady-state

(3)

Since the derivative of a constant (xs) is zero

• We are often interested in deviations in a state from a steady- state operating point (deviation variable)

• Write in state-space form

( ) ( )

s

s

s x

d x x f

x x

dt x

− ≈ ∂ −

(

s

)

d x x dx

dt dt

= −

xs

dx f dt x x

≈ ∂

x = − x x

s : the change or perturbation from a steady-state value

dx a x dt

xs

a f

x

= where

(4)

One State Variable and One Input Variable

• Consider a function with one state variable and one input variable

Using a Taylor Series Expansion for f(x,u)

• Truncating after the linear terms

( , ) x dx f x u

= dt = ɺ

( ) ( ) ( )

( )( ) ( )

2 2

2

, , ,

2 2

2 2

, ,

( , ) 1

2

1 high order terms

2

s s s s s s

s s s s

s s s s s

x u x u x u

s s s

x u x u

f f f

x f x u x x u u x x

x u x

f f

x x u u u u

x u u

= + + +

+ + +

∂ ∂

ɺ

( ) ( )

, ,

( , )

s s s s

s s s s

x u x u

f f

x f x u x x u u

x u

+ +

ɺ

( ) ( ) ( )

, ,

s s s s

s

s s

x u x u

d x x f f

x x u u

dt x u

+

zero

(5)

• Using deviation variables, and

• Write in state-space form

• If there is a single output that is a function of the state and input

• Perform a Taylor series expansion and truncate high order terms

, ,

s s s s

x u x u

dx f f

x u

dt x u

+

( ) ( )

, ,

( , ) ( , )

s s s s

s s s s

x u x u

g g

g x u g x u x x u u

x u

+ +

s, s

x u

a f

x

= ∂

x = −x xs u = −u us

dx a x b u

dt ≈ + where

s, s

x u

b f

u

= ∂

( , ) y = g x u

( ) ( )

, ,

s s s s

s s s

x u x u

g g

y y x x u u

x u

− = +

y = c x +d u where

s, s

x u

c g

x

= ∂

,

s s

x u

d g

u

= ∂

( ,s s) s g x u = y

(6)

Linearization of Multistate Models

• Two-state system

• Perform Taylor series expansion of the nonlinear functions and neglect high-order terms

1

1 dx 1( ,1 2, )

x f x x u

= dt = ɺ

( ) ( ) ( )

1 2

1 2 1 2

1 1 1

1 1 2 1 1 2 1 1 2 2

, ,

1 , , 2 , ,

( , , ) ( , , )

s s s

s s s s s s

s s s s s s

x x u

x x u x x u

f f f

f x x u f x x u x x x x u u

x x u

= + + +

2

2 dx 2( ,1 2, )

x f x x u

= dt = ɺ

1 2

( , , ) y = g x x u

( ) ( ) ( )

1 2

1 2 1 2

2 2 2

2 1 2 2 1 2 1 1 2 2

, ,

1 , , 2 , ,

( , , ) ( , , )

s s s

s s s s s s

s s s s s s

x x u

x x u x x u

f f f

f x x u f x x u x x x x u u

x x u

= + + +

( ) ( ) ( )

1 2

1 2 1 2

1 2 1 2 1 1 2 2

, ,

1 , , 2 , ,

( , , ) ( , , )

s s s

s s s s s s

s s s s s s

x x u

x x u x x u

g g g

g x x u g x x u x x x x u u

x x u

= + + +

(7)

• For the linearization about the steady-state

• We can write the state-space model

1 2

( s, s, s) s g x x u = y

( )

( )

1 2 1 2 1 2

[ ]

1 2

1 2 1 2

1 1 1

1 1

1 , , 2 , , 1 1 , ,

2 2

2 2 2 2 2

, ,

1 , , 2 , ,

s s s s s s s s s

s s s

s s s s s s

s

x x u x x u s x x u

s s s

x x u

x x u x x u

f f f

d x x

x x x x u

dt u u

x x

d x x f f f

dt x x u

   

=    +

1( 1s, 2s, s) 2( 1s, 2s, s) 0 f x x u = f x x u =

(

1 1

) (

2 2

)

1 d x x s 2 d x x s

dx dx

dt dt dt dt

= =

[ ]

1 2

1 2 1 2

1 1

2 2 , ,

1 s, s, s 2 s, s, s s s s

s

s s

s x x u

x x u x x u

x x

g g g

y y u u

x x

x x u

− =  +

x = A x + B u y = C x + D u

ɺ

(8)

Generalization

Consider a general nonlinear model with n state variables, m input variables, and r output variables

• Elements of the linearization matrices

1 1 1 1

1 1

1 1 1 1

1 1

( , , , , , )

( , , , , , ) ( , , , , , )

( , , , , , )

n m

n n n m

n m

r r n m

x f x x u u

x f x x u u

y g x x u u

y g x x u u

=

=

=

=

ɺ

ɺ

x = A x + B u y = C x + D u

ɺ

x = f(x, u) y = g(x, u)

ɺ

Vector notation:

, i ij

j

A f

x

= ∂

s s

x u ,

i ij

j

B f

u

= ∂

s s

x u

, i ij

j

C g

x

= ∂

s s

x u ,

i ij

j

D g

u

= ∂

s s

x u

x = A x + B u y = C x + Du

ɺ

State-space form:

or

(The “overbar” is usually dropped)

(9)

Example: Interacting Tanks

• Two interacting tank in series with outlet flowrate being function of the square root of tank height

• Modeling equations

1 1 1 2

F = R hh F2 = R2 h2

F

F1 F2

( )

( )

1 1

1 2 1 1 2

1 1

2 1 2

1 2 2 2 1 2

2 2

, ,

, ,

dh F R

h h f h h F

dt A A

dh R R

h h h f h h F

dt A A

= − − =

= − − =

(10)

• 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

The element of the A (Jacobian) and B matrices

1 1

11

1 , 1 1 2

1 1

12

2 , 1 1 2

2 1

21

1 , 2 1 2

2 1 2

22

2 , 2 1 2 2 2

2

2

2

2 2

s

s

s

s

s s

F

s s

F

s s

F

s s s

F

f R

A h A h h

f R

A h A h h

f R

A h A h h

f R R

A h A h h A h

= = −

= =

= =

= = −

s

s

s

s

h

h

h

h

1

2 s

s

h h

=

hs 1 1 1

2 2

2

s

s

h h x

h h x

=     =

x u = −F Fs

1 11

, 1

2 21

,

1

0

s

s

F

F

B f

F A

B f

F

= ∂ =

= ∂ =

s

s

h

h

(11)

• Only the height of the second tank is measured

• The state-space model is

11

1 ,

2 12

2 ,

0

1

s

s

F

F

C g

h C g

h

= =

= =

s

s

h

h

1 2 2 2

( , , ) s

y = g h h F = −h h

[ ]

1 1

1

1 1 2 1 1 2 1

1 2

2 1 1 2

2 1 2 2 1 2 2 2

2 2 1

2 2 2 0

s s s s

s s s s s

R R

dx

A h h A h h x

dt A u

x

dx R R R

dt A h h A h h A h

=    +

     

[ ]

1

(

2 2 2

)

2

0 1 x s

y y x h h

x

=    = = −

 

(12)

Interpretation of Linearization

Consider the single tank problem (assume F is constant)

• Linearization

(

,

)

1 1

5 dh F R

h f h F h

dt = −A A = = −

(

,

)

0 1

( )

10 s

f h F ≈ − h h

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

0 1 2 3 4 5 6 7 8 9 10

-0.5 0 0.5 1

x (h)

f(x)

nonlinear linear

hs = 5

(13)

Exercise: interacting tanks

• Two interacting tank in series with outlet flowrate being function of the square root of tank height

– Parameter values

– Input variable F = 5 ft3/min

– Steady-state height values : h1s = 10, h2s = 6

• Perform the following simulation using state-space model

– What are the responses of tank height if the initial heights are h1(0)=12 ft and h2(0)=7 ft ?

– Assume the system is at steady-state initially. What are the responses of tank height if

• F changes from 5 to 7 ft3/min at t = 0

• F has periodic oscillation of F = 5 + sin(0.2t)

• F changes from 5 to 4 ft3/min at t = 20

2.5 2.5

2 2

1 2 1 2

ft 5 ft

2.5 5ft 10 ft

min 6 min

R = R = A = A =

(14)

Stability of State-Space Models

A state-space model is said to be stable if the response x(t) is bounded for all u(t) that is bounded

Stability criterion for state-space model

– The state-space model will exhibit a bounded response x(t) for all bounded u(t), if and only if all of the eigenvalues of A have negative real parts

(the stability is independent matrices B and C)

• Single variable equation has the solution

• The solution of is

– Stable if all of the eigenvalues of A are less than zero

– The response x(t) is oscillatory if the eigenvalues are complex

x ɺ = a x

( ) at (0) stable if 0

x t = e xa <

x = Axɺ x( )t = eAtx(0)

(15)

Exercise

• Consider the following system equations

– Find the responses of x(t) for and (slow subspace v.s. fast subspace)

• Consider the following system equations

– Find the responses of x(t) for and (stable subspace v.s. unstable subspace)

1 1 2

2 2

0.5

2

x x x

x x

= − +

= −

ɺ ɺ

(0) 1

0

=   

x   0.5547

(0) 0.8321

=

x

1 1 2

2 1 2

2 2

x x x

x x x

= +

= −

ɺ ɺ

0.2703 (0) 0.9628

=

x 0.8719

(0) 0.4896

=

x

Note: Find eigenvalue and eigenvector of A

>> [V, D] = eig(A)

參考文獻

相關文件

Chen, “Alternative proofs for some results of vector- valued functions associated with second-order cone,” Journal of Nonlinear and Convex Analysis, vol.. Chen, “The convex and

Fukushima, On the local convergence of semismooth Newton methods for linear and nonlinear second-order cone programs without strict complementarity, SIAM Journal on Optimization,

This kind of algorithm has also been a powerful tool for solving many other optimization problems, including symmetric cone complementarity problems [15, 16, 20–22], symmetric

Due to the important role played by σ -term in the analysis of second-order cone, before developing the sufficient conditions for the existence of local saddle points, we shall

• Note: The following slides integrate some people’s  materials and viewpoints about EM including Kevin materials and viewpoints about EM, including Kevin 

In this paper, by using Takagi and Sugeno (T-S) fuzzy dynamic model, the H 1 output feedback control design problems for nonlinear stochastic systems with state- dependent noise,

This study aimed to establish the strength models of High-Performance Concrete (HPC) using Nonlinear Regression Analysis (NLRA), Back-Propagation Networks (BPN) and

The main objective of this system is to design a virtual reality learning system for operation practice of total station instrument, and to make learning this skill easier.. Students