Skip to main content
. 2024 Aug 6;9(8):476. doi: 10.3390/biomimetics9080476
Algorithm 7 Restart (Fibonacci projection)
  • 1:

    function CreateFibonacciPopulation(P,E,Ebest,PS,FM)

  • 2:

        if P=[] then

  • 3:

            Pnew{Ebest}

  • 4:

            while |Pnew|<PS do

  • 5:

               ErandomUniform(E).

  • 6:

               Pnew=Pnew{Erandom}.

  • 7:

               x0

  • 8:

               while x<FM do

  • 9:

                   CrandomGetFibonacciChromosome(Crandom)

  • 10:

                   CnewCrandom+Cbest                                                                ▹ Vector addition

  • 11:

                   PnewPnew{Cnew}

  • 12:

                   if |Pnew|PS then

  • 13:

                       break

  • 14:

                   end if

  • 15:

                   xx+1

  • 16:

               end while

  • 17:

            end while

  • 18:

            return Pnew

  • 19:

        end if

  • 20:

    end function