Algorithm 1 The proposed SWO |
Input: |
|
Output: |
|
1. |
), using Equation (3) |
2. |
|
3. |
t = 1; //the current function evaluation |
4. |
) |
5. |
: generating a random number between 0 and 1 |
6. |
) %% Hunting and Nesting behaviors |
7. |
|
8. |
Applying
Figure 2
|
9. |
Compute
) |
10. |
t = t + 1; |
11. |
End for |
12. |
Else %% Mating Behavior |
13. |
|
14. |
Applying Equation (21) |
15. |
t = t + 1; |
16. |
End for |
17. |
End if |
18. |
Applying Memory Saving
|
19. |
Updating N using Equation (25) |
20. |
End while |