Skip to main content
. 2022 Aug 22;10(8):2052. doi: 10.3390/biomedicines10082052
Algorithm 2: Pseudo-code of ISMA
Begin
 Initialize of the parameters: Max_iter, N
 Initialize of slime mould population X
 While tMax_iter
  Calculate the fitness for each individual in slime mould
  Update Xb and the best fitness
  Calculate the weight W,a,b according to Equations (3)–(5)
  For i=1:N
   Update p using Equation (2)
   Update vb, vc based on a and b, respectively
   Update the positions by Equation (1)
  EndFor
  Use Cauchy mutation strategy to update the best individual and the best fitness
  Adopt MC strategy to update the best individual and the best fitness
  iteration = iteration + 1
 EndWhile
 Return the best fitness and Xb as the best solution
End