Sathyabama Final
Sathyabama Final
n
q=0
e(q)+(K
D
/T
s
)e(n)
U
PID
(n) =K
P
e (n) +K
I
T
s
n
q=0
e (q) + (K
D
/T
s
)
2
e(n)
In the above equations K
P
,K
I
,K
D
stands for the
proportional, integral and the derivative gains
respectively. The Membership Functions (MF) are
referred as MN, SN, LN, ZE, LP, SP, MP. The number
of rules that are framed are 9, instead of the actual 49
required. Thus the process is operated in such a way
that the error, which is the deviation between the Set
Point (SP) and the Process Variable that is attained.
1. IF (e is SP) AND (de is LP),THEN K
pid
is ZE
2. IF (e is MP) AND (de is LN),THEN K
pid
is SP
3. IF (e is SN) AND (de is SN),THEN K
pid
is LN
4. IF (e is SP) AND (de is LN), THEN K
pid
is ZE
5. IF (e is SP) AND (de is MP), THEN K
pid
is SP
6. IF(e is MP) AND (de is SN),THEN K
pid
is ZE
7. IF(e is MP) AND (de is SP), THEN K
pid
is LP
8. IF (e is SP) AND (de is MN),THEN K
pid
is SP
9. IF ( e is SP) AND(de is LP),THEN K
pid
is ZE.
The surface generated in the Mamdani Fuzzy
should be a linear as shown in Figure.5 for the two
input fuzzy structure as in Figure.6
Figure.5 Surface view of Mamdani Fuzzy
Figure.6 Two Inputs Fuzzy PID
The controller is simulated as in Figure 7 and the
corresponding responses are generated. The gain
values of K
PI
and K
PD
are 1.5 and 0.3 respectively.
4
Figure.7 Fuzzy PID controller model
C. ANFIS controller
The disadvantages of a FLC, slower response
for a high non-linear system, can be overcome by
adapting a Neuro-Fuzzy technique. The Neural
Network (NN) is used for high reliability and more
accuracy of the process, without affecting the stability
of the system even when the external disturbances tend
to impact the process. The ANFIS structure consists of
five layers[4] including a hidden layer, two inputs e and
e the input and output MFs, weighted average of the
output, as shown in Figure.8
The performance can be further improved by
adding the hidden layer neurons. The trained and tested
data outputs are the inputs of the ANFIS controller,
provided the testing error is obtained minimal.[5] The
number of rules used in this controller design is 7 and
the epochs are selected as the training is efficient, such
that the error in the output is substantially reduced for
any non-linearity obtained.
Figure. 8 ANFIS Structure
The Simulink model of the proposed controller is
obtained as in Figure 9, with the same structure as that of
a Fuzzy PID controller, but the difference is only the
structure of the Fuzzy and the ANFIS.
Figure.9 ANFIS controller model
Figure.10 Surface view of Sugeno Fuzzy for ANFIS
V. RESULTS AND ANALYSIS
The step response of all the controllers are obtained
and the performance analysis (t
r,
t
s
, M
p
) is determined .
The gains K
P
,K
I
,K
D
are calculated on the basis of error
and change in error.The ANFIS model obtains the
output of the FLC and thus the weighted average of the
output is calculated. Of all the controllers, the neuro-
5
fuzzy controller has a better response than the other two
controllers, as shown in Figure.11.
Figure.11 Response of all controllers
Table.1 provides a better view of the performance
analysis ( the rise time , peak overshoot , settling time)of
all the controllers .
Table.1 Performance analysis of Controllers
CONTROL %M
P
RISE
TIME
T
r,
sec
SETTLING
TIME,t
s
sec
CONV
PID
18 144 320
FUZZY PID 0 123 275
ANFIS 0 18 40
VI. CONCLUSION
By comparing the performance of the controllers,
the ANFIS controller has a faster settling time and rise
time. The controller also has high tolerance for
external disturbances that tend to act on the system ,
thus the stability of the non-linear process is
maintained for the given set point. Further, by adding
the hidden neurons, the ANFIS can be linearised for
the two input fuzzy controller.
REFERENCES
1. George K.I. Mann, Bao-Gang Hu,Raymond G.
Gosine , Analysis of Direct action fuzzy PID
controllers,IEEE transactions on systems, man
and cybernetics,VOL.29 No.3,June1999.
2. T.K.Radhakrishnan et al, Development and
tuning of Fuzzy controller for a conical level
system,IEEE transactions ,September 2004.
3. Nithya et al, Soft computing based controllers
Implementation for non-linear process in real
time, Proceedings Of The World Congress On
Engineering And Computer Science Vol II,2010
4. G.Shahghholian and A.Movahedi,Modeling and
controller design using ANFIS method for a Non-
linear liquid level system, International Journal
Of Information And Electronics
Engineering,Vol1,No.3,November 2011
5. T.Thyagarajan and V.R.Ravi , A Decentralized
PID Controller for Interacting Nonlinear
Systems, pgs 297-302,Proceedings Of ICETECT,
September 2011
6. Yajun Zhang et al. , A Nonlinear Control
Method Based on ANFIS and Multiple Models
for a class of SISO Nonlinear Systems and its
Application,IEEE Transactions Of Neural
Networks, Vol 22, Pgs 1783-1795 ,November
2011
7. Omar. F. Lufty et al., A Genetically Trained
Simplified ANFIS controller to Control Nonlinear
MIMO systems, pgs 349-355, Proceedings Of
ICECCE, June 2011