84
Control System I EE 411 State Space Analysis State Space Analysis Lecture 11 Dr. Mostafa Abdel-geliel

Control System I EE 411 State Space Analysis

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Control System I EE 411 State Space Analysis

Control System I

EE 411

State Space AnalysisState Space Analysis

Lecture 11

Dr. Mostafa Abdel-geliel

Page 2: Control System I EE 411 State Space Analysis

Course Contents

� State Space (SS) modeling of linear systems

� SS Representation from system Block Diagram

� SS from Differential equation� phase variables form

�Canonical form�Canonical form

�Parallel

�Cascade

� State transition matrix and its properties

� Eigen values and Eigen Vectors

� SS solution

Page 3: Control System I EE 411 State Space Analysis

State Space Definition

• Steps of control system design

– Modeling: Equation of motion of the system

– Analysis: test system behavior

– Design: design a controller to achieve the required – Design: design a controller to achieve the required specification

– Implementation: Build the designed controller

– Validation and tuning: test the overall sysetm

• In SS :Modeling, analysis and design in time domain

Page 4: Control System I EE 411 State Space Analysis

SS-Definition

• In the classical control theory, the system model is

represented by a transfer function

• The analysis and control tool is based on classical methods

such as root locus and Bode plot

• It is restricted to single input/single output system• It is restricted to single input/single output system

• It depends only the information of input and output and it

does not use any knowledge of the interior structure of the

plant,

• It allows only limited control of the closed-loop behavior using

feedback control is used

Page 5: Control System I EE 411 State Space Analysis

• Modern control theory solves many of the

limitations by using a much “richer” description

of the plant dynamics.

• The so-called state-space description provide the • The so-called state-space description provide the

dynamics as a set of coupled first-order

differential equations in a set of internal variables

known as state variables, together with a set of

algebraic equations that combine the state

variables into physical output variables.

Page 6: Control System I EE 411 State Space Analysis

SS-Definition

• The Philosophy of SS based on transforming the equation of motions of order n (highest derivative order) into an nequation of 1st order

• State variable represents storage element in the system which leads to derivative equation between its input and output; it could be a physical or mathematical variablescould be a physical or mathematical variables

• # of state=#of storage elements=order of the system

• For example if a system is represented by

• This system of order 3 then it has 3 state and 3 storage elements

Page 7: Control System I EE 411 State Space Analysis

SS-Definition

• The concept of the state of a dynamic system refers to a

minimum set of variables, known as state variables, that fully

describe the system and its response to any given set of

inputs

The state variables are an internal description of the system

which completely characterize the system state at any time t, and

from which any output variables yi(t) may be computed.

Page 8: Control System I EE 411 State Space Analysis

The State Equations

A standard form for the state equations is used throughout system dynamics. In the

standard form the mathematical description of the system is expressed as a set of n

coupled first-order ordinary differential equations, known as the state equations,

in which the time derivative of each state variable is expressed in terms of the state

variables x1(t), . . . , xn(t) and the system inputs u1(t), . . . , ur(t).

Page 9: Control System I EE 411 State Space Analysis

It is common to express the state equations in a vector form, in which the set of n

state variables is written as a state vector x(t) = [x1(t), x2(t), . . . , xn(t)]T, and the set of r

inputs is written as an input vector u(t) = [u1(t), u2(t), . . . , ur(t)]T . Each state variable is

a time varying component of the column vector x(t).

٩

In this note we restrict attention primarily to a description of systems that are linear and

time-invariant (LTI), that is systems described by linear differential equations with constant

coefficients.

Page 10: Control System I EE 411 State Space Analysis

where the coefficients aij and bij are constants that describe the system. This set of n

equations defines the derivatives of the state variables to be a weighted sum of the

state variables and the system inputs.

١٠

Page 11: Control System I EE 411 State Space Analysis

where the state vector x is a column vector of length n, the input vector u is a

column vector of length r, A is an n × n square matrix of the constant coefficients

aij, and B is an n × r matrix of the coefficients bij that weight the inputs.

A system output is defined to be any system variable of interest. A description of a

physical system in terms of a set of state variables does not necessarily include all of

١١

physical system in terms of a set of state variables does not necessarily include all of

the variables of direct engineering interest.

An important property of the linear state equation description is that all system

variables may be represented by a linear combination of the state variables

xi and the system inputs ui.

Page 12: Control System I EE 411 State Space Analysis

An arbitrary output variable in a system of order n with r inputs may be written:

١٢

Page 13: Control System I EE 411 State Space Analysis

١٣

where y is a column vector of the output variables yi(t), C is an m×n matrix of the

