Docsity

Notes on State Space, Lecture notes of Control Systems

Toggle sidebar
bg1
1 State-Space Canonical Forms
For any given system, there are essentially an infinite number of possible state
space models that will give the identical input/output dynamics. Thus, it
is desirable to have certain standardized state space model structures: these
are the so-called canonical forms. Given a system transfer function, it is
possible to obtain each of the canonical models. And, given any particular
canonical form it is possible to transform it to another form. Consider the
system defined by
(n)
y+a1
(n−1)
y+...+an−1˙y+any=b0
(n)
u+b1
(n−1)
u+...+bn−1˙u+bnu
where uis the input, yis the output and (n)
yrepresents the nth derivative of
ywith respect to time. Taking the Laplace transform of both sides we get:
Y(s)sn+a1sn−1+...+an−1s+an=U(s)b0sn+b1sn−1+...+bn−1s+bn
which yields the transfer function:
Y(s)
U(s)=b0sn+b1sn−1+...+bn−1s+bn
sn+a1sn−1+...+an−1s+an
(1)
Given the a system having transfer function as defined in (1) above, we will
define the controllable canonical and observable canonical forms.
1.1 Controllable Canonical Form
The controllable canonical form arranges the coefficients of the transfer func-
tion denominator across one row of the Amatrix:
˙x1
˙x2
.
.
.
˙xn−1
˙xn
=
0 1 0 ... 0
0 0 1 ... 0
.
.
..
.
..
.
.....
.
.
0 0 0 ... 1
−an−an−1−an−2... −a1
x1
x2
.
.
.
xn−1
xn
+
0
0
.
.
.
0
1
u
y=bn−anb0bn−1−an−1b0. . . b1−a1b0
x1
x2
.
.
.
xn−1
xn
+b0u
1
pf3
pf4
pf5

Partial preview of the text

Download Notes on State Space and more Lecture notes Control Systems in PDF only on Docsity!

1 State-Space Canonical Forms

For any given system, there are essentially an infinite number of possible state

space models that will give the identical input/output dynamics. Thus, it

is desirable to have certain standardized state space model structures: these

are the so-called canonical forms. Given a system transfer function, it is

possible to obtain each of the canonical models. And, given any particular

canonical form it is possible to transform it to another form. Consider the

system defined by

(n) y + a 1

(n−1) y +... + an− 1 y˙ + any = b 0

(n) u + b 1

(n−1) u +... + bn− 1 u˙ + bnu

where u is the input, y is the output and

(n) y represents the n

th derivative of

y with respect to time. Taking the Laplace transform of both sides we get:

Y (s)

s

n

  • a 1 s

n− 1 +... + an− 1 s + an

= U(s)

b 0 s

n

  • b 1 s

n− 1 +... + bn− 1 s + bn

which yields the transfer function:

Y (s)

U(s)

b 0 s

n

  • b 1 s

n− 1 +... + bn− 1 s + bn

sn^ + a 1 sn−^1 +... + an− 1 s + an

Given the a system having transfer function as defined in (1) above, we will

define the controllable canonical and observable canonical forms.

1.1 Controllable Canonical Form

The controllable canonical form arranges the coefficients of the transfer func-

tion denominator across one row of the A matrix:

       x ˙ 1

x ˙ 2

. . .

xn˙− 1

x ˙n

−an −an− 1 −an− 2... −a 1

x 1

x 2

. . .

xn− 1

xn

u

y =

[

bn − anb 0 bn− 1 − an− 1 b 0... b 1 − a 1 b 0

]

x 1

x 2

. . .

xn− 1

xn

  • b 0 u

The controllable canonical from is useful for the pole placement controller

design technique.

Example 1.1. Consider the system given by

U(s)

Y (s)

s + 3

s^2 + 3s + 2

Obtain a state space representation in controllable canonical form.

By inspection, n = 2 (the highest exponent of s), therefore a 1 = 3, a 2 = 2,

b 0 = 0, b 1 = 1 and b 2 = 3. Therefore, we can simply write the state space

model as follows:

[ x˙ 1

x ˙ 2

]

