Research Article
Dynamic Inertia Weight Binary Bat Algorithm with Neighborhood Search
Algorithm 1
Pseudocode of bat algorithm.
| Initialize the bat population and ; | | Define pulse frequency ; | | Initialize pulse rate and the loudness ; | | while do | | Generate new solutions by adjusting frequency, updating | | velocities and positions [Eq. (1) to (3)]; | | if then | | Select a solution among the best solutions randomly; | | Generate a local solution around the selected best solution; | | end if | | Generate a new solution by flying randomly; | | if then | | Accept the new solutions; | | Increase and reduce ; | | end if | | Rank the bats and find the current ; | | end while |
|