Docsity

Lecture Notes on State Variables Models | ECE 4700, Study notes of Electrical and Electronics Engineering

Toggle sidebar
bg1
Page 1
Notes and figures are based on or taken from materials in the ECE 371 course textbook:
R.C. Dorf and R.H. Bishop, Modern Control Systems, 9th ed., Prentice Hall, 2001. ISBN 0-13-030660-6.
Chapter 3 Lecture 1
State Variable Models
Time-domain techniques can be utilized for nonlinear, time-varying, and multivariable
systems. A time-varying control system is a system for which one or more of the
parameters of the system may vary as a function of time. We are interested in
reconsidering the time-domain description of dynamic systems as they are
represented by the system differential equation.
The time-domain analysis and design of control systems utilize the concept of the state of
a system. The state of a system is a set of variables such that the knowledge of these
variables and the input functions will, with the equations describing the dynamics,
provide the future state and output of the system.
This is also the equivalent of a multiple-input multiple-output (MIMO) system.
For a dynamic system, the state of a system is described in terms of a set of state
variables [x1 (t), x2 (t),...,xn (t)].
The state equations are defined using vector-matrix notation as
uBxAx
⋅
+
⋅
=
&
with the output as a combination of states and inputs, represented as
uDxCy
⋅
+
⋅
=
The state variables are those variables that determine the future behavior of a system
when the present state of the system and the excitation signals are known.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19

Partial preview of the text

Download Lecture Notes on State Variables Models | ECE 4700 and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

Page 1 Notes and figures are based on or taken from materials in the ECE 371 course textbook: th

Chapter 3 Lecture 1

State Variable Models

Time-domain techniques can be utilized for nonlinear, time-varying, and multivariable

systems. A time-varying control system is a system for which one or more of the

parameters of the system may vary as a function of time. We are interested in

reconsidering the time-domain description of dynamic systems as they are

represented by the system differential equation.

The time-domain analysis and design of control systems utilize the concept of the state of

a system. The state of a system is a set of variables such that the knowledge of these

variables and the input functions will, with the equations describing the dynamics,

provide the future state and output of the system.

This is also the equivalent of a multiple-input multiple-output (MIMO) system.

For a dynamic system, the state of a system is described in terms of a set of state

variables [x1 (t), x2 (t),...,xn (t)].

The state equations are defined using vector-matrix notation as

x & = A ⋅ x + B ⋅ u

with the output as a combination of states and inputs, represented as

y = C ⋅ x + D ⋅ u

The state variables are those variables that determine the future behavior of a system

when the present state of the system and the excitation signals are known.

Page 2 Notes and figures are based on or taken from materials in the ECE 371 course textbook: th

An example to demonstrate the concept:

A spring-mass damper system

ky u ( ) t

dt

dy b dt

d y M (^) 2 + + =

2

M ⋅ s ⋅ Y ( s ) + b ⋅ s ⋅ Y ( ) s + k ⋅ Y ( ) s = U ( ) s

2

Define a set of state variables as ( x 1 , x 2 ), position and velocity, where

x 1 = y ( t )

dt

dyt x (^) 2 =

Substituting this into the system equation

bx kx u ( ) t

dt

dx M + 2 + 1 =

2

Then we can describe the system using two equations having two state variables:

2

1 x dt

dx

x u ( ) t

M

b x M

k

dt

dx = − 1 − 2 +

2

The state-variable matrix equation is

u^ ( ) t

x

x

M

b

M

k

dt

dx

dt

dx

⎥^ ⋅

2

1

2

1

[ ] u ( ) t

x

x y (^) ⎥+ ⋅ ⎦

2

1

Page 4 Notes and figures are based on or taken from materials in the ECE 371 course textbook: th

P2.3 (cont):

Then the four equations for the for state variables become:

3

1 x dt

dx t

4

2 x dt

dx t

M

Ft x M

k x M

k k

dt

dx

12 1

3 1 12 2 4

12 1

4 12 x M

b x M

k x M

k

dt

dx =+ − −

They can be put into a matrix form.

The state-variable matrix equation is

u ( ) t

M

x

x

x

x

M

b

M

k

M

k

M

k

M

k k

dt

dx

dt

dx

dt

dx

dt

dx

4

3

2

1

12 12

1 12 12

4

3

2

1

With the two outputs being x 1 and x 2 , written as outputs in y as

u ( ) t

x

x

x

x

y

y ⎥⋅ ⎦

4

3

2

1

2

1

OK, now that the form looks right, so what? …. Linear Algebra has a purpose!

Linear Algebra is used to solve systems of equations.

In state space systems, ee combine Laplace Transforms with Linear Algebra to solve

