| Algorithm 2. Particle swarm 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 |