
312 16. Particle Swarm Optimization
16.4 Basic PSO Parameters
The basic PSO is influenced by a number of control parameters, namely the dimension
of the problem, number of particles, acceleration coefficients, inertia weight, neighbor-
hood size, number of iterations, and the random values that scale the contribution
of the cognitive and social components. Additionally, if velocity clamping or con-
striction is used, the maximum velocity and constriction coefficient also influence the
performance of the PSO. This section discusses these parameters.
The influence of the inertia weight, velocity clamping threshold and constriction co-
efficient has been discussed in Section 16.3. The rest of the parameters are discussed
below:
• Swarm size, n
s
, i.e. the number of particles in the swarm: the more particles
in the swarm, the larger the initial diversity of the swarm – provided that a
good uniform initialization scheme is used to initialize the particles. A large
swarm allows larger parts of the search space to be covered per iteration. How-
ever, more particles increase the per iteration computational complexity, and
the search degrades to a parallel random search. It is also the case that more
particles may lead to fewer iterations to reach a good solution, compared to
smaller swarms. It has been shown in a number of empirical studies that the
PSO has the ability to find optimal solutions with small swarm sizes of 10 to 30
particles [89, 865]. Success has even been obtained for fewer than 10 particles
[863]. While empirical studies give a general heuristic of n
s
∈ [10, 30], the op-
timal swarm size is problem-dependent. A smooth search space will need fewer
particles than a rough surface to locate optimal solutions. Rather than using
the heuristics found in publications, it is best that the value of n
s
be optimized
for each problem using cross-validation methods.
• Neighborhood size: The neighborhood size defines the extent of social inter-
action within the swarm. The smaller the neighborhoods, the less interaction
occurs. While smaller neighborhoods are slower in convergence, they have more
reliable convergence to optimal solutions. Smaller neighborhood sizes are less
susceptible to local minima. To capitalize on the advantages of small and large
neighborhood sizes, start the search with small neighborhoods and increase the
neighborhood size proportionally to the increase in number of iterations [820].
This approach ensures an initial high diversity with faster convergence as the
particles move towards a promising search area.
• Number of iterations: The number of iterations to reach a good solution is also
problem-dependent. Too few iterations may terminate the search prematurely.
A too large number of iterations has the consequence of unnecessary added
computational complexity (provided that the number of iterations is the only
stopping condition).
• Acceleration coefficients: The acceleration coefficients, c
1
and c
2
, together
with the random vectors r
1
and r
2
, control the stochastic influence of the cogni-
tive and social components on the overall velocity of a particle. The constants
c
1
and c
2
are also referred to as trust parameters, where c
1
expresses how much