Professional Documents
Culture Documents
E707 - Modern Control-2
E707 - Modern Control-2
STATE-SPACE CONCEPTS
In the modeling of systems in the classical
sense, we assume a cause and effect
relationship only
DRAWBACKS OF CLASSICAL CONCEPT OF
TRANSFER FUNCTION
Defined under zero initial conditions
Trial-and-error procedures
MODERN CONTROL SYSTEMS
STATE-SPACE CONCEPTS
IMPLICATIONS OF DRAWBACKS
Complex for MIMO systems
x1 xn
MODERN CONTROL SYSTEMS
STATE-SPACE CONCEPTS
In deriving a mathematical model for a physical
system one usually begins with a system of
differential equations.
We will call this system of differential
equations a state space representation.
The solution to this system is a vector that
depends on time and which contains enough
information to completely determine the
trajectory of the dynamical system.
This vector is referred to as the state of the
system, and the components of this vector are
called the state variables
MODERN CONTROL SYSTEMS
STATE-SPACE CONCEPTS
Advantages of using the state space
representation compared with the classical method
Ability to handle MIMO systems;
State system model includes the internal state
variables as well as the output variable;
State model provides a time-domain solution;
The form of the solution is the same as for a
single 1st-order differential equation;
Effect of initial conditions can be easily
incorporated in the solution;
The matrix/vector modeling is very efficient from
a computational standpoint for computer
implementation
MODERN CONTROL SYSTEMS
STATE-SPACE CONCEPTS
State space model: a representation of
the dynamics of an nth order system as a
first order differential equation in an n-
vector, which is called the state.
x Ax Bu
State Equation
y Cx Du
Output Equation
A=State Matrix (n x n)
B= Input Matrix (n x m)
C= Output Matrix (p x n)
D= Direct Transition Matrix (p x m)
MODERN CONTROL SYSTEMS
STATE-SPACE CONCEPTS
Find the state model of the ff D.E:
5 4 3 2
d y d y d y d y dy
4 5 6 4 3 3 2 2 3 y 4u
dt dt dt dt dt
NOTE: The number of state variables is
equal to the highest order of the
differential
MODERN CONTROL SYSTEMS
STATE-SPACE CONCEPTS
DERIVATION OF TRANSFER FUNCTION
FROM STATE MODEL
Recall:
x Ax Bu
y Cx Du
Assuming zero initial conditions and laplace
transforming:
sX ( s ) AX ( s ) BU ( s ) (1)
Y ( s ) CX ( s ) DU ( s ) (2)
MODERN CONTROL SYSTEMS
STATE-SPACE CONCEPTS
From (1):
X s sI A BU s
X s sI A BU s
1
(3)
Putting (3) into (2)
Y s C sI A BU s DU s
1
Y s C sI A B D U s
1
Y s
T s C sI A B D
1
U s
In matrix a lg ebra form
adjsI AB
T s C D
detsI A
MODERN CONTROL SYSTEMS
STATE-SPACE CONCEPTS
The adjoint of a matrix is found by replacing
each element by its co-factor and transposing
(interchanging rows and columns)
1 T
a11 a12 a13 c11 c12 c13
a a a
c21 c22 c23
21 22 23
a31 a32 a33 c31 c32 c33
c11 c21 c31
c12 c22 c32
c13 c23 c33
MODERN CONTROL SYSTEMS
STATE-SPACE CONCEPTS
ss2tf
U s
from the iuth input.
NOTE: iu must be specified for systems with
more than one input.
:•.
:
X 0 1 1 1
x u
25 4 0 1
Determine the transfer function of the system
1 0
y x
0 1
Determine
MODERN CONTROL SYSTEMS
STATE-SPACE CONCEPTS
tf2ss: Transfer function to state-space
conversion.
[A,B,C,D] = tf2ss(num,den)
Mc B AB ... An 1 B
is of FULL RANK i.e. it has n-linearly
independent columns
A system is completely state observable if:
C
CA
Mo
...
CA n 1
is of FULL RANK i.e. it has n-linearly
independent rows
MODERN CONTROL SYSTEMS
STATE-SPACE CONCEPTS
clc;
j=0.0106;
fo=0.00286;
km=1.168;
kb=1.168;
Ra=13.3;
La=3;
A=[-fo/j km/j;-kb/La -Ra/La];
B=[0;1/La];
C=[1 0];
D=0;
[num,den]=ss2tf(A,B,C,D)
Mc=[B A*B]
ans=det(Mc)
if (det(Mc)~=0)
'The System is Completely Controllable'
else
'The System is NOT Completely Controllable'
end
Mo=[C; C*A]
ans=det(Mo)
if (det(Mo)~=0)
'The System is Completely Observable'
else
'The System is NOT Completely Observable'
end
MODERN CONTROL SYSTEMS
STATE-SPACE CONCEPTS
The Gilbert’s Test gives a better physical
insight into SI LTI systems and involves
transforming the state model into a canonical
form.
It involves the following steps:
~
z z B u
y cMz
MODERN CONTROL SYSTEMS
STATE-SPACE CONCEPTS
If one of the state variables of the decoupled
differential equations is not added to any of the
system’s output, the corresponding mode is
termed UNOBSERVABLE
The response of that system is not visible from
any input
A system with no unobservable modes is said to
be ‘completely’ OBSERVABLE
MODERN CONTROL SYSTEMS
STATE-SPACE CONCEPTS
Determine whether the given system is
completely state controllable and/or state
observable using the Gilbert’s Test. Hence
determine the state equation in canonical form
1 0 1 1
X 0 1 1 x 0u
0 0 2 1
Y 1 1 2x
We can also use the CLI of Matlab to solve this
problem
MODERN CONTROL SYSTEMS
STATE-SPACE CONCEPTS
All control systems exhibit transient behaviour
(causing the output to deviate from the input
instantaneously) to certain degree before a
steady state is reached.
This is because inertia, mass, inductances which
are all energy storage devices are inherent in
physical systems.
Transient response is defined as that part of the
system response that goes to zero as time goes
to infinity while the steady state response
indicates where the system output ends up as
time approaches infinity.
MODERN CONTROL SYSTEMS
STATE-SPACE CONCEPTS
The response of a second order system
describing the transient and steady state
parameters: Peak Overshot, Settling Time,
Steady State Error, etc is as shown
MODERN CONTROL SYSTEMS
STATE-SPACE CONCEPTS
RESPONSE OF THE DC MOTOR TO A STEP SIGNAL
A step signal is one of the standard test signal
used to carry out mathematical and graphical
analysis of a control system.
Used to investigate the behaviour of a dynamic
system when the control problem under
investigation is a function of sudden
disturbance.
The values obtained from the response of the
system to a step signal are then compared with
the design/performance specifications
MODERN CONTROL SYSTEMS
STATE-SPACE CONCEPTS
The following Matlab program is used:
sys = ss(A, B, C, D)
t = 0:0.01:3
step(sys, t), title('Open loop Response')
NOTE: The stepinfo command can also be used to obtain Open loop Response
1 System: sys
Settling Time (sec): 1.65
0.8
Am plitude
System: sys
System: sys Final Value: 0.833
0.4
0.2
0
0 0.5 1 1.5 2 2.5 3
Time (sec)
MODERN CONTROL SYSTEMS
STATE-SPACE CONCEPTS
STATE TRANSITION MATRIX
(Solution of the State Equation)
Cayley-Hamilton Theorem
ilaplace
inv
exp
MODERN CONTROL SYSTEMS
STATE-SPACE CONCEPTS
CANONICAL TRANSFORMATION METHOD
It involves the following steps:
eig
inv
exp
MODERN CONTROL SYSTEMS
STATE-SPACE CONCEPTS
CAYLEY-HAMILTON THEOREM
f R
Q
q q
f Q q R
Where R(λ) is the remainder polynomial of the
form: R 0 1 2 ... n 1
2 n 1
j 0; j 0,1, ..., m 1
d k
It follows that:
d f
j
d R
j
j j ; j 0,1, ..., m 1
d k
d k
t 1 22 1 n n
e 1 t t ... t
converges for all finite2λ! and t. n!
It follows from this that the matrix power series
MODERN CONTROL SYSTEMS
STATE-SPACE CONCEPTS
Thematrix polynomial f(A)=eAt can be expressed
as a polynomial in A of degree (n-1) using the
technique presented
0 3
Ex: Find f A A for A
5
2 5
0 1
f A e for A
At
1 2
MODERN CONTROL SYSTEMS
STATE-SPACE CONCEPTS
STATE OBSERVER
1 2 0 1
X 2 1 1 x 2u
0
1 0 1
Y 0 0 2x
eye
poly
MODERN CONTROL SYSTEMS
STATE-SPACE CONCEPTS
2. We can also use the Ackermann’s formula
1
C 0
CA 0
. .
K e A .
.
n2
CA 0
CA n 1 1
And
s s 1 s 2 ...s n
where 1 ,..., n are the desired eigenvalues
MODERN CONTROL SYSTEMS
STATE-SPACE CONCEPTS
The full-order state observer is given by:
~
x A K eC ~
x Bu K e y
Ex:
eye
transpose (‘)
acker
MODERN CONTROL SYSTEMS
STATE-SPACE CONCEPTS
LINEAR QUADRATIC OPTIMAL REGULATOR
system u t K e xt
MODERN CONTROL SYSTEMS
STATE-SPACE CONCEPTS
This is in order to minimize the performance
J x Qx u Ru dt
index: * *
0
Where Q and R are positive definite matrices
(pdm) and account for the relative importance
of the errors
(u*Ru) accounts for expenditure of the energy
of the system.
q11 q12
NOTE: A given matrix Q
q q
is a pdm iff: 21 22
2
q12
q11 0; q12 q21; q22
q11
MODERN CONTROL SYSTEMS
STATE-SPACE CONCEPTS
It can be shown that: 1
Ke T* 1
T *
BP
K e R 1 B* P
The Reduced-Riccati Matrix (RRM) equation is
given by: A* P PA PBR 1 B* P Q 0
where: Q 1 0 0 1
; R 1; A
0
;B
0 2 0 0 1
u x2 x1
∫ ∫
-k
MODERN CONTROL SYSTEMS
STATE-SPACE CONCEPTS
To solve the problem in Matlab, we make
use of the following commands in the CLI:
lqr
MODERN CONTROL SYSTEMS
STATE-SPACE CONCEPTS
LYAPUNOV STABILITY xt
Consider a system: r
x f x
s
Three concepts of
sr
stability are consi-
dered with respect
s xt0
to non-linear systems
t Axt Bu t
For a linear system x
y t Cxt Du t
Suppose that u=0 and there exists two pdms P>0
and Q>0, it is stated thus:
“A linear system is asymptotically stable at the
origin iff given any symmetric, pdm Q, there
exists a symmetric pdm P which is the unique
solution of: AT P PA Q “
The choice of Q can be made arbitrarily (as far
as it is a pdm) but it is most common to set
Q=I, the identity matrix.
MODERN CONTROL SYSTEMS
STATE-SPACE CONCEPTS
The test of P’s positive definite status is
carried out using Sylvester’s theorem:
“The necessary and sufficient conditions for a
matrix P to be positive are that all successive
principal minors of P be positive”
P11 P12 P13
P P21 P22 P23
P31 P32 P33
P11 0
P11 P12
P 0
21 P22
detP 0
MODERN CONTROL SYSTEMS
STATE-SPACE CONCEPTS
Using the Liapunov Direct Method, determine the
stability-in-the-large of a system described by
the following: X Ax with 1 0
A
1 1