Docsity

State Space Systems - Digital Control - Notes | ECE 147B, Study notes of Electrical and Electronics Engineering

Toggle sidebar
bg1
State-space systems
Representations: From transfer function to state-space.
Consider a linear, shift invariant, system:
P(z)
!!
u(k)y(k)
We can express this as a transfer function,
y(z)=P(z)u(z)= b(z)
a(z)u(z)
where a(z) and b(z) are polynomials, so,
P(z)=b(z)
a(z)=b0zm+b1zm−1+···+bm
zn+a1zn−1+···+an
.
For causal systems the order of b(z) is less than or equal to the order of a(z). So m≤nabove.
Assume for now that m < n,
Roy Smith: ECE 1 47b 8:2
State-space systems
Approach:
•Represent the plant, P(z) (or P(s)) as an nth order differential equation.
•Represent nth order differential equation as a 1st order matrix differential equation with
dimension n.
•Design methods now involve linear algebra.
•Easy to handle large systems (with Matlab).
•Easy to handle systems with multiple inputs and outputs.
•Easy to simulate systems.
x(k+ 1) = Ax(k)+Bu(k),
y(k)=Cx(k)+Du(k).
A,B,Cand Dcan be matrices. x(k) is a vector (state vector).
Roy Smith: ECE 1 47b 8:1
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download State Space Systems - Digital Control - Notes | ECE 147B and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

State-space systems

Representations: From transfer function to state-space.

Consider a linear, shift invariant, system:

! (^) P (z)!

y(k) u(k)

We can express this as a transfer function,

y(z) = P (z) u(z) =

b(z)

a(z)

u(z)

where a(z) and b(z) are polynomials, so,

P (z) =

b(z)

a(z)

b 0 z

m

  • b 1 z

m− 1

  • · · · + b (^) m

z n^ + a 1 z n−^1 + · · · + an

For causal systems the order of b(z) is less than or equal to the order of a(z). So m ≤ n above.

Assume for now that m < n,

State-space systems

Approach:

  • Represent the plant, P (z) (or P (s)) as an nth order differential equation.
  • Represent nth order differential equation as a 1st order matrix differential equation with

dimension n.

  • Design methods now involve linear algebra.
  • Easy to handle large systems (with Matlab).
  • Easy to handle systems with multiple inputs and outputs.
  • Easy to simulate systems.

x(k + 1) = A x(k) + B u(k),

y(k) = C x(k) + D u(k).

A, B, C and D can be matrices. x(k) is a vector (state vector).

Roy Smith: ECE 147b 8 : 1

State-space systems

Chain of delays:

Consider the first equation: ζ(z) =

a(z)

u(z)

We want to develop a chain of delay model to get ζ(k):

First step: Write the expression for n delays:

ζ(k) = z − 1 ζ(k + 1) . . .

ζ(k + n − 1) = z − 1 ζ(k + n)

In pictures ...

z − 1 z − 1 z

"!!! − 1 "

ζ(k) ζ(k + 1) ζ(k + n − 2) ζ(k + n − 1) ζ(k + n)

Second step: Express ζ(k + n) in terms of ζ(k),... , ζ(k + n − 1) and u(k).

State-space systems

Outline:

  1. Draw the system as an interconnected “chain of delays”,
  2. Relabel the signals in the system,
  3. Rewrite the input/output equations in terms of the new signals,
  4. Abbreviate the equations to a matrix form (state-space).

Drawing a digital system block diagram in terms of delays is exactly the same as drawing a

continuous system block diagram in terms of integrators.

Split the system,

b(z)

a(z)

"! "

y(z) ζ(z) u(z)

ζ(z) =

a(z)

u(z) and y(z) = b(z) ζ(z).

Roy Smith: ECE 147b 8 : 3

“Chain of delays” block diagram

b (^) m

b (^) m− 1

b (^0)

z − 1 z − 1

a 1

an− 1

an

(!!!!! ( )*

+,

)*

+,

" " )*

+,

" " )*

+,

"

!! )*

+,

$

!

$

u(k)

ζ(k + n − 1) ζ(k + n)

ζ(k + 1)

ζ(k + m)

y(k) ζ(k)

This could actually be constructed from shift registers, summers and multipliers.

State-space systems

Numerator term: y(z) = b(z) ζ(z)

Expanding the b(z) polynomial gives,

y(z) = b(z) ζ(z),

b 0 z

m

  • b 1 z

m− 1

  • · · · + b (^) m

ζ(z)

and in the time domain this is,

