Chapter 8 State Space Analysis
Chapter 8 State Space Analysis
Reading assignment: Section 8.2 (page 536 to 545) 8.2.5 (page 551 to 554)
Why State-Variable Models Computer-aided analysis works better for state models than the transfer function approach. State variable model provide more internal information about the plant, allowing more complete control. Optimal (best) design procedures are mostly based on the use of state-variable models. The state variable models are required for digital simulation. System State Definition The state of a system is defined as The state of a system at any time t0 is the amount of information at t0 that, together with all inputs for t t0, uniquely defines the behavior of the system for all t t0.
(t ) = Ax (t ) + Bu (t ) x y (t ) = Cx (t ) + Du (t )
u(t) = input vector = (n 1) vector of input functions y(t) = output vector = (p 1) vector of defined outputs.
x ( t ) is the time derivative of x(t) x(t) is the state vector, an (n 1) vector of the states A is the system matrix, an (n n) matrix of the coefficients B is an (n r) input matrix where r is the number of inputs C = (p n) output matrix D = (p r) matrix representing direct coupling between the input and output. (Neglected)
State Equation
Initial Conditions
= Ax + Bu x y = Cx
+ +
1 = s
A
x = Ax + Bu y = Cx
solution response
Reference node
The system has two state variables, the inductor current (i) and the capacitor voltage (v). We can obtain the system equations by use of 1) mesh analysis, 2) nodal analysis, or 3) mixed (both) analysis. We would nor-mally choose mesh analysis since there is only one mesh; how-ever, we have a new constraint avoiding integrals. The results of each approach are given on the following page.
System Equations
Nodal Analysis Mesh Analysis Mixed v1 v IN 1 t t di di 1 + ( v v ) dt = 0 v IN + iR + L + v = 0 1 2 v IN + iR + L + idt = 0 R L 0 dt dt C 0 dv 2 1 t dv 1 t ( v v ) dt + C =0 v i + C =0 2 1 idt OUT = L 0 dt dt C 0
All three results are valid models but only the equations obtained from the mixed analysis can be represented as state equations in the standard form. The state equations are given below:
di R 1 1 = i v + v IN dt L L L dv i = dt C
This form is frequently used in digital simulation.
State Equations
The state equations, in standard form, for the series RLC circuit are:
R i L = 1 C v C vOUT = v
1 i 1 L + L vIN v 0 C 0
V2 =
This agrees with the previous results (the denominator of the trans-form).
d2y dy M +B + Ky = f (t ) 2 dt dt
d2y dy M = B Ky + f (t ) 2 dt dt
1 G(s) = Ms 2 + Bs + K Let x1 (t ) = y
1 = x2 x 2 = Bx2 Kx1 + f Mx
B K f 2 = x x2 x1 + M M M
1 0 x = k x 2 M y = [1 0] x 1 0 B x + 1 f M M
dy (t ) dx(t ) 1 (t ) x2 (t ) = = =x dt dt dx2 (t ) dy 2 (t ) 2 = x = dt dt 2
1 + k1 y 1 + k 2 y1 = u1 + k3u2 y
2 + k 4 y2 + k5 y 1 = k6u1 y
u1 & u2 are inputs, y1 & y2 are outputs. ki ; i=1,.6 are system parameters.
Simulation Diagram
Given
0 1 x( t ) = x( t ) + 8 2 y( t ) = [ 4 1] x;
1 u( t ) 1
Control canonical (Controllable) & Observer Canonical (Observable) Matrix A,B & C are constructed from the transfer function. Next - Examples
Y ( s) b2 s + b1s + b0 = 3 U ( s ) s + a2 s 2 + a1s + a0
2
b2 b1 b0 + 2+ 3 Y ( s) s = s s U ( s ) 1 + a2 + a1 + a0 s s2 s3
Y G = U 1 + GH
1 0 a1
0 x1 0 1 x2 + 0 u a2 x3 1
x1 b2 ] x2 + [ 0] u x3
Example
& 1 0 x1 0 x 0 1 x =0 x + 0 r & 0 1 2 2 & 3 x 6 26 8 x3 1 x1 y = [ 6 8 2 ] x2 + [0]r. x3 System controllable but not observable. Why? Ans: State model is based on controllable canonical form, this can be confirmed by another method later in the next lecture.
Y ( s) b2 s + b1s + b0 = 3 U ( s ) s + a2 s 2 + a1s + a0
2
b2 b1 b0 + 2+ 3 Y ( s) s = s s U ( s ) 1 + a2 + a1 + a0 s s2 s3
Y G = U 1 + GH
a X 1 2 X 2 = a1 a X 3 0
Y = [1 0 0]
1 0 X1 b 0 0 1 X 2 + b1 u 0 0 X3 b 2
0 X 1 X 2 = 0 a X 3 0 Y = [b 0 b1
b2 ]
1 0 a1
0 X1 0 1 X 2 + 0u a2 X3 1
a X 1 2 X 2 = a1 a X 3 0
Y = [1 0 0]
1 0 X1 b 0 0 1 X 2 + b1 u 0 0 X3 b 2
G(s) =
s +1 s +1 1 = 2 = (s + 1)(s + 3) s + 4s + 3 s + 3
Controllable canonical
Observable canonical
0 x = 3
1 0 x + u 4 1
0 = x 1
3 1 x + u 4 1
x 1 y = [1 1] x 2
x1 y = [ 0 1] x 2