Skip to main content
. 2023 Mar 22;8(1):131. doi: 10.3390/biomimetics8010131
Algorithm 2 φSij calculated by particle swarm optimization algorithm.
  •  1:

    Important Condition:

  •  2:

    Particle position: X=xi|xi=φSij

  •  3:

    End condition: β3 & s0.2

  •  4:

    Fitness:f=π2φSijnowφSijlast+π2β+1s

  •  5:

    Beginning:

  •  6:

    initial starting parameters

  •  7:

    calculate the fitness

  •  8:

    find out the optimization

  •  9:

    update position and velocity of particle

  • 10:

    if not meet the end condition then

  • 11:

       go to step 7

  • 12:

    else

  • 13:

       save φSij

  • 14:

    end if

  • 14:

    return φSij