[

] [

x 1

x 2

]

[

]

u

y =

[

]

[

x 1

x 2

]

1.2 Observable Canonical Form

The observable canonical form is defined in terms of the transfer function

coefficients of (1) as follows:

       x ˙ 1

x ˙ 2

. . .

xn˙− 1

x ˙n

0 0... 0 −an

1 0... 0 −an− 1

. . .

0 0... 1 −a 1

x 1

x 2

. . .

xn− 1

xn

bn − anb 0

bn− 1 − an− 1 b 0

. . .

b 1 − a 1 b 0

u

y =

[

]

x 1

x 2

. . .

xn− 1

xn

  • b 0 u

Note the relationship between the observable and controllable forms:

Aobs = A

T cont

Bobs = C

T cont

Cobs = B

T cont

Dobs = Dcont

The transfer function of the system can be re-written with the denomi-

nator factored as follows:

U(s)

Y (s)

s + 3

s^2 + 3s + 2

s + 3

(s + 1)(s + 2)

therefore p 1 = 1 and p 2 = 2. Trivially, the partial fraction expansion of the

denominator gives c 1 = 2 and c 2 = 1 and the diagonal from model can be

written as: [ x˙ 1

x ˙ 2

]

[

] [

x 1

x 2

]

[

]

u

y =

[

]

[

x 1

x 2

]

1.3.1 Time Domain Solution of Diagonal Form

A useful result of the diagonal form model is that the state transition matrix

Φ(t) = e

At is easily evaluated without resorting to involved calculations:

A =

−p 1... 0

−p 2... 0

.. .

0 −pn

     e

At

e

−p 1 t 0

e

−p 2 t

0 e

−pn

This greatly simplifies the task of computing the analytical solution to the

response to initial conditions.

1.4 Jordan Form

The Jordan form is a type of diagonal form canonical model in which the poles

of the transfer function are arranged diagonally in the A matrix. Consider the

case in which the denominator polynomial of the transfer function involves

multiple repeated roots:

Y (s)

U(s)

b 0 s

n

  • b 1 s

n− 1 +... + bn− 1 s + bn

(s + p 1 )^3 (s + p 4 )(s + p 5 )... (s + pn)

The denominator polynomial can be rewritten by partial fraction expansion

as follows:

b 0 +

c 1

(s + p 1 )

3

c 1

(s + p 1 )

2

c 1

s + p 1

c 2

s + p 2

cn

s + pn

Then the Jordan canonical form state space model can be written as follows:

x ˙ 1

x ˙ 2

x ˙ 3

x ˙ 4

. . .

x˙n

−p 1 1 0 0... 0

0 −p 1 1

0 0 −p 1 0... 0

0... 0 −p 4 0

. . .

0... 0 0 −pn

x 1

x 2

x 3

x 4

. . .

xn

u

y =

[

c 1 c 2... cn

]

x 1

x 2

. . .

xn

  • b 0 u

1.5 State-Space Modeling with MATLAB

MATLAB uses the controllable canonical form by default when converting

from a state space model to a transfer function. Referring to the first exam-

ple problem, we use MATLAB to create a transfer function model and then

convert it to find the state space model matrices:

>>num = [1 3]; % numerator polynomial

>>den = [1 3 2]; % denominator polynomial

>> [A,B,C,D] = tf2ss(num,den) % Matrices of SS model

A =

B =

we can generate the observable and controllable models as follows:

>>A = [0 1; -2 -3]; % our controllable form

>>B = [0;1];

>>C = [3 1];

>>D = 0;

>>csys = ss(A,B,C,D); % create the controllable canonical model

>>osys = ss(A’,C’,B’,D); % create the observable canonical model

Caution should be taken when using the MATLAB canon() command, which

is a method for converting amongst the canonical forms. MATLAB produces

valid alternative canonical forms, but they are not the same as the defini-

tions used in our textbook. In MATLAB the companion form is similar to

the observable canonical form, and the modal form is similar to the diagonal

form. They will all produce exactly the same input to output dynamics, but

the model structures and states are different.