Skip to main content
. 2025 Dec 26;28(1):30. doi: 10.3390/e28010030
Algorithm 3 Penguin Foraging Strategy (PeSOA)
  • 1:

    Randomly initialize a population P divided into several groups

  • 2:

    Assign an oxygen reserve O(pi)>0 to each penguin pi

  • 3:

    Set global best solution G

  • 4:

    for each piP with O(pi)>0 do

  • 5:

          DnewDlast+rand()·|XLocalBestXLocalLast|

  • 6:

          Evaluate f(Dnew) and update O(pi)O(pi)1

  • 7:

          if f(Dnew)>f(XLocalBest) then

  • 8:

                XLocalBestDnew

  • 9:

          else if f(XLocalBest)>f(G) then

  • 10:

              GXLocalBest

  • 11:

        end if

  • 12:

    end for

  • 13:

    if oxygen depleted or maximum iterations reached then

  • 14:

          Stop

  • 15:

    end if