Research Article

Lightweight APIT with Bat Optimization with Simulated Annealing Localization for Resource-Constrained Sensor Networks

Pseudocode 1

Bat algorithm.
1. Objective function is
2. Initialize Bat where and
3. Define the pulse frequency at various Bat population values
4. Initialize rate and loudness
5. While
6. Adjust frequency and generate new set of solutions
7. Update new velocity and location
8. If
9. Select the best solution among the available solution set
10. Generate the local solution around the best solution set
11. End if
12. Generate a new solution by a random fly
13. If and
14. Accept the new solution
15. Increase the value of and reduce the value of
16. End if
17. Rank the Bat solution and find out the current best solution
18. End while
19. Post process results and its visualization