Review Article
Dragonfly Algorithm and Its Applications in Applied Science Survey
| Initialize the dragonflies population Xi (i = 1, 2, …, n) | | Initialize step vectors Xi (i = 1, 2, …, n) | | while the end condition is not satisfied | | Calculate the objective values of all dragonflies | | Update the food source and enemy | | Update , s, a, c, f, and e | | Calculate S, A, C, F, and E using equations (1)–(5) | | Update neighbouring radius | | If a dragonfly has at least one neighbouring dragonfly | | Update velocity vector using equation (6) | | Update position vector using equation (7) | | Else | | Update the position vector using Lévy flight | | End if | | Check and correct the new positions based on the | | boundaries of variables | | End while |
|