Skip to main content
. 2026 Feb 6;11(2):122. doi: 10.3390/biomimetics11020122
Algorithm 1: ESOA based on Gaussian Mutation.
Input: locself_i, stepa, stepb
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 locanext_i of Egret A by Equation (13)
4. Retrieve the Egret A’s fitness fitanext_i
5. Return locanext_i, fitanext_i
/* Aggressive step */
6. Get the expected position locbnext_i of egret B by Equations (14) and (15)
7. Get the expected position loccnext_i of egret C by Equations (18) and (19)
8. Retrieve the fitness of egret B fitbnext_i and egret C fitcnext_i
9. Return locbnext_i, loccnext_i, fitbnext_i, fitcnext_i
/* Search the global optimum based on Gaussian mutation-step */
10.   while t<tmax
11.    Implement Sit-and-wait step, Obtain locanext_it, fitanext_it
12.    Implement Aggressive step, Obtain locbnext_it, fitbnext_it, loccnext_it, fitcnext_it
13.    Get next position via Equations (20)–(23)
14.    locbest=Gauss(locself_it+1,locbest)
15.    Retrieve the fitness of best position fitbest
16.    Return locbest, fitbest
/* Operation Ending */
Output: locbest, fitbest