Research Article

MABC: Power-Based Location Planning with a Modified ABC Algorithm for 5G Networks

Algorithm 3

Pseudocode of MABC.
(1) Begin
(2) Initialize Users phase ()
(3) Initialize Population phase ()
(4) Memorize best solution ()
(5) Memorize the best solution achieved so far
(6) Cycle () = 1
(7) While  Termination criteria is not satisfied  do
(8) SendEmployedBees () (Algorithm 1)
(9) SendOnlookerdBees () (Algorithm 2)
(10) SendScoutBees ()
(11) If  Exist  Then
(12) Re-initialize the individual using (Equation (5)),
(13) Memorize the best new solution achieved so far
(14) If   > Limit  Then
(15)
(16) Else
(17)
(18)
(19) End If
(20) End If
(21)
(22) End While
(23) untill   = MNC
(24) End