0% found this document useful (0 votes)
18 views

lab reportالدردار

This lab report describes designing state feedback and output feedback control systems for a linear system using MATLAB and Simulink. For state feedback control, two methods are used: 1) implementing the system and feedback circuit using integrators and gain blocks, and 2) using a state-space block where the output is modified to be the system states. For both methods, the closed-loop system response is stable, meeting the desired pole specifications. Output feedback control is also designed, where an observer is used to estimate the system states based on the output. Both state and output feedback approaches result in stable closed-loop system responses when simulated in Simulink.

Uploaded by

hadel.adel.abed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

lab reportالدردار

This lab report describes designing state feedback and output feedback control systems for a linear system using MATLAB and Simulink. For state feedback control, two methods are used: 1) implementing the system and feedback circuit using integrators and gain blocks, and 2) using a state-space block where the output is modified to be the system states. For both methods, the closed-loop system response is stable, meeting the desired pole specifications. Output feedback control is also designed, where an observer is used to estimate the system states based on the output. Both state and output feedback approaches result in stable closed-loop system responses when simulated in Simulink.

Uploaded by

hadel.adel.abed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

University Of Tripoli-Faculty of engineering

Department of electrical and electronics

EE561 control and computer lab II

Feedback control for linear systems in state-space

Lab report

Name:‫هديل عادل عبيد‬

ID: 022171912

Date:25/5/2022

Supervisor:Dr.Mohamed Edardar

Spring 2022
 objectives:
1. to design a state feedback control system and simulate the response for open and closed
loop system
2. to use Matlab and Simulink in system analysis and design

 Introduction:
State variable feedback allows the flexible selection of linear system dynamics. Often, not all
state variables are available for feedback, and the remainder of the state vector must be
estimated.

State feedback involves the use of the state vector to compute the control action for specified
system dynamics. Figure 1.1 shows a linear system (A, B, C) with constant state feedback gain
matrix K.

Figure 1.1 state feedback control

Using the rules for matrix multiplication, we deduce that the matrix K is m × n so that for a
single-input system K is a row vector. The equations for the linear system and the feedback
control law are, respectively, given by the following equations:

x ( k +1 )= Ax ( k )+ Bu ( k )

y ( k )=Cx ( k )

u ( k ) =−kx ( k ) + v (k )

The two equations can be combined to yield the closed-loop state equation:

x ( k +1 )= Ax ( k )+ B [ −kx ( k )+ v ( k ) ]

¿ [ A−Bk ] x ( k ) + Bv ( k )

We define the closed-loop state matrix as


Acl = A−Bk

and rewrite the closed-loop system state–space equations in the form

x ( k +1 )= A cl x ( k )+ Bv ( k )

y ( k )=Cx(k)

The dynamics of the closed-loop system depend on the eigenstructure (eigenvalues and
eigenvectors) of the matrix Acl. Thus, the desired system dynamics can be chosen with
appropriate choice of the gain matrix K.

For many physical systems, it is either prohibitively costly or impossible to measure all the state
variables. The output measurements y must then be used to obtain the control u as shown in
Figure 1.2

Figure 1.2 output feedback control

The feedback control for output feedback is

u ( k ) =−ky ( k ) + v ( k )

¿−kCx ( k ) +v (k)

Substituting in the state equation gives the closed-loop system

x ( k +1 )= Ax ( k )+ B [ −kCx ( k ) + v ( k ) ]

¿ [ A−BkC ] x ( k ) +Bv (k)

Intuitively, less can be accomplished using output feedback than state feedback because less
information is used in constituting the control law. In addition, the postmultiplication by the C
matrix restricts the choice of closed-loop dynamics. However, output feedback is a more general
design problem because state feedback is the special case where C is the identity matrix[1].

We can determine the values of matrix k analytically or numerically using matlab.

Given the single- or multi-input system


ẋ= Ax+ Buand a vector p of desired self-conjugate closed-loop pole locations, place computes a
gain matrix K such that the state feedback u = –Kx places the closed-loop poles at the locations
p. In other words, the eigenvalues of A – BK match the entries of p (up to the ordering).

k = place( A , B , p) places the desired closed-loop poles p by computing a state-feedback gain


matrix K. All the inputs of the plant are assumed to be control inputs. The length of p must
match the row size of A

In this experiment a system is controlled using stare feedback and output feedback ,the system is
designed and implemented using simulation software matlab and matlab simulink ,and the
implementation is done it two methods .

 Experimental procedure:
The system described in state space as the following matrix :

A= |−20 31|B=|0 1|C=|1 0| D=0

And the desired poles at −3 ± 2i

1. State feedback control:


A. Method 1:
1. the circuit was connected using integrators and gain blokes from the simulink library

Fig.2.1 the implementation of the system

2. after running the simulation the response was shown in the scope block
Fig.2.2 response of the uncompensated system

3. in matlab command window the place command was used to find the gain matrix k

Fig.2.3 determining the values of matrix k

4. the state feedback circuit was implemented and connected to the system

Fig2.4 compensated system

5. the response after the simulation is shown in the scope


Fig2.5 response of compensated system

B. Method 2:
1. A state-space block is added and the parameters are added from the properties window.

We want the output of the block to be the states so we change the values of matrixes C and D
to [1 0 ;0 1] and [0;0] respectively

Fig3.1 the state-space block properties

2. A multiplexer was added and connected to the output of the block in order to add the
feedback circuit
Fig.3.2 compensated system

3. A demultiplexer is added to show the output response in the scope and compared to the
output from the first method

Fig.3.3 output of compensated system with both methods

2. Output feedback Control:


1. The observer gain matrix is found by running the command place and assigning the poles
five times further than the desired poles

Fig4.1 determining the values for the observer gain matrix

2. In Simulink, the following diagram implements a closed-loop estimator.(fig4.2)


Fig.4.2 Implementation in matlab Simulink

For the output feedback circuit

3. The output in shown in the scope block after running the simulation

Fig4.3 output of the system with output feedback control

 Discussion:

From the beginning we notice that the system is unstable and in need for control.

In the first part state feedback was used to change the dynamics of the system, two
methods in matlab simulink were used the first one using intergrators and gain to
implement the system ,after running the simulation we notice that the system has
become stable with the desired specification.

The second method is by using the state space block were we just insert the values
of our system matrixes, but in the second method the output of the block is not the
states and since this is state feedback we need our states in order to control the
system, therefor we changed the C matrix so the output is the states.

By comparing the output from both methods we find them to be identical ,which
was expected .

In the second part output feedback control was designed for the same system where
the values of the observer matrix was found and then implemented.

We notice that in output feedback we didn’t need the states to design the
compensator and obtain stability which is more efficient when the states of the
system are hard to measure.

 Conclusion:

State feedback and output feedback are a design approach for designing feedback
compensators for systems described in state-space model, both and are used to
obtain stability and a desired transient response, but state feedback uses the states
of the system while output feedback uses the output of the system for the
compensation.

 References:

[1] M. Sami Fadali, Antonio Visioli Digital Control Engineering Analysis and
Design.

You might also like