16 Agent-Based Modeling and Simulation with Swarm
• Tournament selection
Tournament selection is w idely used in EAs. The selection rate in
roulette selection is determined by the absolute value of fitness. How-
ever, the selection pressure may become too high or too low with roulette
selection in problems where the hierarchy of fitness is important but the
absolute value is not. Tourna ment selection uses only the hierarchy of
fitness; therefore the ab ove problem does not occur. The computational
cost of tournament selection is high beca use many individuals are se-
lected and fitness values are compared for the number of tournaments.
• Truncate selection
Individuals are sorted based on fitness and the top P
s
× M individuals
(P
s
is the selection rate) are selected in truncate selection. The selection
pressure is very high; therefore this method is not used in standard GP,
but is often used in the estimation of distribution algorithm (EDA),
which is an expansion o f the GA. The computation cost of this method
besides the cost for sorting is ver y low.
Selection significantly influences the diversity of the population and the
sp e e d of convergence; therefore the choice of the selection algorithm and its
parameters is very impor tant. For instance, good solutions are often observed
with a small number of fitness evaluations by using tournament selection be-
cause the selection pressure is very high with a large tournament size. However,
the calculations are more likely to quickly converge to and be trappe d in an
inappropriate local solution.
A different strategy is elitist selection (good individuals are always included
in the next ge neration). The fitness of the bes t individual never decreases in
this strategy with increasing number of genera tions if the environment against
which fitness is measured does not change. However, using elitist selection too
early in a search may result in a loc al solution, or premature convergence.
2.2.3 Genetic operations
When reproduction occurs, the o perators shown in Fig. 2.2 are applied to
the selected GTYPE to generate a new GTYPE for the subsequent generation.
These ope rators are called GA operators. To keep the explanation simple,
we express the GTYPE as a one-dimensional array here. Each operator is
analogous to the recombination or mutation of a gene in a biological organism.
Generally, the frequency with which these operators are a pplied, as well as the
sites at which they are applied, are determined r andomly.
Crossover is an analo gy of sexual reproduction where new offspring are gen-
erated by combining two parent individuals. There are a number of crossover
methods based on the level of granularity in separating each individual, for
example, the one-point crossover and the uniform crossover.
The cros sover shown in Fig. 2.2 has one crossover po int, so it is called a