Professional Documents
Culture Documents
Time and Frequency Response Analysis of Fuzzy Controller: IEEE Member Asso. Prof., IEEE Member
Time and Frequency Response Analysis of Fuzzy Controller: IEEE Member Asso. Prof., IEEE Member
Time and Frequency Response Analysis of Fuzzy Controller: IEEE Member Asso. Prof., IEEE Member
=1.002 t
d
= 2.7
) 1 (
2
&
)
ln
2
( 1
1
2
2 ,
t
e
t
,
=
+
=
p
T
n
d
85 . 12 25 . 6 1 . 19
10 . 0
002 . 1 58 . 1
002 . 1 06 . 1
1 2
1
2
=
=
=
p p p
p
p
t t T
y M
y M
d
So
5208 . 0
) ) 3448 . 0 ( 1 85 . 12 (
2
3448 . 0
)
10 . 0 ln
2
( 1
1
2
2
=
=
=
+
=
t
e
t
,
n
Then we find the transfer function associated with the
value of and
n
27123 . 0 35914 . 0
27123 . 0
) (
) (
2
+ +
=
s s s R
s C
(9)
Output response for the above transfer function is
Figure.12Unitstepresponseofsystem
representedinEqn.9
2
2
1
1 &
1
tan
) ( ) 1
, e e
,
,
|
e
| t
=
n d
d
r
t RiseTime
Ravindra Bhat et al ,Int.J.Computer Technology & Applications,Vol 3 (3), 1159-1168
IJCTA | MAY-JUNE 2012
Available online@www.ijcta.com
1162
ISSN:2229-6093
n
s
p
d
p
t me SettlingTi
e M rshoot Maximumove
t PeakTime
,e
e
t
, ,t
1
) ( ) 4
) ( ) 3
) ( ) 2
2
1
=
=
=
rad 218 . 1
3448 . 0
) 3448 . 0 ( 1
tan
2
1
=
=
|
27 . 22
5208 . 0 3448 . 0
4
) 4
3617 . 0 ) 3
sec 427 . 6
4888 . 0
14 . 3
) 2
sec 93 . 3
4888 . 0
218 . 1 14 . 3
) 1
sec 4888 . 0 ) 3448 . 0 ( 1 5208 . 0
2
) 3448 . 0 ( 1 ) 14 . 3 3448 . 0 (
2
=
=
= =
= =
=
=
= =
s
p
p
r
d
t
e M
t
t
rad e
According to the theoretical calculation the transient
response parameters are as above and according to
simulation are
rise_time = 3.95, peak_time = 6.45
max_overshoot = 0.3154
settling_time = 21
3.1. b Steady State response
Now as can observe that control system is Type-1and
the steady state error for unit step input for Type-1 is
equal to zero[1][2] so e
ss
=0.
3.1. c Fuzzy Controller
Let us consider unit step response for Fuzzy with
Transfer function represented by Eqn.7
Then we will perform transient analysis [6]
From the Fig.13 first of all we will find the damping
ratio and natural frequency
n
.
Figure.13UnitstepresponseofFuzzysystem
We find that:
M
p1
= 1.022 M
p2
=1.0004
t
p1
= 1.6 t
p2
= 4.65
y
=1.002 t
d
= 2.65
) 1 (
2
&
)
ln
2
( 1
1
2
2 ,
t
e
t
,
=
+
=
p
T
n
d
05 . 3 6 . 1 65 . 4
08 . 0
002 . 1 022 . 1
002 . 1 0004 . 1
1 2
1
2
=
=
=
p p p
p
p
t t T
y M
y M
d
So
220 . 2
) ) 3728 . 0 ( 1 05 . 3 (
2
3728 . 0
)
08 . 0 ln
2
( 1
1
2
2
=
=
=
+
=
t
e
t
,
n
Then we find the transfer function associated with the
value of and
n
Ravindra Bhat et al ,Int.J.Computer Technology & Applications,Vol 3 (3), 1159-1168
IJCTA | MAY-JUNE 2012
Available online@www.ijcta.com
1163
ISSN:2229-6093
9284 . 4 6552 . 1
9284 . 4
) (
) (
2
+ +
=
s s s R
s C
(10)
2
2
1
1 &
1
tan
) ( ) 1
, e e
,
,
|
e
| t
=
n d
d
r
t RiseTime
n
s
p
d
p
t me SettlingTi
e M rshoot Maximumove
t PeakTime
,e
e
t
, ,t
1
) ( ) 4
) ( ) 3
) ( ) 2
2
1
=
=
=
rad 1887 . 1
3728 . 0
) 3728 . 0 ( 1
tan
2
1
=
=
|
833 . 4
220 . 2 3728 . 0
4
) 4
3373 . 0 ) 3
sec 525 . 1
059 . 2
14 . 3
) 2
sec 9484 . 0
059 . 2
1887 . 1 14 . 3
) 1
sec 059 . 2 ) 3728 . 0 ( 1 220 . 2
2
) 3728 . 0 ( 1 ) 14 . 3 3728 . 0 (
2
=
=
= =
= =
=
=
= =
s
p
p
r
d
t
e M
t
t
rad e
According to the theoretical calculation the transient
response parameters are as above and according to
simulation are
rise_time = 0.95, peak_time = 1.55
max_overshoot = 0.2826
settling_time = 4.8
4. Frequency Response Analysis
Frequency response analysis refers to response of the
system to input sine function.[1][2] We will use two
methods for representing Frequency response
analysis, first is Bode Plot which is same as step
response in time domain and other is Nyquist Plot
which will through light on absolute and relative
stability analysis.
4.1 Bode Plot Analysis for PID
It is graphical representation of system transfer
function in frequency area. It has two plots
magnitude plot and phase plot. For drawing first we
get the open loop transfer function in frequency
domain by replacing s by j. So we have G(j) from
Eqn. 9 as
e e
e
j j
j G
35914 . 0 ) (
27123 . 0
) (
2
+
=
(11)
1. Magnitude of resonance point (M
r
). It is maximum
value dimension in G(j). It is related to dimensions
of overshoot and damping ratio
.
2
1 2
1
, ,
=
r
M
54 . 1
) 3448 . 0 ( 1 3448 . 0 2
1
2
=
=
r
M
It also expresses relative stability if 1.0 < M
r
<1.4 i.e
0dB 3dB, it corresponds to effective damping ratio
0.4<<0.7 for satisfactory performance. If the value is
greater than 1.5 then multiple overshoot will be
available. [2]. But in this case <0.4.
2. Resonant Frequency (
r
) it is the frequency at
maximum resonant point and is related to natural
frequency
n
as
2
2 1 , e e =
n r
it indicates the
speed of response.
454 . 0 ) 3448 . 0 ( 2 1 5208 . 0
2
= =
r
e
3. Bandwidth (Bw) It indicates how the system traces
the sine wave. Greater the bandwidth better the high
frequency passes, it is related to rise time and in
general is proportional to response time. It is
recommended that M
r
should be small and
r
should
be high.[2]
7370 . 0
) 3448 . 0 ( 2 1 5208 . 0
) 3448 . 0 ( ) 3448 . 0 ( 4 2
4 2 2 1
2
4 2
4 2 2
=
+ =
+ =
+ + =
x Bw
x
Bw
n
, , , e
4. Gain & Phase Margin (Gm & Pm) Gain margin is
difference between gain magnitude and 0dB at phase
transit frequency
p
. Phase margin is difference
between the phase and -180 when gain is 0dB at
gain transit frequency
g
48 . 34 3448 . 0 100 100 = = , Pm
Ravindra Bhat et al ,Int.J.Computer Technology & Applications,Vol 3 (3), 1159-1168
IJCTA | MAY-JUNE 2012
Available online@www.ijcta.com
1164
ISSN:2229-6093
If the gain margin is negative below 0dB then it
indicates stability. Grater the better.
These margins indicate the margin gain and phase
has for system stability.
From simulation the values of M
r=
1.5449,
r=
0.4642,
Bw=0.7055, Gm=, Pm=37.80,
p=
&
g=
0.4629
are Bode plot is
Figure.14BodePlot
4.2. Bode Plot Analysis for Fuzzy
It is graphical representation of system transfer
function in frequency area. It has two plots
magnitude plot and phase plot. For drawing first we
get the open loop transfer function in frequency
domain by replacing s by j. So we have G(j) from
Eqn. 10 as
e e
e
j j
j G
6552 . 1 ) (
9284 . 4
) (
2
+
= (12)
1. Magnitude of resonance point (M
r
). It is maximum
value dimension in G(j). It is related to dimensions
of overshoot and damping ratio
.
2
1 2
1
, ,
=
r
M
445 . 1
) 3728 . 0 ( 1 3728 . 0 2
1
2
=
=
r
M
It also expresses relative stability if 1.0 < M
r
<1.4 i.e
0dB 3dB, it corresponds to effective damping ratio
0.4<<0.7 for satisfactory performance. If the value is
greater than 1.5 then multiple overshoot will be
available. [2]. But in this case <0.4.
2. Resonant Frequency (
r
) it is the frequency at
maximum resonant point and is related to natural
frequency
n
as
2
2 1 , e e =
n r
it indicates the
speed of response.
886 . 1 ) 3728 . 0 ( 2 1 220 . 2
2
= =
r
e
3. Bandwidth (Bw) It indicates how the system traces
the sine wave. Greater the bandwidth better the high
frequency passes, it is related to rise time and in
general is proportional to response time. It is
recommended that M
r
should be small and
r
should
be high.[2]
085 . 3
) 3728 . 0 ( 2 1 220 . 2
) 3728 . 0 ( ) 3728 . 0 ( 4 2
4 2 2 1
2
4 2
4 2 2
=
+ =
+ =
+ + =
x Bw
x
Bw
n
, , , e
4. Gain & Phase Margin (Gm & Pm) Gain margin is
difference between gain magnitude and 0dB at phase
transit frequency
p
. Phase margin is difference
between the phase and -180 when gain is 0dB at
gain transit frequency
g
28 . 37 3728 . 0 100 100 = = , Pm
If the gain margin is negative below 0dB then it
indicates stability. Grater the better.
These margins indicate the margin gain and phase
has for system stability.
From simulation the values of M
r=
1.445,
r=
1.873,
Bw=3.05, Gm=, Pm=40.53,
p=
&
g=
1.93 are
Bode plot is
Figure.15BodePlot
4.3 Stability Analysis by Nyquist Plot for PID
Nyquist stability criterion determines the stability of
closed loop system from its open loop frequency
response. It has two conditions for stability
[1][2][4][5]
Ravindra Bhat et al ,Int.J.Computer Technology & Applications,Vol 3 (3), 1159-1168
IJCTA | MAY-JUNE 2012
Available online@www.ijcta.com
1165
ISSN:2229-6093
i) If the nyquist contour for open loop system does
not encircle -1+j0 point then the close loop
system is stable.
ii) Along with the i) another condition is, there
should be no poles to right of the s-plane
Let us consider the open loop transfer function
represented by Eqn.11. The Nyquist plot for the same
is as
Figure.16Nyquistplot
The Nyquist stability criterion can also be expressed
as Z= N+P where
Z= is number of zeros in right- half plane of s-plane.
N= is number of encircles of -1+j0
P= is number of Poles in right- half plane of s-plane.
As it is clear from the Fig.14 that Z=0, P=0 & N=0.
So we can conclude that the system is stable.
Relative stability can also be analyzed; we observe
that as the plot moves towards -1+j0 it tends
towards instability. The relative stability can be
measured in terms of a &| . They refer to Gain
margin and Phase margin. The value a refers to the
point when the locus crosses the axis at 180 in this
a= -0.809 and the angle| refers to the angle the
locus forms with the axis. [2]
Figure.17PolarPlot
The gain margin Gm and phase margin Pm is
calculated as
}]
2 ) 1 4 (
1
{ 2 [ tan
] [
2 4
1
1
2 1
2 1
, ,
,
+
=
+
=
Pm
T T
T KT
Gm
In case when Gm = then Pm is the correct measure
of relative stability.
So we find Pm by putting the value of damping factor
in the formula
=
= + =
=
19 . 54
027 . 1 1 ) 3448 . 0 ( 4 (
}]
) 3448 . 0 ( 2
1
{ 3448 . 0 2 [ tan
4
2
1
Pm
x
x
Pm
From the Fig.17 we can calculate Pm as
= =
99 . 53
5878 . 0
809 . 0
tan
1
Pm
This value of Pm varies with value of K gain.
4.4 Stability Analysis by Nyquist Plot for Fuzzy
Nyquist stability criterion determines the stability of
closed loop system from its open loop frequency
response. It has two conditions for stability
[1][2][4][5]
iii) If the nyquist contour for open loop system does
not encircle -1+j0 point then the close loop
system is stable.
iv) Along with the i) another condition is, there
should be no poles to right of the s-plane
Let us consider the open loop transfer function
represented by Eqn.12. The Nyquist plot for the same
is as
Figure.18Nyquistplot
The Nyquist stability criterion can also be expressed
as Z= N+P where
Z= is number of zeros in right- half plane of s-plane.
Ravindra Bhat et al ,Int.J.Computer Technology & Applications,Vol 3 (3), 1159-1168
IJCTA | MAY-JUNE 2012
Available online@www.ijcta.com
1166
ISSN:2229-6093
N= is number of encircles of -1+j0
P= is number of Poles in right- half plane of s-plane.
As it is clear from the Fig.18 that Z=0, P=0 & N=0.
So we can conclude that the system is stable.
Relative stability can also be analyzed; we observe
that as the plot moves towards -1+j0 it tends
towards instability. The relative stability can be
measured in terms of a &| . They refer to Gain
margin and Phase margin. The value a refers to the
point when the locus crosses the axis at 180 in this
a= -0.755 and the angle| refers to the angle the
locus forms with the axis. [2]
Figure.19PolarPlot
Pm
T T
T KT
Gm
In case when Gm = then Pm is the correct measure
of relative stability.
So we find Pm by putting the value of damping factor
in the formula
=
= + =
=
53 . 40
037 . 1 1 ) 3728 . 0 ( 4 (
}]
) 3728 . 0 ( 2
1
{ 3728 . 0 2 [ tan
4
2
1
Pm
x
x
Pm
From the Fig.19 we can calculate Pm as
= =
6 . 49
624 . 0
755 . 0
tan
1
Pm
This value of Pm varies with value of K gain.
5. Conclusion
In this paper Time response and Frequency response
analysis is carried out theoretically and by simulation
for temperature control system using PID and Fuzzy
controller and the different parameters are calculated.
It is observed that both the systems are under damped
and Fuzzy controller performance is acceptably
enhanced compared to PID as rise time and settling
time is less signifying better speed, overshoot is also
less indicating less oscillations in output. Larger
bandwidth, Phase margin indicate higher frequency
operation ease, although gain margin is infinity buy
still stability be a constraint.
6. References
[1] Katsuhiko Ogata Modern Control Engineering 5
th
Ed. Pearson Prentice Hall, 2010, ISBN-978-81-203-
4010-7.
[2] I.J.Nagrath, M.Gopal Control System Engineering
5
th
Ed. New Age International Publishers,2010, ISBN
978-81-224-2008-7
[3] Curtis D.Johnson Process Control Instrumentation
Technology 8
th
Ed. Prentice Hall of India Pvt.Ltd.
2007, ISBN 978-81-203-3029-0
[4] D.Patranabis Principles of Process Control 2
nd
Ed.
Tata McGraw-Hill, ISBN 978-0-07-462333-6
[5] P.E.Welstead Introduction to Physical System
Modelling Electronic Ed., Academic Press Ltd. 2006,
ISBN 0-12-744380-0
[6] J.C.Basilio,S.R. Matos Design of PI & PID
controllers with transient performance specification,
IEEE, transactions on Education Vol.45-No.4,Nov
2002
[7] G.J.Silva- New results on the synthesis of PID
controller, IEEE, transactions on Automatic Control
Vol.47-No.2,Feb 2002
[8] Behnood Rahmani, Hamed Rafezi -Solving Fuzzy
Logic Problems With MATLAB
Table.1ComparisonofCalculatedandsimulatedoutputforPIDandFuzzyController
Ravindra Bhat et al ,Int.J.Computer Technology & Applications,Vol 3 (3), 1159-1168
IJCTA | MAY-JUNE 2012
Available online@www.ijcta.com
1167
ISSN:2229-6093
Parameter Time Response
Frequency
Response
PID Fuzzy PID Fuzzy
Cal Sim Cal Sim Cal Sim Cal Sim
Damping ratio () 0.3448 0.3728 - - - -
Rise Time (t
r
) 3.93 3.95 0.9484 0.95 - - - -
Peak Time (t
p
) 6.427 6.45 1.525 1.55 - - - -
Settling Time(t
s
) 22.27 21 4.833 4.8 - - - -
Max. Overshoot(M
p
) 1.3617 1.3154 0.337 0.2826 - - - -
Max. magnitude
(M
r
)
- - - - 1.54 1.54 1.44 1.44
Natural freq (
n
) 0.5208 2.220 - - - -
Resona
frequency(
r
)
- - - - 0.454 0.464 1.88 1.87
Bandwidth(Bw) - - - - 0.737 0.705 3.085 3.05
Phase Margin(Pm) - - - - 34.48 37.8 37.28 40.53
Gain Margin(Gm) - - - - - -
Cross over gain,
g
- - - - - 0.4629 - 1.93
Cross over phase,
p
- - - - - -
Stability - - - - Stability available Stability available
Relative Stability - - - - Yes, stable Constrained
Ravindra Bhat et al ,Int.J.Computer Technology & Applications,Vol 3 (3), 1159-1168
IJCTA | MAY-JUNE 2012
Available online@www.ijcta.com
1168
ISSN:2229-6093