Research Article
MABC: Power-Based Location Planning with a Modified ABC Algorithm for 5G Networks
Algorithm 2
The modified onlooker bees.
| (1) Begin | | (2) Cycle () = 0, | | (3) Onlooker bee counter (OBC = 0) | | (4) Another solution found using (Equation (11)) for each called neighborhood of the current food source | | (5) While (OBC < (Food source)) | | (6) If Then | | (7) Onlooker bee select the employed bee and become an employed bee, | | (8) OBC = OBC + 1, | | (9) Repeat employed bee phase Algorithm 1 | | (10) Check the fitness () for the new solution taking an objective fuction using (Equation (14)) | | (11) | | (12) If fitness of [ Then | | (13) Evaluate | | (14) | | (15) | | (16) End If | | (17) End If | | (18) End While | | (19) | | (20) End |
|