|
Algorithm 1. Pseudo code of SRW-PO |
| Input:
|
| Output: ,
|
| |
| 1. Initialize , within
|
| 2. Evaluate all individuals and determine
|
| 3. Set stagnation counter
|
| |
| 4. for to do |
| 5. Compute progress ratio using Equation (16) |
| 6. Compute elite mean using Equation (17) |
| |
| 7. for to do |
| 8. Select a random peer
|
| 9. Generate the exploration candidate using Equation (18) |
| 10. Generate the exploitation candidate using Equation (19) |
| 11. Select the basic puma candidate using Equation (20) |
| 12. Apply boundary control using Equation (26) |
| 13. Update by greedy selection using Equation (27) |
| 14. end for |
| |
| 15. Update and
|
| 16. Update stagnation counter
|
| |
| 17. if or then |
| 18. Select weak individuals |
| 19. Generate random walk candidates using Equations (21)–(23) |
| 20. Apply boundary control using Equation (26) |
| 21. Accept improved candidates using Equation (27) |
| 22. end if |
| 23. if then |
| 24. Select weak individuals |
| 25. Generate spiral candidates using Equations (24) and (25) |
| 26. Apply boundary control using Equation (26) |
| 27. Accept improved candidates using Equation (27) |
| 28. end if |
| |
| 29. Update and
|
| 30. end for |
| |
| 31. return ,
|