Research Article
Opposition-Based Animal Migration Optimization
Algorithm 2
Opposition-based AMO algorithm.
| (1) Begin | | (2) Set the generation counter , and randomly initialize with a population of NP animal . | | (3) Evaluate the fitness for each individual . | | (4) For to NP do | | (5) For to D do | | | | (6) End for | | (7) Calculate the fitness value of | | (8) End for | | (9) Select NP fittest individual from as an initial population; | | (10) While stopping criteria is not satisfied do | | (11) For to NP do | | (12) For to D do | | (13) | | (14) End for | | (15) If rand < Pa then | | (16) For to D do | | (17) | | (18) End for | | (19) End for | | (20) Select NP fittest particles from as current population; | | (21) For to NP | | (22) For to D | | (23) Select randomly | | (24) If rand > Pa then | | (25) | | (26) End if | | (27) End for | | (28) For to NP do | | (29) Evaluate the offspring | | (30) If is better than then | | (31) | | (32) End If | | (33) End for | | (34) Memorize the best solution achieved so far | | (35) End while | | (36) End |
|