Professional Documents
Culture Documents
State Variables PDF
State Variables PDF
State Variables PDF
1
Pole Placement Using State Feedback
• The state-space design method is based on the pole-placement
method and the quadratic optimal regulator method. The pole
placement method is similar to the root-locus method. In that we
place closed-loop poles at desired locations. The basic difference is
that in the root-locus design we place only the dominant closed loop
poles at the desired locations, while in the pole-placement method
we place all closed-loop poles at desired locations.
• The state variable feedback may be used to achieve the desired pole
locations of the closed-loop transfer function T(s).
• The approach is based on the feedback of all the state variables, and
therefore u = Kx.
2
State Variable Compensator Employing Full-State
Feedback in Series with a Full State Observer
.
x = Ax + B u
u x y
System Model C
Control Law +
x̂ Observer
-K
.
xˆ = Axˆ + Bu + Lyˆ -
C
Compensator
3
Controllability and Observability
• The concept of controllability and observability were
introduced by Kalman in 1960.
4
Controllability
• A system described by the matrices (A, B) can be said to be controllable
if there exists an unconstrained control u that can transfer any initial
state x(0) to any other desired location x(t). That means that over time,
some or all of the scalar time functions in u can be arbitrarily large in
magnitude.
.
x = Ax + Bu
[ ]
Pc = B AB A 2 B...A n -1 B (Controllability matrix P)
If Pc is nonzero, the system is controllable
5
Example of a Controllable system!
Y (s) 1
= T (s) = 3
U (s) s + a 2 s 2 + a1s + ao
0 1 0 0
.
x = 0 0 1 x + 0 u
- a0 - a1 - a 2 1
0 0 1
2
B = 0, AB = 1 , A B = - a 2
1 - a2 2
a 2 − a1 ( )
0 0 1
Pc = 0 1 - a2 Determinant of Pc is nonzero
1 - a2 (
a 22 − a1 ) 6
Continue..
• For a partially controllable system, if the uncontrollable modes are stable and
the unstable modes are controllable, the system is said to be stabilized. For
example such system
.
x1 = 1 0 x1 + 1 u
. 0 - 1 x 0
x 2 2
7
Observability
• All the roots of the characteristic equation can be placed where desired
in the s-plane if, and only if, a system is observable and controllable.
• Observability refers to the ability to estimate a state variable. Thus we
say a system may be observable if the output has a component due to
each state variable.
• A system is observable if, and only if, there exists a finite time T such
that the initial state x(t) can be determined from the observation history
y(t) given the control u(t). Consider the single-input, single-output
system .
x = Ax + Bu and y = Cx
This system is observable when the determinant of Q
is nonzero, where
C
CA
Q=
..
n-1
CA 8
Example of Observable System!
0 1 0
A= 0 0
1 andC = [1 0 0]
- a0 - a1 - a2
CA= [0 1 0] andCA2 = [0 0 1]
1 0 0
Q = 0 1 0 , DetQ =1, and thesystemis observable
!
0 0 1
9
Is this System Controllable and Observable?
.
x1 = 1 1 x1 + 0u
. - 2 - 1 x 1
x 2 2
x1
y = [1 0]
x2
0 1
Since the rank of the matrix [B AB] = is 2,
1 - 1
the system is fully state controllable
1 1
To test the observability condition, examine the rank of [C AC] = is 2,
0 1
the system is observable
10
Full-State Feedback Control System
to achieve the desired pole locations of the closed loop system
First we should assume that all the states are available for feedback
The system input u(t) is given by
u = -Kx
Determining the gain matrix K is the objective of the full-state
. design procedure
feedback
x = Ax + Bu
System Model
y x
Control Law
-K
11
The closed-loop system has no input. The objective is to maintain zero
output. Because of disturbances the output will deviate from zero. The
nonzero output will be returned to zero reference input because of the
state feedback scheme.
.
x = Ax + Bu; u = −Ku
.
x = Ax + Bu = Ax − BKx = ( A − BK )x
det(λI − ( A − BK )) = 0
If all the roots of the characteristic equation
lie in the left half - plane then the closed loop
system is stable.
x(t) = e ( A −BK )t x(t 0 ) → 0 as t → ∞
Given the pair ( A, B), we can determine K to place
all the system closed loop poles in the left half plane
if the system is completely controllable.
The addition of a reference input can be considered as
u (t ) = -Kx(t ) + Nr (t ) where r (t ) is the reference input.
When r (t ) = 0 for all t 〉 t 0 the control design problem is regular 12
Design of a Third Order System
d3y d2y dy
+5 +3 + 2y = u
dt 3 dt 2 dt
Select the state variables as : x1 = y; x2 = dy / dt ; x3 = d 2 y / dt 2
.
0 1 0 0
x = 0 0 1 x + 0 u = Ax + Bu
- 2 - 3 - 5 1
If the state variable feedback matrix K is : K = [k1 k 2 k3 ]and u = -Kx
.
x = Ax - BKx = (A - BK )x; The state feedback matrix is
0 1 0
[A - BK ] = 0 0 1
(-2 - k1 ) (-3 - k 2 ) (-5 - k3 )
The characteristic equation is Det [A - BK] = s 3 + (5 + k3 ) s 2 + (3 + k 2 ) s + (2 + k1 )
( )
Chose the desired characteristic equation : s 2 + 2ξωn s + ωn2 (s + ξωn );
Chose ξ = 0.8 for minimal overshoot. If we want a settling time equal to 1 s, then
4 4
Ts = = ≅ 1; If we chose ωn = 6, then we hav
ξωn 0.8ωn
(s 2 + 9.6s + 36)(s + 4.8) = s3 + 14.4s 2 + 82.1s + 172.8
Then we require k1 = 9.4; k 2 = 79.1; k3 = 170.8
The step response has no overshoot
13
Ackermann’s Formula
For a single-input, single-output system, Ackermann’s formula is useful
for determining the state variable feedback matrix
K = [k1 k 2 ....k n ]
u = -Kx
Given the desired characteristic equation
n n-1
q (λ ) = λ + α1λ + .... + α n
The state feedback gain matrix is
K = [0 0 ... 1]Pc-1q ( A)
q ( A) = A n + α1 A n −1 + ....α n −1A + α n I
14
Observer Design
If the system is completely observable with a given set of outputs, then
it is possible to determine or estimate the states that are not directly
measured
u y
15
The goal of the observer is to provide an estimate xˆ so that
xˆ → x as t → ∞.
We do not know x(t 0 ) precisely; we should provide an intial
estimate xˆ (t 0 ) to the observer. The observer estimation error is
e(t ) = x(t ) - xˆ (t ). The observer design should produce e(t ) → 0 as
t → ∞.
Take the time derivative of the estimation error of the previous equation
. . .
e = x- xˆ
.
xˆ = Ax + Bu + L( y − Cxˆ )
.
e = Ax + Bu − Axˆ − Bu − L( y − Cxˆ )
.
e(t ) = ( A − LC)e(t )
e(t ) → 0 as t → ∞ as Det(λI - ( A - LC)) = 0
has its all roots in the left half plane.
16
E11.3: A system is described by the matrix equation. Determine
whether the system is controllable and observable.
. 0 1 0
x= x + u; y = 2 x 2
0 - 3 1
0 1
Pc = [B AB] =
1 - 3
Since Pc is not equal to zero, the system is controllable.
The observability matrix is
C 0 2
Q= =
CA
0 - 6
Since Det Q is equal to zero, therefore the system is unobservable!
17
E11.4: A system is described by the matrix equation. Determine
whether the system is controllable and observable.
- 4 0 0
x = x + u; and y = x1
0 -1 1
First find the controllability matrix
0 0
Pc = [A AB] =
1 - 1
Since Det Pc = 0, the system is uncontrollable.
The observability matrix is
C 1 0
Q= =
CA
- 4 0
Since Det Q = 0, the system is unobservable.
18