0% found this document useful (0 votes)
48 views7 pages

EXP (5) - State Variable Feedback Design

The document discusses state variable feedback design for control systems. It defines state feedback control laws using state feedback gain matrices. It explains how state feedback control is represented using state-space models and block diagrams. It discusses how state feedback affects the closed-loop system matrix and characteristic equation. It defines controllability and observability matrices and explains how to check if a system is controllable or observable based on the rank of these matrices. MATLAB functions for analyzing controllability and observability are also presented. An example of designing a state feedback controller for a DC motor system is provided.

Uploaded by

بدون اسم
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views7 pages

EXP (5) - State Variable Feedback Design

The document discusses state variable feedback design for control systems. It defines state feedback control laws using state feedback gain matrices. It explains how state feedback control is represented using state-space models and block diagrams. It discusses how state feedback affects the closed-loop system matrix and characteristic equation. It defines controllability and observability matrices and explains how to check if a system is controllable or observable based on the rank of these matrices. MATLAB functions for analyzing controllability and observability are also presented. An example of designing a state feedback controller for a DC motor system is provided.

Uploaded by

بدون اسم
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

SET3 / EXP.

(5)
State Variable Feedback design

Select a control law of the form

…………………(A)

In equation (A), r(t) is a vector of desired state variable and (K) is referred to as the
state feedback gain matrix. Equation (Dynamic equation) and equation (A) are
represented in state variable block diagram form in figure (1) as shown below.

Substituting equation (A) into equation (Dynamic equation) gives

…………………….(B)

In equation (B) the matrix (A-BK) is the closed loop system matrix. For the system
described by equation (Dynamic equation), The characteristic equation is given by

……………………(C)

The roots of equation (C) are the open-loop poles or Eigen values . For the closed –
loop system described by equation (B) , The characteristic equation(B) is

…………………….(D)

The roots of equation (D) are the closed loop poles or Eigenvalues.
The simplest compensator, as you know, involves the pole placement technique.
Consider a system represented by the following state space equation

The control system Toolbox of MATLAB allows you to design the state feedback
controller for this mode which could be a SISO model or a MIMO model. The state
variables feedback for this system is a scale function that takes the form

Kx=[K1 K2 K3………Kn]
X1
X2
.
.
Xn

1
The block diagram of the system with state variables feedback is shown below

Fig. (1)

……………………………(1)

…..… ……………...……(2)
contains n linearly in dependent row or column vectors, i.e. is of rank n (that is
matrix is on non-singular ,i.e. the determinant is non –zero ). Equation (2) is called
the controllability matrix.

The system described by equation (1) is completely observable if the(n*n) matrix

……………………(3)

Is of rank n ,i.e. is non-singular having a non –zero determinant .Equation (3) is


called the observability matrix.

Example
The equation controllability matrix is:

Where

2
Hence

…………………………….(4)

Equation (4) is non-singular since it has a non-zero determinant. Also the tow row and
column vectors can be seen to be linearly independent, so it is of rank 2 and therefore
the system is controllable.
From equation

The Observability matrix is:

………..….(5)

Equation (5) is singular since it has a zero determinant. Also the column vectors are
linearly dependent since the second column is -5 times the first column and therefore
the system is unobservable.

Controllability and Observability play an important role in the analysis of SS models.


control system Toolbox offers functions to compute controllability and Observability
of the models as follows:

* For controllability,
Con=ctrb(a,b)
Returns the composite controllability matrix [Equation (2)]
Con=ctrb(ModelName)
Returns the composite controllability matrix of model with realization (a,b,c,d), which
is equivalent to ctrb(ModelName.a, ModelName.b)

3
*For Observability
Obs=obsv(a,c)
Returns the composite observability matrix [c]

Obs=obsv(ModelName)
Returns the composite observability matrix of Model with realization (a,b,c,d), which
is equivalent to obsv(ModelName.a, ModelName.c)
Where
ModelName …………is the name of the (SS)model under consideration

