Professional Documents
Culture Documents
Swarm Optimization
Maurice Clerc
France Tt5lkom
12, av. de Chevene
74988 Annecy, France
maurice.cler@writeme.com
Un tr&r est cache dedans.
Je ne sais pas 1'endroft; mafs un peu de courage
Vous le fera trouver.
Le Laboureur et ses Enfants. Jean de La Fontaine I
Abstract- A very simple Particle Swarm Optimization Kennedy and Spears 1998; Shi and Eberhart 1998; Shi
iterative algorithm is presented, with just one and Eberhart 1998). Recently, a mathematical
equation and one sodaYconfidence parameter. We explanation, introducing a five dimensional space of
define a "no-hope"convergence criterion and a "re- states and some constriction coefficients for sure
hope" method so that, from time to time, the swarm convergence, has been found (Clerc and Kennedy
re-inltializes its position, according to some gradient submitted) but as there was still no sure way to choose a
estimations of the objective function and to the priori the best parameters, one of them (the
previous re-initialization (it means it has a kind of social/confidence coefficient q) is randomly modified at
very rudimentary memory). We then study two each time step. Also PSO is usually using a system of
different cases, a quite "easy" one (the Alpine two iterative equations, one for the positions and one for
function) and a "difRcult"one (the Banana function), the particles velocities, with several parameters. It gives
but both just in dimension two. The process is more "freedom" to the system but it is also then quite
improved by taken into account the swarm gravity difficult to find the best parameter values.
center (the "queen") and the results are good On the contrary, we present here a purely
enough so that it is certainly worthwhile trying the deterministic algorithm, with just one equation, one
method on more complex problems. confidence coefficient, and one "memory" parameter.
The core of what we could call a No-hope/Re-hope
method is an adaptive process freely inspired by the
1 All for one and one for all outer iteration procedure as described in (Niederreiter
Suppose you and your friends are looking for a treasure in and Peart 1986). At each time step we examine whether
a field. Each digger has an audio detector and can there is still "hope" to reach the objective and, if not, we
communicate to his n nearest neighbours the level of the reinitialize all positions around the best one, taking into
sound he heards and his own position. So each digger account the local shape of the objective function, a s it
knows whether one of his neighbours is nearer to the can be estimated by using the particles positions
objective than him and, if it is the case, can move more (previous and current), and function values. We also
or less towards this damned lucky guy, depending on how examine if the gravity center (the "queen") is itself in a
much he trusts him. So, all together, you may find the solution point: it does not cost much in processor time
treasure more quickly than if you were alone. Or suppose and it appears it sometimes greatly speeds up the
you and your friends are looking for the highest mountain convergence.
in a given country. You all have altimeters and can
communicate , etc ...
This kind of algorithm, called Particle Swarm
Optimization (PSO), has been first and is still largely
experimentally studied: it is indeed extremely efficient
(Eberhart and Kennedy 1995; Kennedy and Eberhart
1995; Kennedy and Eberhart 1997; Angeline 1998;
' Abittreasure is hidden inside I I don't know the place: but with a
of courage /You will find it.
The Ploughman and his Children. Jean de La Fontaine.
Equation 10
In particular, the maximum remaining possible flight
at time t i s
Equation 6 p.-
'IP-X(oJ(1-~)' i f v q q
If we know nothing about p nor x(O), a theoretical [F,.- =lP-X(OjQdl-d' ifcpEJq
estimation of the convergence time Ttheoris then (defining
Ax = %ax - Xmin ) Equation 11
. /4E\ If we define the diameter of the swarm by
e(t) max(i,,)$l,qD I - xj /
Equation 12
Equation 7
and by noting that we have
By plotting TIheorversus cp. we obtain a performance
curve. Figure 1 shows a typical one. Note that due to the
W) = I P - X(0)lll - VIf
hypothesis in Equation 5, we may in practice obtain a Equation 13
better performance curve with some particular objective
functions: the theoretical one is just a good guideline. an estimation of the space of search diameter at each
time step is then given by the formula
1952
fi = W t ) i f q q q
4 -(Zo,-1)8(t) ifo,EP,q
Equation 14
As we can see, it is decreasing.
Now let %mv be the gravity center of the swarm (see
the pseudo-code below for two possible definitions). We Equation 20
can have an idea of the local shape of the objective Of course, we suppose we have Q)re-hope(O)z 1
function by examining the values
(typically 1.1). In practice, in the examples below, each
A
-$,
. A X i ) -B(xgrsv) particle has its coordinates redefined by
4 xi -xgrav
Equation 15
Finally, we define our "no-hope'' criterion by writing Equation 21
the search space is too small (in the case, of course, we It means the new swarm position is quite similar to
_ _ gravity center)
have not found a solution yet, even in the the initial position, but usually "distorted" along some
N
i"
< 2 E ' , with E' dimensions.
1953
I I
6 Two examples
Equation 24
1954
~~ ~~
Equation 26
7 Results
We study here what happens when we are looking for
the (known) maximal value of the 2D-Alpine function on
[0,10]2, and the (known) minimal value of the 2D-
Banana function. In both cases the admissible error is
e=O.Ol. We try the 49 Q, values (0.02, 0.06 ,...,0.98), with
tmax= 400 and qre-hope( 0) = 1.05 . Figure 4 shows a
typical convergence sequence. It is interesting to note
how the swarm almost finds a solution in just two time
steps, but the solution area is so thin that it doesn't "see"
it, and so it has to slowly come back.
Some global performance curves are in Figure 5 (with
each Re-hope process counted a s a time step). We
1955
--t t=O
--t t=l
0,84 -
0,82 -
0,80 -
0,78
0,76 -
- -
-Solution
-
t54
t=5
t=6
t-7
are;
0,74 - - -- -- t=8
0,72 -
0,70 4
Figure 5. Performance curves for the 2D Alpine and Banana functions (weighted
gravity center)
1956
quality = 1- -
As the success ratio is simply 100% (which is not the
case, for example, by using a "classical" PSO with a
random q), it makes sense to globally compare the
curves to the theoretical one
converg. time-
Equation 27
converg. time
A -
converg. time
theoretical curve
1957