| Algorithm 1: Framework of the SSA | |
| |
| |
| while (t < Tmax) | |
![]() |
Rank the fitness values and find the current best individual and the current worst individual. R2 = rand (1) # Update the alarm value randomly |
| for Using Equation (8), update the sparrow’s location end | |
| for Using Equation (9), update the sparrow’s location end | |
| for
Using Equation (10), update the sparrow’s location end for | |
| Get the current new location If the new location is better than before, update it t = t + 1 | |
| end while | |
| Return Xbest, fg | |
