Skip to main content
. 2021 Dec 20;23(12):1700. doi: 10.3390/e23121700
Algorithm 2 Pseudo-code of ESMA
Initialize the positions of search agent;
While current iteration < maximum iteration do
  Check if any search agent goes beyond the search space and amend it;
  Calculate the fitness of all slime mould;
  For each search agent, do
   Update positions by Equation (20);
  End For
  Apply QOBL strategy by Equation (10);
  Select the best position into next iteration by greedy strategy;
  t = t + 1;
End While
Return the best solution;