
Step-by-step numerical example of GSO algorithm 185
14.4 Step-by-step numerical example of GSO algorithm
Let us assume that we want to maximize the two-dimensional multi-
modal function given in (14.6), which has three peaks at (−0.0093, 1.5814),
(1.2857, −0.0048), and (−0.46, −0.6292). As mentioned earlier, GSO attempts
to capture all the function peaks. The result of applying the GSO algorithm is
shown in Fig. 14.1, in which 100 glowworms move from their initial locations
to one of the peak locations. The steps of the algorithm are shown below:
1. The GSO algorithm parameters are determined: n = 100, r
s
= 3,
γ = 0.6, ρ = 0.4, β = 0.08, n
t
= 5, s = 0 ...