Abstract
Fuzzy logic controllers (FLCs) are developed to
exploit human expert knowledge in designing control
systems. While the fuzzy rules are relatively easy to
obtain, fuzzy membership function (MF) tuning could be a
time consuming exercise. In this paper the particle
swarm optimization technique is employed to
automatically tune the MFs of a Mamdani-type of fuzzy
controller. The effectiveness of the proposed controller is
demonstrated by the control performance of such an FLC
of a nonlinear water tank system. The results are
compared favourably to a PSO tuned PID controller.
1. Introduction
Fuzzy logic controllers (FLCs) are developed to utilise
human expert knowledge in controlling various systems,
in particular those ill-defined and nonlinear systems [1]. It
is well known that while fuzzy rules are relatively easy to
derive from human experts, the fuzzy membership
functions (MFs) are difficult to obtain. Tuning of MFs is
a time consuming and often frustrating exercise.
To overcome these difficulties various techniques have
been reported to automate the tuning process of MFs. An
adaptive network based fuzzy inference system (ANFIS)
was introduced [2], where an adaptive neural network (NN)
was used to learn the mapping between the inputs and
outputs and a Sugeno-type of fuzzy system could be
generated based on the neural network. A quantum NN
was also used to learn the data space of a Tagaki-Sugeno
(TSK) fuzzy controller [3].
Genetic algorithm (GA) has been used in the automatic
design of fuzzy controllers [4] [5] in the areas of mobile
robotics. GA has been used in tuning both the fuzzy MFs
and the fuzzy rule bases.
The particle swarm optimization (PSO) was inspired
by the natural behaviour of animals in forming swarms [6],
978-0-7695-3490-9/08 $25.00 2008 IEEE
DOI 10.1109/PACIIA.2008.105
324
um (u)du
m (u)du
O
(6)
xg
tf
f ( x( k )) 2
(7)
t 0
Reference
input
Control
error
FLC
Plant
325
3. Simulation Results
3.1. A water tank system
To demonstrate the effectiveness of the proposed PSO
MF tuning method, a nonlinear system is used in
simulation. In particular, the system used is a water tank
level control system. The water tank system is shown in
Figure 3.
Qin
D1
h
h1
D2
0.05m
0.08m
0.015m
1.8510-4
2.8010-4m3
f mf ( x ) e ( x c )
/( 2 2 )
(9)
326
4. Discussions
MF
Level
Rate
Valve
After PSO
Mean (c )
STD ()
Mean (c )
high
-1
0.3
-0.86
0.01
ok
0.3
0.02
0.23
low
0.3
0.89
0.39
negative
-0.005
0.0015
-0.01
0.00
none
0.0015
-0.01
0.01
STD ()
positive
0.005
0.0015
0.01
0.00
closefast
-5
-5.45
1.87
closeslow
-3
-3.31
1.60
nochange
-0.01
1.60
openslow
3.20
1.68
openfast
5.39
1.99
327
5. Conclusions
In fuzzy logic controller design, the process of tuning
membership functions is a time consuming and often
frustrating exercise. In this paper an autonomous MF
tuning method in designing FLC is introduced to perform
tracking control of a nonlinear system. The results have
shown that the tuned FLC is performing satisfactorily
compared with a PID controller even when the PID is
tuned to perform in an optimal fashion. We are in process
of integrating the tuning of fuzzy rules into the FLC
design using the PSO.
References
[1] Lin C.T. and Lee C.S.G. (1996). Neural fuzzy systems.
Upper Saddle River, Prentice Hall, Inc.
328