Research Article
Cluster Design and Optimization of SWIPT-Based MEC Networks with UAV Assistance
Input : maximum of iterations; | :Number of bats/child bats; | :Sonic loudness/pulse of bat; | : Loudness/pulse update factor; | 1: Use criterion (20) to find the best bat in the initial environment; | 2: fordo | 3: for each bat do | 4: Randomly move each bat; | 5: Generate a random number ; | 6: ifthen | 7: Randomly move this bat; | 8: if better than the original then | 9: Adopt current position; | 10: else | 11: Adopt original position; | 12: end if | 13: end if | 14: if better than the better than the optimal bat and then | 15: Update optimal bat position; | 16: ; | 17: ; | 18: end if | 19: end if | 20: Add child bats as the best bat copy; | 21: fordo | 22: for each child bats do | 23: Randomly move child bats; | 24: if better than the best then | 25: Update the optimal solution; | 26: end if | 27: end for | 28: | 29: end for | 30: | 31: end for |
|