Automatic Control Systems Homework
Automatic Control Systems Homework
HOMEWORK #3
We have the same plant as in homework 2 but this time we will analyze the system
response using an LQR Controller and see if it satisfies Level 1 Handling Qualities.
With the cost function which we want to minimize and using Ricatti Equation
MATLAB will calculate the optimum trajectory with the inputted weighting matrices(Q,R)
and find the feedback gains associated with it.I want to control the slower modes and make
them faster such that they satisfy Level 1 Handling Qualities.Open loop eigenvalues are:
>> eig(A)
ans =
0.0667 + 0.2240i
0.0667 - 0.2240i
-0.3705
-0.3563
I want to intervene to the slower modes which are actually phugoid mode given by the
unstable eigenvalues.In this mode we have large amplitude variation of pitch angle,altitude
and air velocity.Pitch attitude and air velocity refers to W which is the vertical velocity in
longitudunal axis while pitch angle is represented by θ.Construction my weight matrix F,i will
assign them larger values to supress the diverging ossilations.For G matrix,for simplicty i will
assign idendity matrix.The weighting matrices are:
Q=[100 0 0 0;0 1 0 0;0 0 1 0;0 0 0 100]
Q =
100 0 0 0
0 1 0 0
0 0 1 0
0 0 0 100
R=1
R =
My LQR controller gains,S matrix and closed loop eigenvalues are found as:
[K,S,e]=lqr(A,B,Q,R)
K =
S =
1.0e+003 *
-10.7715
-0.2466 + 2.2193i
-0.2466 - 2.2193i
-0.3249
damp(e)
Observe that I moved my unstable conjugate eigenvalues to the LHS of s-plane and
their damping values(seen in red) do satisfy Level 1 qualities which were defined to be
My short period mode which is (-1.08e+001) also satisfies the short period
requirement which were defined to be:
TASK 2
In this task,we will analyze the response of our both open loop and closed loop
systems and simulate the response using SIMULINK.The logic behind this is simply this
equation:
a) Using state space block,i will input my matrices and see the response for 4 different
states.To input the desired input in specified time boundary i will use signal builder.I will give
δ = 0.0174 rad=1 degree
By using different sensor matrices(C) and arrange them as a row vector to get single
output for each state the following plots are obtained.
For u(longitudunal velocity) the following is obtained.
Anew=A-B*K
Anew =
Now inputting these matrix to my state space box,i will obtain the state responses as
following.
To see the steady-state response,i will now simulate the system for 50 seconds.
CONCLUSION