Академический Документы
Профессиональный Документы
Культура Документы
ELECTRICAL ENGINEERING
a
Department of Electrical and Computer Control Eng., Arab Academy for Science, Technology and Maritime Transport,
Cairo, Egypt
b
Department of Power and Machines Eng., Helwan University, Egypt
c
Department of Electrical and Computer Eng., Higher Technological Institute, 10th of Ramadan City, Egypt
KEYWORDS Abstract This paper presents a Particle Swarm Optimization (PSO) technique and bacterial
Brushless DC motor; foraging (BF) technique for determining the optimal parameters of (PID) controller for speed
PID controller; control of a brushless DC motor (BLDC) where the (BLDC) motor is modeled in simulink in
Matlab; Matlab. The proposed technique was more efficient in improving the step response characteristics
Particle Swarm as well as reducing the steady-state error, rise time, settling time and maximum overshoot.
Optimization; Ó 2013 Production and hosting by Elsevier B.V. on behalf of Ain Shams University.
Bacterial Foraging
Technique
instead of coil in the armature and so do not need brushes. In maintenance. In addition, brushless DC motor has the follow-
this paper a three-phase and two-pole BLDC motor is studied. ing advantages: smaller volume, high torque, and simple sys-
The speed of the BLDC motor is controlled by means of a tem structure. So it is widely applied in areas which needs
three-phase and half-bridge pulse width modulation (PWM) high performance drive [5].
inverter. Fig. 1 shows torque/speed characteristics with refer- Fig. 2 shows line to line voltage vab with respect to time, the
ence speed is 100 rpm, and this kind of motor not only has characteristics equations of a BLDC motor are described by
the advantages of DC motor such as better velocity capability Eqs. (1)–(4) [2] and Fig. 3 shows the three-phase currents of
and no mechanical commutator but also has the advantages of the stator.
AC motor such as simple structure, higher reliability and free
15
10
Torque (N.m)
-5
-10
0 20 40 60 80 100 120
Speed (rpm)
60
Line-Line voltage V ab
40
20
-20
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2
Time (Second)
30
Thre-phase currents (Ampere)
20
10
-10
-20
-30
0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1
Time (Second)
diðtÞ
mapp ðtÞ ¼ L þ R iðtÞ þ memf ð1Þ
dt E (s) Kp + K i / S + K d S
M (s)
memf ¼ kb xðtÞ ð2Þ
TðtÞ ¼ kt iðtÞ ð3Þ
Figure 5 Transfer function of PID controller.
dxðtÞ
TðtÞ ¼ J þ D xðtÞ ð4Þ
dt controller is shown in Fig. 5. The control system performs
where vapp(t) is the applied voltage, xðtÞ is the motor speed, L poorly in characteristics and even it becomes unstable, if im-
is the inductance of the stator, i(t) is the current of the circuit, proper values of the controller tuning constants and used. So
R is resistance of the stator, vemf is the back electromotive it becomes necessary to tune the controller parameters to
force, T is the torque of motor, D is the viscous coefficient, J achieve good control performance with the proper choice of
is the moment of inertia, kt is the motor torque constant, kb tuning constants [6].
is the back electromotive force constant, and Fig. 4 shows where:
the equivalent circuit of three-phase full-bridge power circuit
for (BLDC) motor drive. E(s) is error input signal, M(s) is manipulated output signal.
The motor used in simulation process has the next param- Kp is proportional gain, Ki is integral gain and Kd is deriv-
eter values as follows: ative gain.
PSO
BF
The updating procedure will drive the particle swarm to 5. Bacterial Foraging Optimization
move toward region with better fitness function and every par-
ticle is gathered around the point with the best fitness func- To tackle complex search problems of the real world, scientists
tions. In the proposed PSO method each particle contains have been drawing inspiration from nature and natural crea-
three members kp, ki and kd. It means that the search space tures for years. Optimization is at the heart of many natural
has three dimensions and particles must fly in a three dimen- processes like Darwinian evolution, group behavior of social
sional space. insects, and the foraging strategy of other microbial creatures.
According to the background of PSO and simulation of Natural selection tends to eliminate species with poor foraging
swarm of bird, Kennedy and Eberhart developed a PSO con- strategies and favor the propagation of genes of species with
cept. Namely, PSO is basically developed through simulation successful foraging behavior since they are more likely to enjoy
of bird flocking in three-dimensional space. The positive of reproductive success.
each agent is represented by xyz axes position and also the Since a foraging organism or animal takes necessary action
velocity is expressed by vx (the velocity of x-axis, vy (the to maximize the energy intake per unit time spent for foraging,
velocity of y-axis) and vz (the velocity of z-axis). Modification considering all the constraints presented by its own physiology
of the agent position is realized by the position and velocity such as sensing and cognitive capabilities, environment (e.g.,
information. density of prey, risks from predators, physical characteristics
Bird flocking optimizes certain fitness function. Each agent of the search space), the natural foraging strategy can lead
has known its best value so far (pbest) and its xyz position. to optimization and essentially this idea can be applied to solve
This information is analogy of personal experiences of each real world optimization problems. Based on this concept, Pas-
agent. Moreover, each agent knows the best value so far in sino proposed an optimization technique known as the Bacte-
the group (gbest) among pbests. This information is analogy rial Foraging Optimization Algorithm (BFOA) [10].
of knowledge of how the other agents around them have per- Recently, search and optimal foraging of bacteria have
formed. Namely, each agent tries to modify its position using been used for solving optimization problems. To perform
the following information: social foraging, an animal needs communication capabilities
and over a period of time it gains advantages that can ex-
– the current positions (x, y, z) ploit the sensing capabilities of the group. This helps the
– the current velocities (vx, vy, vz) group to predate on a larger prey, or alternatively, individ-
– the distance between the current positions and pbest uals could obtain better protection from predators while in
– the distance between the current position and gbest. a group [11].
The common type of bacteria is Escherichia coli (E. coli)
This modification can be represented by the concept of [11]. Its behavior and movement come from a set of six rigid
velocity. Velocity of each agent can be modified by the follow- spinning (100–200 r.p.s) flagella, each driven as a biological
ing equations [9]: motor. An E. coli bacterium alternates through running and
mkþ1
i ¼ w mki þ C1 rand1 ðpbesti ski Þ þ C2 rand2 tumbling, the chemotactic actions of the bacteria are modeled
as follows:
ðgbest ski Þ ð5Þ
where: – In a neutral medium, if the bacterium alternatively tumbles
and runs, its action could be similar to search.
pbest: particle best position of agent i – If swimming up a nutrient gradient (or out of noxious sub-
gbest: global particle best position of the group stances) or if the bacterium swims longer (climb up nutrient
vki : velocity of agent i at iteration k, w: weighting function gradient or down noxious gradient), its behavior seeks
Cj: correction factor, rand: random number between 0 and 1 increasingly favorable environments.
rand: random number between 0 and 1 – If swimming down a nutrient gradient (or up noxious
ski : current position of agent i at iteration k. substance gradient), then search action is like avoiding
unfavorable environments.
The following weighting function is usually utilized in (6):
wmax wmin Therefore, it follows that the bacterium can climb up
w ¼ wmax iter ð6Þ nutrient hills and at the same time avoids noxious sub-
itermax
stances. The sensors it needs for optimal resolution are
where: receptor proteins which are very sensitive and possess high
gain. That is, a small change in the concentration of nutri-
wmax: final weight, wmin: initial weight ents can cause a significant change in behavior. This is prob-
itermax: maximum iteration number, iter: current iteration ably the best-understood sensory and decision-making
number. system in biology [11].Mutations in E. coli affect the repro-
ductive efficiency at different temperatures, and occur at a
Using the above equation, a certain velocity, which gradu- rate of about 107 per gene per generation. E. coli occasion-
ally gets close to pbest and gbest can be calculated. The current ally engages in a conjugation that affects the characteristics
position (searching point in the solution space) can be modified of the population. There are many types of taxis that are
by the following equation: used in bacteria such as, aerotaxis (attracted to oxygen),
phototaxis (light), thermotaxis (temperature), magnetotaxis
Skþ1
i ¼ Ski þ Vkþ1
i ð7Þ (magnetic lines of flux) and some bacteria can change their
Optimal PID control of a brushless DC motor using PSO and BF techniques 395
120
Electrical rotor angular displacement (rpm)
100
80
60
Solid line (Black) PSO
Dash line (Red) Kp = 1
40
20
-20
0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04
Time (Second)
Figure 7 Step response of the closed loop system with PSO-PID controller using ITSE based fitness function and without PSO-PID controller.
120
Electrical rotor angular diplcement (rpm)
100
80
3.42 mSec.
60
40
20
-20
0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04
Time (Second)
X
s
are present in each bacterium, and h = [h1, h2 ,..., hp]T is a
jcc ðh; pðj;k; lÞÞ ¼ jcc ðh; hi ðj; k;lÞÞ
point in the p-dimensional search domain. dattractant,
i¼1
" !# xattractant, hrepellant, xrepellant are different coefficients that
X
s X
p
¼ dattractant exp xattractant ðhm him Þ
2 should be chosen properly.
i¼1 m¼1
" !# 6. Simulation results
X
s X
p
2
þ hreppelant exp xreppelant ðhm him Þ
i¼1 m¼1
Table 1 and Fig. 7 show step response parameters of the closed
loop system with PSO–PID controller using ITSE based fitness
ð9Þ
function and without PSO–PID controller. Figs. 8 and 9 show
where jcc(h, p(j, k, l)) is the objective function value to be added the effect of torque variation from (1–4) N m on the speed
to the actual objective function (to be minimized) to present a response at (t = 0.02) s. by using PSO–PID controller where
time-varying objective function, s is the total number of recovery time reaches the reference speed within (3.42 m s),
bacteria, p is the number of variables to be optimized that recovery time reaches the (4 N m) within (3.1 m s).where:
12
10
8
Torque (N.m)
3.1 mSec.
0
0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04
Time (Second)
120
Electrical rotor angular displacement (rpm)
100
80
60
20
-20
0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04
Time (Second)
Figure 10 Step response of the closed loop system with BF-PID controller using ITSE based fitness function and without BF-PID controller.
Optimal PID control of a brushless DC motor using PSO and BF techniques 397
120
80
4.29 mSec.
60
40
20
0
0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04
Time (Second)
12
10
8
Torque (N.m)
3.6 mSec.
0
0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04
Time (Second)
120
Elctrical rotor angular displacement (rpm)
100
80
40
20
-20
0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04
Time (Second)
Figure 13 Step response of the closed loop system with (PSO, BF) PID controller using ITSE based fitness function and without (PSO,
BF) PID controller.
398 H.E.A. Ibrahim et al.
No. of iterations = 100, Swarm size = 50, correction [2] Nasri M, Nezamabadi-pour H, Maghfoori M. A PSO--
factor = 2, based optimum design of PID controller for a linear
Weighting factor =R 1, ITSE (objective fitness function brushless DC motor. World Acad Sci, Eng Technol
used with PSO) = te2 dt. 2007(2):211–5.
[3] C.L.Lin, H.Y.Jan, Evolutionarily multiobjective PID control for
linear brushless DC motor, in: Proc. of IEEE Int. Conf .Industrial
Table 2 and Fig. 10 show step response parameters of the Elect. Society(3) Nov. 2002, pp. 2033-2038.
closed loop system with BF–PID controller using ITSE based [4] Ang K, Chong G, Li Y. PID control system analysis, design, and
fitness function and without BF–PID controller. Figs. 11 and technology. IEEE Trans Control Syst Technol 2005;13(July):
12 show the effect of torque variation from (1–4) N m on the 559–76.
speed response at (t = 0.02) s. by using BF–PID controller [5] X.Li.Q.Zhang, H.Xiao, The design of brushless DC motor servo
where recovery time reaches the reference speed within system based on wavelet ANN, in: Proceedings of IEEE Int. Conf.
(4.29 m s), recovery time reaches the (4 N m) within Machine Learning and Cybernetics(2) 26-29 Aug.2004, pp. 929-
(3.6 m s).where: 933.
[6] Nagaraj B, Subha S, Rampriya B. Tuning algorithms for PID
controller using soft computing techniques. IJCSNS Int J Comp
p (Dimension of the search space) = 3, s (total number of
Sci 2008;8(4):278–81.
bacteria) = 50, [7] Ker-Wei, Yu, Shang-Chang Hu, An application of AC
Nc(number of chemotactic steps) = 5, Ns (swimming servo motor by using particle swarm optimization based
length) = 4, sliding mode controller, in: Proceedings of IEEE Confer-
Nre (number of reproduction steps) = 10, ence on Systems, Man and Cybernetics(5), 8-11October
c(i) Size of the step = 8.0e007, 2006, pp. 4146-4150.
Ned (number of elimination-dispersal events) = 2 [8] L. Gao, H. Gao, C. Zhou, Particle swarm optimization based
ped (Elimination–dispersal probability) = 0.25. algorithm for machining parameter optimization, in: Proceedings
of the 5th World Congress on Intelligent Control and Automa-
Fig. 13 shows step response parameters of the closed loop tion(4) June 15-19, 2004, pp. 2867-2871.
[9] Huang Han, Qin Hu, Hao Zhifeng, Lim Andrew. Example-based
system with (PSO, BF) PID controller using ITSE based fitness
learning particle swarm optimization for continuous optimization.
function and without (PSO, BF) PID controller. Inform Sci 2012;182(1):125–38.
[10] Dasgupta SS, Das S, Abraham A, Biswas A. Adaptive compu-
7. Conclusion tational chemotaxis in bacterial foraging optimization: an anal-
ysis. IEEE Trans Eval Comput 2009;13(4):919–41.
In this work, a comparison study of using PSO and BFO meth- [11] Kim DH, Abraham A, Cho JH. A hybrid genetic algorithm and
bacterial foraging approach for global optimization. Inform Sci
ods for the tuning of PID controller for speed control of a
2007;177(18):3918–37.
BLDC motor. Obtained through simulation of BLDC motor,
the simulation results show that the proposed controller can
perform an efficient search for the optimal gains of PID con- H.E.A. Ibrahim, Associate Professor in Elec-
troller. By comparing between PSO method and BF technique, trical Engineering and Computer Control at
it shows that PSO method can improve the dynamic AAST. Research interests, intelligent systems,
performance of the system in a better way. MEMS, Embedded systems and pattern
recognition.
References