control system problems.

Page 5 Notes and figures are based on or taken from materials in the ECE 371 course textbook: th

State Variable Equations

In general we are interested in developing a set of state differential equations of the

form where dt

x &^ = dx.

n n n nn n n n nm m

n n m m

n n m m

x a x a x a x b u b u b u

x a x a x a x b u b u b u

x a x a x a x b u b u b u

& L L
M
& L L
& L L

1 1 2 2 1 1 2 2

2 21 1 22 2 2 21 1 22 2 2

1 11 1 12 2 1 11 1 12 2 1

using vector-matrix notation we have

x & = A ⋅ x + B ⋅ u

m n nm

m

m

n n nn n

n

n

n

u

u

b b

b b

b b

x

x

x

a a a

a a a

a a a

x

x

x

dt

d M

L
M O M
L
L
M
L
M M O M
L
L
M

1

1

21 2

11 1

2

1

1 2

21 22 2

11 12 1

2

1

and

k k k kn n k k km m

n n m m

n n m m

y c x c x c x d u d u d u

y c x c x c x d u d u d u

y c x c x c x d u d u d u

L L
M
L L
L L

1 1 2 2 1 1 2 2

2 21 1 22 2 2 21 1 22 2 2

1 11 1 12 2 1 11 1 12 2 1

m k km

m

m

k k kn n

n

n

k

u

u

d d

d d

d d

x

x

x

c c c

c c c

c c c

y

y

y

M
L
M O M
L
L
M
L
M M O M
L
L
M

1

1

21 2

11 1

2

1

1 2

21 22 2

11 12 1

2

1

Page 7 Notes and figures are based on or taken from materials in the ECE 371 course textbook: th

Another way of thinking about this problem involves the inverse function. If we let

(Phi) ( ) [ ]

− 1 Φ s = sI − A

which is the Laplace transform of Φ ( t^ )^ =exp( A ⋅ t ). Then,

X^ ( ) s^ = [^ sI − A ]^ ⋅ x ( )^ +[ s^ I − A ]^ ⋅ B ⋅ U ( ) s

− 1 − 1 0

becomes

X ( ) s = Φ( ) s ⋅ x ( ) 0 +Φ( ) s ⋅ B ⋅ U ( ) s

The matrix exponential function describes the unforced response of the system and for

control systems is called the fundamental or state transition matrix Φ( ) t. Therefore

the result

x ( ) t ( A t ) x ( ) [ A ( t τ )] B u ( )τ d τ

t

0

exp 0 exp

can be written as

x ( ) t ( ) t x ( ) ( t τ ) B u ( )τ d τ

t

0

The solution to the unforced system (that is, when u ( t ) = 0 ) is simply

2

1

1 2

21 22 2

11 12 1

2

1

n n nn n

n

n

n x

x

x

x t

x t

x t

M
L
M M O M
L
L
M

Page 8 Notes and figures are based on or taken from materials in the ECE 371 course textbook: th

To determine the state transition matrix, we can go through a tedious procedure.

2

1

1 2

21 22 2

11 12 1

2

1

n n nn n

n

n

n x

x

x

x t

x t

x t

M
L
M M O M
L
L
M

φ φ φ

φ φ φ

φ φ φ

(1) Set the initial conditions for all state variables to zero.

(2) Select one state variable, make it non-zero and evaluate the time response of all the

state variables. The resulting time response provides one column of the time domain state

transition matrix. That is, the term φ ij (t) is the response of the ith state variable due to

an initial condition on the jth state variable when there are zero initial conditions on all

the other states.

(3-n) Repeat for every state variable until the state transition matrix is complete.

If you don’t have access to set all of the initial conditions of the state …

your in the real world!

There are ways to perform “state estimation” … more advanced classes.

Page 10 Notes and figures are based on or taken from materials in the ECE 371 course textbook: th

The definition of an eigenvalue from Linear Algebra is:

[ A − λ I ] ⋅ x = 0

We have been dwelling on the characteristic equation.

Can we define the characteristic equation based on the state transition matrix? Sure

det [ s I − A ] = 0

Recognize something familiar?

The eigenvalues are the roots of the characteristic equation!

(Most of the really far out stuff in control systems, advanced signal processing, image

processing, etc. involves vectors, matrices, eigenvalues and eigenvectors.)

Page 11 Notes and figures are based on or taken from materials in the ECE 371 course textbook: th

Example

L

c c u i dt

dv i = C ⋅ = −

L

L c R i dt

di v = L ⋅ + ⋅

vo = R ⋅ i L

Let x 1 (^) = vc and x (^) 2 = iL and y (^) 1 = vo we get