constant coefficients cij that weight the state variables, and D is an m × r matrix of the

constant coefficients dij that weight the system inputs. For many physical systems the

matrix D is the null matrix, and the output equation reduces to a simple weighted

combination of the state variables:

Page 14: Control System I EE 411 State Space Analysis

Example

Find the State equations for the series R-L-C electric circuit shown in

١٤

Solution:

capacitor voltage vC(t) and the inductor current iL(t) are state variables

Page 15: Control System I EE 411 State Space Analysis

)1(*)( Kdt

diLviRtv cs ++=

Prove

Appling KVL on the circuit

The relation of capacitor voltage and current

11dv

then dt

dvci c=

1

212

2

21

)](*[1

)(*

)1(

11

xvy

tuxRxL

x

tviRvdt

dix

equationfrom

xc

icdt

dvx

c

sc

c

==

+−−=

+−−==

===

&

&

&

Page 16: Control System I EE 411 State Space Analysis

Example

Draw a direct form realization of a block diagram, and write the

state equations in phase variable form, for a system with the

differential equation

Solution

we define state variables as,13,, 321 uyxandyxyx +=== &&&

١٦

we define state variables as

then the state space representation is

1

123

123

3

32

21

11713197

261319)13(7

261319713

13

xy

uxxx

uxxux

uyyyuyx

uxyx

xyx

=+−−−=

+−−−−=+−−−=−=

−====

&&&&&&&&

&&&

&&

Page 17: Control System I EE 411 State Space Analysis

[ ] )(]0[)(001)(

)(

117

13

0

)(

71913

100

010

)(

tutty

tutt

+=

−+

−−−=

x

xx&

Then the model will be

[ ] 0,001

117

13

0

,

71913

100

010

==

−=

−−−=

DC

BA

[ ] )(]0[)(001)(

where

Page 18: Control System I EE 411 State Space Analysis

Electro Mechanical System

١٨

Page 19: Control System I EE 411 State Space Analysis
Page 20: Control System I EE 411 State Space Analysis
Page 21: Control System I EE 411 State Space Analysis

State Space RepresentationThe complete system model for a linear time-invariant system consists of:

(i) a set of n state equations, defined in terms of the matrices A and B, and

(ii) a set of output equations that relate any output variables of interest to the state

variables and inputs, and expressed in terms of the C and D matrices.

The task of modeling the system is to derive the elements of the matrices, and to write The task of modeling the system is to derive the elements of the matrices, and to write

the system model in the form:

The matrices A and B are properties of the system and are determined by the

system structure and elements. The output equation matrices C and D are

determined by the particular choice of output variables.

Page 22: Control System I EE 411 State Space Analysis

Block Diagram Representation of Linear Systems

Described by State Equations

Step 1: Draw n integrator (S−1) blocks, and assign a state variable to the output of each

block.

Step 2: At the input to each block (which represents the derivative of its state variable)

draw a summing element.

Step 3: Use the state equations to connect the state variables and inputs to the

٢٢

Step 3: Use the state equations to connect the state variables and inputs to the

summing elements through scaling operator blocks.

Step 4: Expand the output equations and sum the state variables and inputs through a

set of scaling operators to form the components of the output.

Page 23: Control System I EE 411 State Space Analysis

Example 1

Draw a block diagram for the general second-order, single-input single-output

system:

Page 24: Control System I EE 411 State Space Analysis
Page 25: Control System I EE 411 State Space Analysis

The overall modeling procedure developed in this chapter is based on the following

steps:

1. Determination of the system order n and selection of a set of state variables

from the linear graph system representation.from the linear graph system representation.

2. Generation of a set of state equations and the system A and B matrices using a

well defined methodology. This step is also based on the linear graph system

description.

3. Determination of a suitable set of output equations and derivation of the

appropriate C and D matrices.

Page 26: Control System I EE 411 State Space Analysis

Consider the following RLC circuit

٢٦

We can choose state variables to be

Alternatively, we may choose

This will yield two different sets of state space equations, but both of them have the identical input-output relationship, expressed by

Can you derive this TF?

),(),( 21 tixtvx Lc ==).(ˆ),(ˆ 21 tvxtvx Lc ==

.1)(

)(2

0

++=

RCsLCs

R

sU

sV

Page 27: Control System I EE 411 State Space Analysis

Linking state space representation and

transfer function

� Given a transfer function, there exist infinitely many input-

output equivalent state space models.

� We are interested in special formats of state space

representation, known as canonical forms.

٢٧

We are interested in special formats of state space

representation, known as canonical forms.

� It is useful to develop a graphical model that relates the state

space representation to the corresponding transfer function.

The graphical model can be constructed in the form of signal-

flow graph or block diagram.

Page 28: Control System I EE 411 State Space Analysis

We recall Mason’s gain formula when all feedback loops are

touching and also touch all forward paths,

Consider a 4th-order TF

012

23

34

0

)()(

)(++++

==asasasas

b

sU

sYsG

gain loopfeedback of sum1gain path forward of Sum

11

−=

−=

∆=

∑∑

=

N

qq

kk

kkk

L

PPT

٢٨

We notice the similarity between this TF and Mason’s gain formula above. To represent the system, we use 4 state variables Why?

40

31

22

13

40

0123

1

)(

−−−−

++++=

++++

sasasasa

sb

asasasassU

Page 29: Control System I EE 411 State Space Analysis

Signal-flow graph model

This 4th-order system

can be represented by

40

31

22

13

40

1)()(

)( −−−−

++++==

sasasasa

sb

sU

sYsG

٢٩

How do you verify this signal-flow graph by Mason’s

gain formula?

Page 30: Control System I EE 411 State Space Analysis

Block diagram model

Again, this 4th-order TF

can be represented by the block diagram as shown

40

31

22

13

40

012

23

34

0

1

)()(

)(

−−−−

++++=

++++==

sasasasa

sb

asasasas

b

sU

sYsG

٣٠

can be represented by the block diagram as shown

Page 31: Control System I EE 411 State Space Analysis

With either the signal-flow graph or block diagram of

the previous 4th-order system,

we define state variables as ,,,, xxxxxxbyx &&& ====

٣١

we define state variables as

then the state space representation is

,,,, 3423120

1 xxxxxxbyx &&& ====

10

433221104

43

32

21

xby

uxaxaxaxax

xx

xx

xx

=+−−−−=

===

&

&

&

&

Page 32: Control System I EE 411 State Space Analysis

Writing in matrix form

we have

)()()(

)()()(

ttt

ttt

DuCxy

BuAxx

+=+=&

٣٢

[ ] 0,000

1

0

0

0

,1000

0100

0010

0

3210

==

=

−−−−

=

Db

aaaa

C

BA

Page 33: Control System I EE 411 State Space Analysis

When studying an actual control system block diagram, we wish to

select the physical variables as state variables. For example, the block

diagram of an open loop DC motor is

155 −+ s 1−s 16 −s

٣٣

We draw the signal-flow diagraph of each block separately and then connect them. We selectx1=y(t), x2=i(t) and

x3=(1/4)r(t)-(1/20)u(t) to form the state space representation.

15155

−++

s

s121 −+ s

s131

6−+ s

s

Page 34: Control System I EE 411 State Space Analysis

Physical state variable model

٣٤

The corresponding state space equation is

x

xx

]001[

)(

1

5

0

500

2020

063

=

+

−−−

−=

y

tr&

Page 35: Control System I EE 411 State Space Analysis

Electro Mechanical System

٣٥

Page 36: Control System I EE 411 State Space Analysis
Page 37: Control System I EE 411 State Space Analysis
Page 38: Control System I EE 411 State Space Analysis

Control Flow

٣٨

Page 39: Control System I EE 411 State Space Analysis
Page 40: Control System I EE 411 State Space Analysis
Page 41: Control System I EE 411 State Space Analysis
Page 42: Control System I EE 411 State Space Analysis

State-Space Representations in Canonical Forms.

1- Controllable Canonical Form

٤٢

Special Case

Page 43: Control System I EE 411 State Space Analysis

Assume

then

Page 44: Control System I EE 411 State Space Analysis

٤٤

Page 45: Control System I EE 411 State Space Analysis

General Case

٤٥

Page 46: Control System I EE 411 State Space Analysis

٤٦

Page 47: Control System I EE 411 State Space Analysis

Controllable Canonical Form General case

٤٧

Page 48: Control System I EE 411 State Space Analysis

2- Observable Canonical Form

ubudt

dbu

dt

dbu

dt

dbyay

dt

day

dt

day

dt

dnn

n

n

n

n

n

nn

n

n

n

n

n

++++=++++−

..........2

2

21

1

102

2

21

1

1

)(.....)()( 222

2

111

1

0 yaubyaubdt

dyaub

dt

du

dt

dby

dt

dnnn

n

n

n

n

n

n

n

−++−+−+=−

−rearrange

Integrate both side n times

Prove

٤٨

dtyaubdtyaubdtyaububyn

nn∫∫∫ −++∫∫ −+∫ −+= )(.....)()( 22110

Integrate both side n times

ʃ-

+

+

+

y

xn

bo

ʃ-

+

+Xn-1

b1

+

b2

ʃ

an

-

+

bn

x1

u

a2

-

a1

Page 49: Control System I EE 411 State Space Analysis

General Form

Page 50: Control System I EE 411 State Space Analysis

3- Diagonal Canonical Form

٥٠

Page 51: Control System I EE 411 State Space Analysis

General Form

٥١

Page 52: Control System I EE 411 State Space Analysis

4- cascade Form

155 −+ s 1−s 16 −s

٥٢

15155

−++

s

s121 −+ s

s131

6−+ s

s

Page 53: Control System I EE 411 State Space Analysis

٥٣

The corresponding state space equation is

x

xx

]001[

)(

1

5

0

500

2020

063

=

+

−−−

−=

y

tr&

Page 54: Control System I EE 411 State Space Analysis

1- Consider the system given by

Obtain state-space representations in the controllable canonical form,

observable canonical form, and diagonal canonical form.

Controllable Canonical Form:

Examples

٥٤

Controllable Canonical Form:

Page 55: Control System I EE 411 State Space Analysis

Observable Canonical Form:

Examples

٥٥

Diagonal Canonical Form:

Page 56: Control System I EE 411 State Space Analysis

0

Examples

٥٦

0

1

10 10

Page 57: Control System I EE 411 State Space Analysis

Examples

٥٧

0

1

5 . 24. 0

Page 58: Control System I EE 411 State Space Analysis

Eigenvalues of an n X n Matrix A.

The eigenvalues are also called the characteristic roots. Consider, for example,

the following matrix A:

٥٨

The eigenvalues of A are

the roots of the

characteristic equation,

or –1, –2, and –3.

Page 59: Control System I EE 411 State Space Analysis

Jordan canonical form

If a system has a multiple poles, the state space

representation can be written in a block diagonal form,

known as Jordan canonical form. For example,

Three poles are equal

٥٩

are equal

Page 60: Control System I EE 411 State Space Analysis

State-Space and Transfer Function

The SS form

Can be transformed into transfer function

٦٠

Tanking the Laplace transform and neglect initial condition then

)()0()()(

then

(2)

(1) and )()()0()(

sBsAss

(s)D(s)C (s)

sBsAss

UxXX

UXY

UXxX

+=−

+=+=−

Page 61: Control System I EE 411 State Space Analysis

( ))()()(

thencondition intial neglectingby

)()0()()(

1

sBsAsI

sBsAss

UX

UxXX

−−=

=−

+=−

( ) )()( 1 sBAsIs UX −−=

( )( ) DBAsIsGss

sDsBAsI

+−==

+−=−

1

1

C)()(/)(

)()(CY(s)

2in sub

UY

UU

Page 62: Control System I EE 411 State Space Analysis

State-Transition Matrix

We can write the solution of the homogeneous state equation

Laplace transform

٦٢

The inverse Laplace transform

Note that

Page 63: Control System I EE 411 State Space Analysis

Hence, the inverse Laplace transform of

٦٣

State-Transition Matrix

Note thatWhere

Page 64: Control System I EE 411 State Space Analysis

If the eigenvalues of the matrix A are distinct, than

will contain the n exponentials

٦٤

Page 65: Control System I EE 411 State Space Analysis

Properties of State-Transition Matrices.

٦٥

Page 66: Control System I EE 411 State Space Analysis

Obtain the state-transition matrix of the following system:

٦٦

Page 67: Control System I EE 411 State Space Analysis

٦٧

Page 68: Control System I EE 411 State Space Analysis

٦٨

Page 69: Control System I EE 411 State Space Analysis

and premultiplying both sides of this equation by

the NON- homogeneous state equation

٦٩

Integrating the preceding equation between 0 and t gives

or

Page 70: Control System I EE 411 State Space Analysis

unit-step function

٧٠

Page 71: Control System I EE 411 State Space Analysis

٧١

Page 72: Control System I EE 411 State Space Analysis

10

٧٢

Prove Transfer function of the given ss

Solution

DBAsICsG +−= −1)()(

Page 73: Control System I EE 411 State Space Analysis

Relation of Different SS Representations of the

Same System

For a given system G(s) has two different ss representations

)()()(

)()()(:M:Rep.1

11

111

tDtCt

tBtAt

uxy

uxx

+=+=

)()()(

)()()(:M:Rep.2

22

222

tDtCt

tBtAt

uzy

uzx

+=+=

Let Z=T x

Where T is the transformation matrix between x and z

For example

yyyx

yyyx

yyx

take

&&&&&

&&

+==+==

==

13

22

11

z ,

z ,

z ,

Page 74: Control System I EE 411 State Space Analysis

yyyx

yyyx

yyx

take

&&&&&

&&

+==+==

==

33

22

11

z ,

z ,

z ,

122

11

z

z

xx

x

then

+==

233

122

z

z

xx

xx

+=+=

xz

z

T

x

x

x

z

z

z

=

=

=

3

2

1

3

2

1

110

011

001

=110

011

001

T

Page 75: Control System I EE 411 State Space Analysis

Sub. By z=Tx in rep. 2

)()()(

)()()()(

Tby mutiply )()()()(

22

2

1

2

111

-1

22

tDtTCty

tBTtTATtTTtzT

tBtTAtTtz

ux

uxx

uxx

+=+==

+==−−−−

&&

&

)()()( 22 tDtTCty ux +=

Compare with M1;rep.1

)()()(

)()()(:M:Rep.1

11

111

tDtCt

tBtAt

uxy

uxx

+=+=

then

21

21

2

1

1

2

1

1

DD

TCC

BTB

TATA

====

21

1

12

12

1

22

DD

TCC

TBB

TTAA

====

Page 76: Control System I EE 411 State Space Analysis

State-Space Diagonalization Function

Eign values and eign vectorsDefinition: for a given matrix A, if ther exist a real (complex)

λ and a corresponding vector v≠0, such that

vv λ=A

٧٦

Then λ is called eign value and v is the eign vector

i.e.

And since v≠0

Then

i.e

vv λ=A

0)( =− vIA λ

0)( =− IA λ0)det( =− IA λ

Page 77: Control System I EE 411 State Space Analysis

Eigenvalues of an n X n Matrix A.

The eigenvalues are also called the characteristic roots. Consider, for example,

the following matrix A:

٧٧

The eigenvalues of A are

the roots of the

characteristic equation,

or –1, –2, and –3.

Page 78: Control System I EE 411 State Space Analysis

Example

−=

28

10A

0)2(8

1

0A-I ofsolution theis eign value then the

=+−

−=−

=

λλ

λ

λ

AI)2(8 +− λ

24

)2)(4(082

21

2

=−=

−+==−+

λλ

λλλλ

and

then

Page 79: Control System I EE 411 State Space Analysis

−=∴

=

−−−−

==

028

14

..

0A)-I(

-4

12

11

11

v

v

ei

v

at

λλ

=

−−

==

048

12

..

0A)-I(

2

22

21

22

2

v

v

ei

v

at

λλ

Eign vectors are obtained as

−=

−=∴

4

1

4

1

1112

vlet

vv

=

=∴

2

1

2

2

222

22

vlet

vv

][ 21 nV vvv L=Eign vector matrix

Page 80: Control System I EE 411 State Space Analysis

For all eign values and vectors

niA iii ,,1,0; K== vv λThese equations can be written in matrix form

Λ= VVAwhere

n ][ 21 L= vvvV

{ }nidiag i

n

n

,,2,1,

00

00

00

][

2

1

21

L

L

MOMM

L

L

L

==

=

λ

λ

λλ

vvvV

thus

1−Λ= VVA

VV A1−=Λ

Page 81: Control System I EE 411 State Space Analysis

thus

1

22 ...

!2)(

−Λ=

+++==

VVee

tAAtIte

tAt

At φ

),...,2,1,(

...!2

)(

2

1

22

niediage

e

e

ttIte

t

t

t

t

t

i ==

=

+Λ+Λ+==

−Λ

Λ

λλ

λ

φ

O

e tn

λ

O

Then for a given system has a system matrix A and a state vector X

The diagonal system matrix Ad and state Xd

21

1

1

1

1

1

1

;

DD

TCC

BVB

AVVA

matrixvectoreignVT

TT

ATTA

d

d

d

dd

d

====

====

=Λ=

xxxx

Page 82: Control System I EE 411 State Space Analysis

Example 2: find the transformation into diagonal form and the state transition matrix of example1

1

2

4

0

0

20

04

−Λ

−Λ

=

=

−=Λ

VVee

e

ee

tAt

t

t

t

= VVee

−=

−=

−−

14

12

0

0

24

11

6

1

24

11

0

0

24

11

2

4

1

2

4

t

t

At

t

t

At

e

ee

e

ee

Discus how to obtain the transformation matrix between two representation

Page 83: Control System I EE 411 State Space Analysis

Diagonal Canonical Form

٨٣

Page 84: Control System I EE 411 State Space Analysis

Alternative Form of the Condition for Complete State Controllability.

If the eigenvectors of A are distinct, then it is possible to find a transformation matrix

٨٤

If the eigenvectors of A are distinct, then it is possible to find a transformation matrix

P such that