
Numerical example: optimisation with DFO 143
11.4 Numerical example: optimisation with DFO
In order to understand the swarming behaviour of the flies in DFO, a step
by step example is presented in this section. These steps illustrate how the
swarm moves towards the optimal solution. In this example, the number of
flies is set to 5 (N = 5), the number of dimensions or parameters is set to 2
(D = 2) and DFO is run for 5 iterations. The rest of the configuration is the
same.
Initially, each fly’s position vector (in this example containing only two
dimensions) is initialised within the range (in this case, between −5.12 and
5.12). This process is shown in