|
Algorithm 1. BOLD ALGORITHM |
|
Let drone d initially be the leader with fitness valuegbest. |
|
foreach dronedo
|
| Initialize each drone with its position and ; |
| end |
| Divide dronei….k into smaller groups; |
|
for each group do
|
|
fordronekdo
|
| Calculate the distance of dronek from other drones; |
| Update dronek position; |
| Calculate value; |
|
if ≥ gbest
then
|
|
gbest = ; |
| end |
| Elect dronek as leader; |
| end |
| end |
|
foreach dronedo
|
| Calculate drone velocity; |
| Update drone position; |
| Update drone using Equation (17); |
| end |