Research Article
Improving the Bin Packing Heuristic through Grammatical Evolution Based on Swarm Intelligence
Algorithm 3
C-Perturbation.
(1) for all Particles do | (2) Generate uniformly between 0 and 1. | (3) Generate , and as random numbers between 1 and the number | of particles. | (4) Generate the -new particle using the following equation and applying it | to each particle dimension: . | (5) end for | (6) for all Particles do | (7) If the -new particle is better that the -particle then replace the -particle | with the -new particle. | (8) end for |
|