|
Algorithm 4. The pseudocode of the EJSARO |
| Inputs: number of search agents (), number of iterations (), problem dimension (), and lower () and upper () boundaries of search space |
| Outputs: the best search agent () and its fitness () |
| //Initialization |
|
; ; |
| while () |
| Initialize by Equation (39) |
| Calculate using PMSE formulated by Equation (42) |
| ; ; |
| end for |
| Find and
|
| //Optimization |
| while () |
|
|
| while () |
| ; |
| if
|
| //Modified Detour foraging (ARO) |
| Calculate R, Z, and L using Equations (20), (21), and (23), respectively |
|
|
| else |
| //Modified Random hiding (JS) |
| Compute using Equation (15) |
|
|
| end if |
| //Check and rectify the new solution |
| Calculate using Equation (46) |
| =
|
| //Elitism (greedy selection) |
| Compute using Equation (42) |
| if
|
| ; ; ; |
| else |
|
|
| end |
| if
|
| ; ; |
| end |
| //Levy flight-based motion |
| Calculate using Equation (48) |
|
|
| //Check and rectify the new solution |
| =
|
| //Elitism (greedy selection) |
| Compute using Equation (43) |
| if
|
| ; ; ; |
| else |
|
|
| end |
| if
|
| ; ; |
| end |
| //Local departure mechanism |
| if
|
| Reset and reinitialize using Equation (39) |
| end |
|
|
| end for |
| //Proposed local search procedure |
| Improve using Equation (52) and the proposed local search |
|
|
| end while |
| Return and
|