|
Algorithm 1: Pseudocode of SSARM-SCA. |
| Initialize population X by using Equation (5) |
| repeat |
| Compute the objective function for each solution
|
| Update the best salp (solution)
|
| for do
|
| if then
|
| Update the position of salp using Equation (1) |
| end if
|
| if then
|
| Update followers by using SSA search and Equation (4) |
| else
|
| Update followers by using SCA search and Equation (6) |
| end if
|
| end for
|
| Sort all individuals according to fitness |
| if then
|
| Replace worst solutions by random ones using Equation (5). |
| end if
|
| Update using Equation (2) |
| Update using Equation (7) |
|
until
|
| Return the best solution F. |