y(k) = b 0 ζ(k + m) + b 1 ζ(k + m − 1) + · · · + b (^) m ζ(k).

As m < n all of the signals ζ(k) to ζ(k + m) are available along to the top of the chain of

delays.

So y(k) is just a linear combination of signals from the previous block diagram.

Roy Smith: ECE 147b 8 : 7

State-space representations

Developing the matrix equations

Relabel our intermediate variables,

x 1 (k) = ζ(k + n − 1)

x 2 (k) = ζ(k + n − 2) . ..

x (^) n (k) = ζ(k)

Now work out what happens to each of them at time k + 1:

x 1 (k + 1) = ζ(k + n) = u(k) − (a 1 ζ(k + n − 1) + · · · + an ζ(k))

= u(k) − (a 1 x 1 (n) + · · · + an x (^) n (k))

x 2 (k + 1) = ζ(k + n − 2 + 1) = x 1 (k) . . .

x (^) n (k + 1) = ζ(k + 1) = x (^) n− 1 (k)

Now look at this as a matrix multiplication.

State-space representations

What if m = n?

Remove the highest order terms by polynomial division,

b(z)

a(z)

= d +

ˆb(z)

a(z)

Now d is a constant and

b(z) has order m − 1 < n.

We deal with

ˆb(z)

a(z)

exactly as before and then add the constant, d, to the result.

In pictures...

b(z)

a(z)

d

!!! '!

!

)*

+,

y(k) u(k)

Roy Smith: ECE 147b 8 : 9

State-space systems

Other domains:

Discrete time,

time invariant:

x(k + 1) = A x(k) + B u(k),

y(k) = C x(k) + D u(k)

Continuous time,

time invariant:

d x(t)

dt

= A x(t) + B u(t),

y(t) = C x(t) + D u(t)

Nonlinear,

time invariant:

d x(t)

dt

= f (x(t), u(t)),

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

Nonlinear,

time varying:

d x(t)

dt

= f (t, x(t), u(t)),

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

State-space systems

Equal numerator and denominator order case:

ˆb(z)

a(z)

d

!!! '!

!

)*

+,

y(k) ˆy(k) u(k)

We can calcuate the state-space representation for

b(z)

a(z)

x(k + 1) = A x(k) + B u(k),

y ˆ(k) = C x(k),

and as, y(k) = ˆy(k) + d u(k), we have,

x(k + 1) = A x(k) + B u(k),

y(k) = C x(k) + d u(k).

Roy Smith: ECE 147b 8 : 13

State-space examples:

Thermal system:

Suppose that T 1 (t) is the output of interest and e(t) and T 0 (t) are both inputs.

Now select state variables which will allow us to put this into the generic state-space matrix

equation form.

Try x(t) =

[

T 1 (t)

T 2 (t)

]

Then, rearranging gives,

d T 1 (t)

dt

−k (^12)

m 1 c 1

T 1 (t) +

k (^12)

m 1 c 1

T 2 (t)

d T 2 (t)

dt

k (^12)

m 2 c 2

T 1 (t) +

−k 12 − k (^20)

m 2 c 2

T 2 (t) +

k (^20)

m 2 c 2

T 0 (t) +

m 2 c 2

e(t)

So,

A =

d T 1 (t)

dt

d T 2 (t)

dt

= A

[

T 1 (t)

T 2 (t)

]

+ B

[

T 0 (t)

e(t)

]

, where A =

−k (^12)

m 1 c 1

k (^12)

m 1 c 1

k (^12)

m 2 c 2

−k 12 − k (^20)

m 2 c 2

State-space systems

Examples: A thermal control system:

Heater

terminals

e(t)

T (t)

T (t)

T (t)

2

0

1

T (^) i (t) temperature of volume i

e(t) energy into the volume 1

mi mass of volume i

ci specific heat for volume i

k (^) ij thermal conductance for i, j interface

We can derive the state-space representation directly from the thermal energy equations.

For volume 1: m 1 c 1

d T 1 (t)

dt

= k 12 (T 2 (t) − T 1 (t))

For volume 2: m 2 c 2

d T 2 (t)

dt

= −k 12 (T 2 (t) − T 1 (t)) − k 20 (T 2 (t) − T 0 (t)) + e(t)

Roy Smith: ECE 147b 8 : 15

State-space examples:

DC Motor connected to a rotational load

We are interested in the model from the input voltage, Vin , to the rotor angle, θ.

Exercise:

  1. How many states are required for this model?
  2. Derive a state-space representation.
  3. What are the poles of the system?