Skip to main content
. 2021 Dec 20;23(12):1700. doi: 10.3390/e23121700
Algorithm 1 Pseudo-code of SMA
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 (1);
  End For
  t = t + 1;
End While
Return the best solution;