Skip to main content
. 2023 Feb 14;23(4):2147. doi: 10.3390/s23042147
Algorithm 3: STOA
  • Input: Population (PSTL(i))

  • Output: Best SA (PBSTL(i))

  • Initialize MSA and CB

  •   Determine the fitness of every SA

  •     while (i<MaxIter) do

  •       for every SA, do

  •       Modify the locations of SAs using Equation (10)

  •     end //for

  •   Update SA and CBest

  •   Find the fitness of every SA

  • Modify PBSTL(i)’ in case there is an improved solution compared to a former ideal solution

  • i=i+1

  • return(PBSTL(i))

  • End