BEGIN
Initialize swarm
while (numFunctionEvaluations ≤ 10,000)
for each particle:
Calculate velocity and move
if (randomDouble < probFE)
Evaluate new position and update bests
end-if
end-for
end-while
END
Figure 1: Pseudocode for GR-PSO.
nalized Function P8 are multi-modal functions with
many local optima. The optimum (minimum) value
for all of these functions is 0.0. We randomly shifted
the location of the optima away from the center of
the search space in order to avoid the tendency of
PSO algorithms to converge to the center (Monson and
Seppi, 2005).
We tested each of these functions in 30 dimen-
sions. We used the gbest topology, in which the
neighborhood for each particle is the entire swarm,
for both GR-PSO and S-PSO. We fixed the number of
function evaluations at 10,000 and tested over a range
of number of particles (10, 20, 50, 100, 200) and a
range of values for probFE (0.9, 0.8, . . . , 0.1). We
measured the mean and standard deviation of the best
(lowest) function value found and the median error
every 2,000 function evaluations (to avoid the effect
of outliers).
A note on our choice of topologies: It seems likely
that GR-PSO works, at least in part, because, by de-
laying the discovery of new global bests, it weakens
the tendency of the gbest topology to produce early
convergence on a local minimum. Topologies with
smaller neighborhoods, such as the ring topology (in
which the particles can be viewed as being arranged in
a ring, and the neighbors of each particle are just the
two particles on either side of it) also improve per-
formance by slowing the propagation of the global
best. And, in fact, it was the case that, using the
ring topology, GR-PSO did not provide the same per-
formance gains over S-PSO as it did with the gbest
topology. Thus, it would seem that a more appro-
priate comparison would be between GR-PSO using
the gbest topology and S-PSO using the ring topology.
The improved performance of the ring topology over
the gbest topology, however, is obtained only with a
sufficient number of iterations and our limit of 10,000
function evaluations did not allow sufficient iterations
for the ring topology’s benefits to materialize. In fact,
while S-PSO with the ring topology outperformed S-
PSO with the gbest topology when 200,000 function
evaluations were allowed, S-PSO with the gbest topol-
ogy outperformed S-PSO with the ring topology when
only 10,000 function evaluations were allowed. For
this reason, we feel that the appropriate comparison
for GR-PSO with the gbest topology is still S-PSO with
the gbest topology, and we report those results.
Initial tests suggested that 10 particles are unable
to explore the space sufficiently, even given the addi-
tional iterations provided by a probFE of less than 1.0,
and that swarms of 100 or 200 particles reduce the
number of iterations (given the fixed number of func-
tion evaluations) to unacceptable levels, in spite of the
additional iterations provided by a probFE of less than
1.0. Thus, we confined further tests to 20-particle and
50-particle swarms. Initial tests of the S-PSO algo-
rithm over the same range of number of particles in-
dicated that 20-particle and 50-particle swarms were
best for that algorithm as well, for similar reasons.
Given a swarm with 20 or 50 particles, the im-
provement in performance was most pronounced at
or below a probFE of 0.5. The performance showed
a tendency to improve as probFE decreased, so we
tested two values below 0.1, i.e. 0.05 and 0.01. While
a probFE of 0.05 often produced results that were bet-
ter than those with a probFE of 0.1, a probFE of 0.01
was almost never better than a probFE of 0.05. In ad-
dition, since GR-PSO reduces the number of function
evaluations on each iteration by a factor of probFE,
the run time increases by a factor of 1/probFE, and the
additional run time with a probFE of 0.01 did not jus-
tify the occasional improvement in performance. The
best results for 20-particle and 50-particle swarms
were obtained with a probFE of 0.2, 0.1, or 0.05.
Thus, we show results for these six GR-PSO cases and
for S-PSO with 20 particles and 50 particles.
Results for the six versions of GR-PSO and the two
versions of S-PSO are presented in Table 1 and Fig-
ure 2. For each function, the results from the six GR-
PSO algorithms are followed by those from the two
S-PSO algorithms. The mean and standard deviation
of the lowest function value found are shown in Ta-
ble 1. To show the reduction in error during the run,
we report the median error at intervals of 2,000 func-
tion evaluations, also in Table 1. For each function, in
each column, the best result is in bold-face and is ital-
icized, and the two next best results are in bold-face.
In all cases, GR-PSO achieves the lowest av-
erage function value, and in all but three cases—
Rosenbrock ( f
2
), Ackley ( f
3
) and Rastrigin ( f
5
)—
the best three results are all achieved by GR-PSO.
With the exception of Ackley ( f
3
) and Rastrigin ( f
5
),
the algorithms with the best three average function
values also have the lowest standard deviations. In
three cases—Sphere ( f
1
), Griewank ( f
4
), and Penal-
IJCCI2013-InternationalJointConferenceonComputationalIntelligence
162