Research Article
Improving the Bin Packing Heuristic through Grammatical Evolution Based on Swarm Intelligence
Algorithm 4
M-Perturbation.
(1) for all Particles do | (2) for all Dimension do | (3) Generate uniformly between 0 and 1. | (4) if then | (5) | (6) else | (7) | (8) end if | (9) end for | (10) end for | (11) for all Particles do | (12) If the -new particle is better that the -particle then replace the -particle | with the -new particle. | (13) end for |
|