| Algorithm 1: ESOA based on Gaussian Mutation. | |
| Input: , , | |
| Operation | |
| /* Sit-and-wait step */ | |
| 1. | Update the integrated gradient g via Equations (4)–(8) |
| 2. | Update the weight of observation method w by Equations (9)–(11) |
| 3. | Get the expected position of Egret A by Equation (13) |
| 4. | Retrieve the Egret A’s fitness |
| 5. | Return , |
| /* Aggressive step */ | |
| 6. | Get the expected position of egret B by Equations (14) and (15) |
| 7. | Get the expected position of egret C by Equations (18) and (19) |
| 8. | Retrieve the fitness of egret B and egret C |
| 9. | Return , , , |
| /* Search the global optimum based on Gaussian mutation-step */ | |
| 10. while
11. Implement Sit-and-wait step, Obtain , 12. Implement Aggressive step, Obtain , , , 13. Get next position via Equations (20)–(23) 14. 15. Retrieve the fitness of best position 16. Return , | |
| /* Operation Ending */ | |
| Output: , | |