Research Article
Modified Bat Algorithm Based on Lévy Flight and Opposition Based Learning
Algorithm 3
Opposition based optimization.
| (1) Input original population , population size , the dimension of solution , optimization function . | | (2) Generate opposite population OP as follows: | | (3) for | | (4) for | | (5) ; | | (6) end for | | (7) end for | | (8) Merge the original population and opposite population together. | | (9) Calculate the fitness of population . | | (10) Choose the top half of population as the current population. |
|