Section 8–4 / Design of PID Controllers with Computational Optimization Approach 5893.0000 1.0000 1.1469 2.7700
5.0000 0.8000 1.1485 2.2100
4.0000 0.9000 1.1497 2.3800
% Plot the response curve with the smallest overshoot shown in
sortsolution table.
K = sortsolution(1,1), a = sortsolution(1,2)
K =
3.2000
a =
0.9000
num = [4K 8Ka 4K*a^2];
den = [1 6 8+4K 4+8Ka 4K*a^2];
num
num =
12.8000 23.0400 10.3680
den
den =
1.0000 6.0000 20.8000 27.0400 10.3680
y = step(num,den,t);
plot(t,y) % See Figure 8–24.
grid
title('Unit-Step Response')
xlabel('t sec')
ylabel('Output y(t)')
000.20.40.60.811.21.42468
t secOutputy(t)Unit-Step ResponseFigure 8–24
Unit-step response
curve of the system
withK=3.2 and
a=0.9.