Skip to main content
. 2023 Jan 16;25(1):178. doi: 10.3390/e25010178
Algorithm 1 Pseudo-code of ISMA
Initialize the parameters popsize, Max_iteraition
Initialize the positions of the slime mould
While (tMax_iteraition)
    Calculate the fitness of all the slime mould
    Update bestFitness, Xb
    Calculate the W by Equation (4)
    For each search portion,
        Update p by Equation (8)
        Update positions by Equation (9)
         End For
    t = t + 1
End While
Return bestFitness, Xb