a,b,c …………. Are the system, input and output matrix of the (SS)model
under consideration.

*For SISO Models


Control system Toolbox has a built-in function, acker, based upon the Ackermann's
formula for designing State Feedback Controller for a SISO model. The syntax for
this function is:
K=acker(a,b,p)
Where
K…………………returns the feedback gain vector associated with the closed-loop
poles (P)

A&b……………. specifies 2D real valued system matrix of the SISO system under
consideration, which may be continuous or discrete

P…………………is the user – specified vector of desired closed-loop poles


The values of the feedback gain vector (K) so obtained, is such that the state feedback
(U=-KX) placed the closed-loop poles at the desired location given by (P)
Which nothing but the Eigen values of (a-bk). When the feedback gains vector (K) is
feedback along with the states X in the manner shown in figure (1), The system
exhibits desired performance.
Note that the states of the model are available for control of the model using feedback
technique, only if the system is fully controllable. Hence, the name state feedback
controller is given to this compensator.

Let us consider a few examples to have a better understanding


Example:
a=[0 1 0;0 0 1;-3 -5 -7];
b=[0;0;1];
c=[1 0 -1];
d=0;

4
solution:
modelG=ss(a,b,c,d);
Check whether the model is controllable
Con=ctrb(modelG);
Rank(con)
Returns

Ans=
3

Since the model is of third order and the rank of controllability matrix is also 3.
Hence, the states of the model are fully controllable and hence available for state
feedback control. Let us now design the state feedback controller for the model for
desired location of closed _loop poles given by vector (P)

P=[-2 -4 -6];
K=acker(a,b,P)
Returns
K=
45 39 5

The Check whether the model is observability


Obs=obsv(modelG);
Rank(Obs)
Example
A State-Space Controller for DC Motor
From the main problem, the dynamic equations in state-space form are the following:

With a 1 rad/sec reference added to the system, the design criteria are:
* settling time less than 2 seconds
* overshoot less than 5%
* steady-state error less than 1%

Assume the value of the following


*Electric resistance (R) =1 ohm
*Electric inductance (L) = 0.5 H
*Moment of inertia of the rotor (J) = 0.01 kg*m^2/s^2
*Damping ratio of the mechanical system (b) = 0.1 Nms
*Output (sigma dot): Rotating speed
*Input Current (i)
*Input (V): Source Voltage

5
Solution:
J=0.01;
b=0.1;
K=0.01;
R=1;
L=0.5;
A=[-b/J K/J;-K/L -R/L];
B=[0;1/L];
C=[1 0];
D=0;
ModelG=SS(A,B,C,D)

Designing the full-state feedback controller: Since both of the state variables in our
problem are very easy to measure (simply add an ammeter for current and a
tachometer for the speed), we can design a full-state feedback controller for the
system without worrying about having to add an observer.

Check whether the model is controllability


Con=ctrb(Model);
Rank(Con)
Returns
Ans=
2

Recall that the characteristic polynomial for this closed-loop system is the
determinant of (sI-(A-BK)) where s is the Laplace variable. Since the matrices A and
B*K are both (2x2) matrices, there should be 2 poles for the system. By designing a
full-state feedback controller, we can move these two poles anywhere we want them.
We shall first try to place them at (-5 + i) and (-5-i), (note that this corresponds to a
(zeta = 0.98) which gives (0.1% overshoot) and a (sigma = 5) which leads to a (1 sec
settling time). Once we come up with the poles we want, MATLAB will find the
controller matrix(K) for us. Simply add the following code to the end of your m-file

P=[-5+j -5-j];
K=acker(A,B,P);
t=0:0.01:3;
step(A-B*K,B,C,D,1,t)

Run your m-file in the command window, you should see the following plot

6
Question: -
Q1) What the means of the following: -
a. Controllability
b. Observability
c. Eigen value and Eigen vector
d. Rank of the matrix

Q2) A system is described by the matrix equation. Determine whether the


system is controllable and observable.
1.

2.

You might also like