| Algorithm 3. IFPASO algorithm. |
| 1: Start 2: Randomly initialize particle swarm 3: While (number of iterations or the stopping iteration on is not met) 4: Evaluate fitness of the particle swarm 5: for n = 1 to number of particles 6: Find individual optimal solution 7: Find group optimal solution 8: for d = 1 to number of dimensions of particle 9: update the velocity of particles via 10: update the position of particles via 11: end for 12: end for 13: update the inertia weight via 14: end While 15: Output the best solution found 16: The best solution found by PSO is regarded as initial points for FPA algorithm 17: While 18: for i=1:n (each flower in the population) 19: get dynamic switch probability via 20: if (rand < p) 21: Draw a (d-dimensional) step vector L which obeys a Lévy distribution 22: Global pollination via 23: else 24: Draw from a uniform distribution in [0, 1] 25: Do local pollination via 26: end if 27: Evaluate each new solution 28: If new solution is better, update it in the population 29: end for 30: Find the current best solution 31: end While 32: Output the final best solution found |