Professional Documents
Culture Documents
Keywords
MF, MATLAB, SIMULINK, PSO, Fuzzy.
1. INTRODUCTION
For the tuning of the parameters of the membership
functions of a fuzzy controller a novel PSO algorithm has
been developed. The algorithm for the fuzzy controller has
been encoded in MATLAB but a block diagram strategy is Fig 1: Membership Functions and their Parameters
enabled to explain the algorithm. A SIMULINK model has
been used.The Plant used is an armature controlled DC Motor. As can be seen in Fig1 a1,b1,c1 corresponds to membership
Conventional controllers like PI and PID controllers fail in function Negative . a2,b2,c2 corresponds to membership
case of non linearities and may generate steady state error[1]. function Zero. a3, b3, c3 corresponds to membership function
In such a case a fuzzy controller is used which is basically a Positive. These parameters have to be tuned such that the
non-linear element whose parameters are tuned using Particle steady state error is zero. Again in this case a1 ,b1 and b3,c3
Swarm Optimization Technique (PSO) subject to the will be fixed since they deal with extreme or maximum errors
condition that steady state error is to be minimized. The or change in errors and b2 will be fixed and centred at zero.
quantity to be controlled is the speed of the DC Motor. Conditions like a1<b1<a2 and c2<b3<c3 also need to be
Therefore error in speed is to be minimized. PSO technique is satisfied. a2<c1 ; c1<b2; b2<a3; a3<c2. These conditions are
a very uncertain algorithm that may or may not converge to dealt with by the PSO algorithm to be explicated later. So it
the optimized values. Nevertheless we got optimistic can be seen that there are 8 parameters to be tuned. The PSO
simulation results. As such it could overcome the limitations algorithm is required to be discussed. The PSO is an
of conventional controllers[1]. optimization technique that optimizes a problem by
sequentially trying to improve the candidate solution. It does
2. FUZZY CONTROLLER AND PSO not guarantee an optimal solution[2]. There is a need to
A Fuzzy Controller is characterised by inputs and outputs. produce zero steady state error in speed by we optimising the
The inputs and outputs are correlated by Membership parameters of the fuzzy controller. In a way fixing the
Functions (MF). In this case there are two inputs 1) Error of objective function as a function of speed is not possible as it is
speed. 2) Change in Error of speed. not the output of the fuzzy controller. The output of the fuzzy
controller is voltage. But the voltage more precisely has a
dependence on the speed we want. So the objective function
should include voltage rather than speed . In other words the
37
International Journal of Computer Applications (0975 – 8887)
Volume 73– No.4, July 2013
38
International Journal of Computer Applications (0975 – 8887)
Volume 73– No.4, July 2013
39
International Journal of Computer Applications (0975 – 8887)
Volume 73– No.4, July 2013
Error in speed
-1.8 -1 -0.0567
-0.0630 0 0.1296
0.1143 1 1.8
Error in rate of speed
-1.8 -1 -0.0789
-0.0959 0 0.1279
0.0568 1 1.8
Error in speed
-1.8 -1 -0.0396
-0.218 0 0.1345
Fig 6: Speed Response for the parameters of Table 4
0.0745 1 1.8
Error in rate of speed
5. CONCLUSION
-1.8 -1 -0.0890 The PSO tuned Fuzzy controller was simulated on the plant.
-0.9800 0 0.4560 The plant was chosen to be an armature controlled DC Motor
with speed being the quantity to be controlled. The algorithm
0.0345 1 1.8 for tuning the paramaters of the membership functions of the
Fuzzy controller has been developed. The optimized
parameters so obtained is fed into the SIMULINK Block of
the fuzzy controller and results obtained for various Cases.
Steady error has been made zero. Response is oscillatory
because of presence of inductance in armature circuit. Fig. 3
shows the best response with very little overshoot.
6. ACKNOWLEDGEMENTS
We would like to thank Dr. Rajendra Prasad, Department. Of
Electrical Engineering, Indian Institute of Technology,
Roorkee, for constantly supporting and advising on our
project. Moreover we would like to thank Institute Computer
Cente, Indian Institute of Technology, Roorkee for providing
us the software MATLAB/SIMULINK without which the
project would not have been possible.
.
Fig 5: Speed Response for the parmeters of Table 3
40
International Journal of Computer Applications (0975 – 8887)
Volume 73– No.4, July 2013
7. REFERENCES
[1] S.K.Sinha, R.N. Patel, and R. Prasad “Application of GA [5] Dipraj, and Dr. A.K. Pandey, “Speed control of a D.C.
and PSO Tuned Fuzzy Controller for AGC of Three Area Servo Motor By Fuzzy Controller ,” International Journal
Thermal-Thermal-Hydro Power System” International of Scientific & Technology Research Volume 1, Issue 8,
Journal of Computer Theory and Engineering, Vol. 2, September 2012
No. 2 April, 2010 [6] Mehmet Cunkas, Omer Aydogdu “ Realization of Fuzzy
[2] Qinghai Bai “ Analysis of Particle Swarm Optimization”, Logic Controlled Brushless DC Motor Drives using
Computer and Information Science, February 2010 MATLAB/SIMULINK”, Vol.15, No.2, 2010
[3] Saeed Vaneshani and Hooshang Jazayeri-Rad, [7] J.V. de Oliviera “Semantic Constraints for membership
“Optimized Fuzzy Control by Particle Swarm function optimization”, IEEE transactions on Systems,
Optimization Technique for Control of CSTR,” World Man and Cybernetics, January 1999
Academy of Science, Engineering and Technology 59 [8] R.N. Patel, S.K.Sinha, and R. Prasad, “Design of a
2011 Robust Controller for AGC with Combined Intelligence
[4] Zwe-Lee Gaing, “A Particle Swarm Techniques,” World Academy of Science, Engineering
OptimizationApproach for Optimum Design of PID and Technology 21 2008
Controller” IEEE transactions on Energy Conversion, [9] The Wikipedia website. [Online]. Available:
Vol 19, No. 2, June 2004 http://www.wikipedia.org/
41
IJCATM : www.ijcaonline.org