Research Article
Modification of Fish Swarm Algorithm Based on Lévy Flight and Firefly Behavior
(1) | Initialization of ; | (2) | Evaluate fitness; | (3) | while the stop criterion is not met do | (4) | while do | (5) | if meets the condition of chasing behavior | (6) | Move with attraction degree and get a new based on Equation (13); | (7) | else | (8) | Prey with Lévy flight and get a new based on Equations (11) and (14); | (9) | end if | (10) | end while | (11) | Update the “board”; | (12) | end while | (13) | Obtain the optimum solution |
|