91lecture3-SSModel

advertisement

Modeling in the Time Domain -

State-Space

Mathematical Models

Classical or frequency-domain technique

State-Space or Modern or Time-Domain technique

Classical or Frequency-Domain

Technique

• Advantages

– Converts differential equation into algebraic equation via transfer functions.

– Rapidly provides stability & transient response info.

• Disadvantages

– Applicable only to

Linear, Time-Invariant

(LTI) systems or their close approximations.

LTI limitation became a problem circa 1960 when space applications became important.

State-Space or Modern or Time-

Domain Technique

• Advantages

– Provides a unified method for modeling, analyzing, and designing a wide range of systems using matrix algebra.

– Nonlinear, Time-

Varying, Multivariable systems

• Disadvantages

– Not as intuitive as classical method.

– Calculations required before physical interpretation is apparent

State-Space Representation

An LTI system is represented in state-space format by the vector-matrix differential equation (DE) as:

 ( )

( )

( )

( )

( )

( )

Dynamic equation(s)

Measurement equations with t

0

( ).

The vectors x, y, and u are the state, output and input vectors.

The matrices A, B, C, and D are the system, input, output, and feedforward matrices.

Definitions

System variables : Any variable that responds to an input or initial conditions.

State variables: The smallest set of linearly independent system variables such that the initial condition set and applied inputs completely determine the future behavior of the set.

Linear Independence: A set of variables is linearly independent if none of the variables can be written as a linear combination of the others.

Definitions (continued)

State vector: An (n x 1) column vector whose elements are the state variables.

State space: The n-dimensional space whose axes are the state variables.

Graphic representation of state space and a state vector

The minimum number of state variables is equal to:

• the order of the DE’s describing the system.

• the order of the denominator polynomial of its transfer function model.

• the number of independent energy storage elements in the system.

Remember the state variables must be linearly independent!

If not, you may not be able to solve for all the other system variables, or even write the state equations.

Example 1:

Epidemic Disease

Discrete State Space Model

(Linear System)

Discrete State Space

(Nonlinear System)

Case Study: Pharmaceutical Drug

Absorption

Advantages of the state-space approach are the ability to focus on component parts of the system and to represent multiple-input, multipleoutput systems.

Pharmaceutical Drug Absorption

Problem

We wish to describe the distribution of a drug in the body by dividing the process into compartments: dosage , absorption site , blood , peripheral compartment , and urine . the amount of drug in that particular compartment.

Pharmaceutical Drug Absorption

Solution

1. Assume dosage is released at a rate proportional to concentration.

d dt x

1

 

K x

1 1

2. Assume rate of accumulation at a site is a linear function of the dosage of the donor compartment and the resident dosage. Then, d dt x

2

K x

1 1

K x

2 2 d dt x

3

K x

2 2

K x

3 3

K x

4 4

K x

5 5 d dt x

4

K x

5 3

K x

4 4 d dt x

5

K x

3 3

Pharmaceutical Drug Absorption

Solution

3. Define the state vector as the dosage amount in each compartment and assume we measure the dosage in each compartment. Then, d dt

 x x

2 x x

1

3

4

 x

5

 

 

K

K

1

1

0

0

0 y

I x

0

K

2

K

2

0

0

0

0

( K

3

K

5

)

K

5

K

3

K

0 0

0 0

K

4

4

0

0

 x x

2 x x

4

1

3

0 0 x

5

Converting a Transfer Function to State Space

• State variables are not unique . A system can be accurately modeled by several different sets of state variables.

• Sometimes the state variables are selected because they are physically meaningful.

• Sometimes because they yield mathematically tractable state equations.

• Sometimes by convention.

Phase-variable Format

1. Consider the DE n d y

 a n

1 dt n n

1 d y dt n

1 d y dt

 a y

 b u

0 0 where y is the measure variable and u is the input.

2. The minimum number of state variables is n since the DE is of nth order.

3. Choose the output and its derivatives as state variables.

x

1

 y x

2

  x 

1

 x

2

First row of state equations

 x n

 d n

1 y dt n

1

 x  n

1

 x n x  n

 dt n

  a x

0 1

 a x

1 2

  a n

1 x n

 b u

0

Last row of state equations

Phase-variable Format

(continued)

4. Arrange in vector-matrix format d dt

 x x

1

2 x n

1

 x n

0

0

0 a

0 y

1 0 0 

1

0

0

 a

0

0

 x

1 x

2

 x n

1

 x n

0

1

0 a

0

0

0

1

 a

0

 x x

1

2 x n

1

 x n

0

0

0

 b

0

Note the transfer function format

 s n  a n

1 s n

1 b

0

 a s

1  a

0

equivalent block diagram showing phase-variables.

Note: y(t) = c(t)

Example 3.4

Transfer Function with

Numerator Polynomial

Transfer Function with

Numerator Polynomial

(continued)

1. From the first block: X s

 s

3  a

2 a

3 s

1 / a

3

2  a a

1

3 s

 a

0 a

3

2. Therefore, d dt

 x x

2 x

1

3

0

0 a

0 a

3

1

0 a

1 a

3

0

1 a

2 a

3

 x x

2 x

1

3

 

0

0

1 a

3

 

 u

Transfer Function with

Numerator Polynomial

(continued)

3. The measurement (observation) equation is obtained from the second transfer function.

C s

Y s

 b s

2

2  b s

1

0

1

( )

 b s X

2

2

1

 b sX

1 1

 b X

0 1

But, sX

1

X

2

and sX

2

X

3

So, Y s

 b X

 b X

 b X

2 3 1 2 0 1 y

 b

0 b

1 b

2

 x

1 x

2

 x

3

Example 3.5

Converting from State Space to a

Transfer Function

 ( )

( )

( )

( )

( )

( ) with t

 t and zero initial conditions

0

.

Taking the Laplace transform, s X s

( )

( )

( )

  sI

A

 

1

( )

Y s

( )

( )

  

A

 

1

( )

( )

 

A

 

1

B

In the case of SISO (Single - Input, Single - Output) systems:

  

A

 

1

B

D

 

A B det

 det sI

A

 sI

 

Example 3.6 p.p.152-153

• Solve by hand

• Solve using MATLAB’s ‘ss’ and ‘tf’ commands

Linearization

• Demonstration of how to linearize a nonlinear state space model about a nominal solution.

• Application of linearization to guidance and control of a lunar mission.

Download