u C

x dt C

dx = − ⋅ + ⋅

2

1

1 2

x L

R

x dt L

dx =+ ⋅ − ⋅

or

C^ u x

x

L
R
L
C

dt

dx

dt

dx

2

1

2

1

and

y 1 (^) = R ⋅ x 2

or

[ ] ⎥

2

1 1 0 x

x y R

Page 13 Notes and figures are based on or taken from materials in the ECE 371 course textbook: th

Let

R = 3 , L = 1 , andC = 0. 5

s s s s

LC

s L

R

s

LC
R

Gs

2 2 + ⋅ +

s s

s

s

LC

s L

R

s

s L

L C
R

s

s

2 2 + ⋅ +

s s

s

s

s s

s

s

LC

s L

R

s

s L

L C
R

s

s

− − − −

t t t t

t t t t

e e e e

e e e e t (^) 2 2

2 2

Initial Condition Response

x^ ( t^ )^ =Φ( ) t^ ⋅ x ( ) 0

2 2

2 2

x e e e e

e e e e x t t t t t

t t t t

⎥^ ⋅ ⎦

− − − −

Page 14 Notes and figures are based on or taken from materials in the ECE 371 course textbook: th

Making a Signal Flow Graph from the State Models

For some physical implementations it may be easier to write the state equations than it is

to define a single transfer function!

C^ u i

v

L
R
L
C

dt

di

dt

dv

L

c

L

c

C^ u x

x

L
R
L
C

dt

dx

dt

dx

2

1

2

1

[ ] ⎥

L

c

i

v

y 1 0 R [ ] ⎥

2

1 1 0 x

x y R

The signal flow graph for this set of equations is

Using Mason’s signal-flow gain formula, we obtain the transfer function

sL s LC

R

s LC

R
L
R

s L s C s

R

C s L s

Us

V s

2

2 0

1 1 1 1 1 1 1 1

G ( ) s

L LC

s sR

LC
R

Us

V s

0

Page 16 Notes and figures are based on or taken from materials in the ECE 371 course textbook: th

A closed population (no inputs) at the steady state

Let us consider a closed population so that u1(t) = u2(t) = 0. The equilibrium point in the

state space for this system is obtained by setting d x/dt = 0.

The equilibrium point in the state space is the point to which the system settles to the

steady state, or rest, condition.

We have

3

2

1

3

2

1

x

x

x

a g

b g

a b

x

x

x

dt

d

1 2

1 2

1 2

a x g x

b x g x

a x b x

Which requires that

1 2

1

2

a x g x

a b x

g b x

Î

⎥

x K

x

x

0

3

2

1

To determine whether the epidemic disease is eliminated from the population, we must

obtain the characteristic equation of the system and figure out if it is stable or unstable

Stable and the disease is eliminated, unstable and the disease wipes out the population.

[ ]

a g s

b s g

s a b

a g

b g

a b

s

s

s

s I A 0

det

0

det det

det [ s ⋅ I − A ] =( s + a ) (⋅ s + g ) ⋅ s + 0 + 0 − b ⋅( − b ) ⋅ s

[ s ⋅ I − A ] = s +( a + g ) ⋅ s +( a ⋅ g + b ) ⋅ s

3 2 2 det

Page 17 Notes and figures are based on or taken from materials in the ECE 371 course textbook: th

Or from Mason’s Flow, there are three loops, two of which are non-touching. Thus the

characteristic equation is

s

g

s

a

s

b

s

g

s

a s (^) 2

2 1

2 1 s

a g b

s

a g s

Δ = + Î ( ) ( ) ( )

2 2 Δ s = s + s ⋅ a + g + a ⋅ g + b

For stability: ( a + g ) > 0 and ( ) 0

2 a ⋅ g + b >

When roots are in the left-hand plane,

we expect the unforced response to decay to zero as t Æ infinity.

Page 19 Notes and figures are based on or taken from materials in the ECE 371 course textbook: th

To obtain the necessary first-order differential equations, we solve for dx4/dt and

substitute to obtain

since M>> m. Substituting dx2/dt, we have

Therefore the four first-order differential equations can be written as

Thus the system matrices are

At steady state,

x 0

d

x 0

x 0

dy

undertermined

4

3

2

1

dt

dt

y x

Anyone what to check stability? It isn’t! Poles at 0, 0, and ± l

g

Page 20 Notes and figures are based on or taken from materials in the ECE 371 course textbook: th

Note: It is often a difficult task to determine a series of first-order differential equations

describing the system. Therefore it can be simpler to derive the transfer function of the

system by the techniques of Chapter 2 and then derive the state model from the transfer

function.