Why does my Transfer function overshoots
10 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Berker
el 3 de Mayo de 2024
Comentada: Sam Chak
el 4 de Mayo de 2024
syms s real
zeros = roots([0.075, 1, 1]);
poles = roots([1, 3, 5, 0]);
Gs = zpk(zeros, poles,1);
rlocus(Gs)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1685216/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1685221/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1685226/image.png)
As you can see, eventhough K=45.3 is on the root locus with damping coeff. 1 it still overshoots. What might cause this problem or am i doing something wrong ?
Respuesta aceptada
Paul
el 3 de Mayo de 2024
Editada: Paul
el 3 de Mayo de 2024
Define the plant
zeros = roots([0.075, 1, 1]);
poles = roots([1, 3, 5, 0]);
Gs = zpk(zeros, poles,1);
As was pointed out by @Sam Chak below, the plant model used in the root locus analysis is not the same as the plant model used in the Simulink model.
tf(Gs)
However, proceeding with this model is instructive, in my opinion.
Define the closed loop system check the poles
Gcl = feedback(45.3*Gs,1)
damp(Gcl)
Keep in mind that the information in the rlocus data tip only applies to the selected pole or selected complex conjugate pair, so it's important to select the dominant pole(s), as has been done in this case becasue the pole at s = -1.083 is effectively cancelled by the zero at s = -1.089. Essentially, the closed loop system is well-approximated the pair of poles at s = -23 and the zero at s = -12.24.
Gclapproximate = tf(45.3*[1 12.24],[1 47.22 557.9]);
If we ignore the effect of the zero at s = -12.24 we'd have
Gclnozero = tf(45.3*12.24,[1 47.22 557.9]);
Compare all three
step(Gcl,Gclapproximate,Gclnozero);
legend('true','approx','nozero')
As expected, the no-zero case has no overhsoot because it's basically the response of two, identical, real poles. The effect of an additional, real zero in the left-half plane is to speed up the step response and potentially give rise to overshoot. Consult a good textbook to understand why that is the case.
zeros = roots([0.075, 1, 1]);
poles = roots([1, 3, 5, 0]);
Gs = zpk(zeros, poles,0.075);
tf(Gs)
Or more simply
Gs = tf([0.075, 1, 1],[1, 3, 5, 0])
figure
Gcl = feedback(45.3*Gs,1)
step(Gcl)
This system has zeros and poles at
zpk(Gcl)
damp(Gcl)
The dominant poles are lightly damped, which one would see on the root locus for this plant, and then we'd have to account for the effect of the zero at s = -12.24 on the response.
3 comentarios
Más respuestas (1)
Sam Chak
el 4 de Mayo de 2024
Hi @Berker
I believe the design objective is to determine the gain from the root locus such that the response avoids exhibiting oscillatory behavior or maintains the percentage overshoot as low as possible without becoming overdamped. If the plant is given as follows,
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1685996/image.png)
then the design procedure can be referred to:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1686001/image.png)
%% Plant
zeros = roots([0.075, 1, 1]);
poles = roots([1, 3, 5, 0]);
Gp = zpk(zeros, poles, 0.075)
% Gp = tf([0.075, 1, 1], [1, 3, 5, 0]) % directly models the Plant
%% Check if the Gain is as accurate as shown in the data tip (rlocus)
[r, k] = rlocus(Gp);
idx = find(abs(imag(r(1,:)) < eps));
rlGain = k(idx(1))
%% True Control Gain
Gc = rlGain*(1/0.075);
%% Closed-loop system
Gcl = feedback(Gc*Gp, 1)
step(Gcl), grid on
1 comentario
Sam Chak
el 4 de Mayo de 2024
If following your original plant's zpk transfer function, you will still find the root locus gain to be around 45.3, and the same design procedure remains applicable.
%% Plant
zeros = roots([0.075, 1, 1]);
poles = roots([1, 3, 5, 0]);
Gp = zpk(zeros, poles, 1) % <-- k is 1
% Gp = tf([0.075, 1, 1], [1, 3, 5, 0]) % directly models the Plant
%% Check if the Gain is as accurate as shown in the data tip (rlocus)
[r, k] = rlocus(Gp);
idx = find(abs(imag(r(1,:)) < eps));
rlGain = k(idx(1))
%% True Control Gain
Gc = rlGain*(1/0.075);
%% Closed-loop system
Gcl = feedback(Gc*Gp, 1)
step(Gcl), grid on
Ver también
Categorías
Más información sobre Classical Control Design en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!