Skip to main content
. 2023 May 3;13(9):1621. doi: 10.3390/diagnostics13091621
Algorithm 1 The RUN algorithm
  • 1:

    Input: Population size, Population initialization, and MaxIter of iterations.

  • 2:

    Output: The best Solution.

  • 3:

    Evaluate Objective Function using Equation (7).

  • 4:

    Calculate yn+1 using Equation (2).

  • 5:

    while Stop condition not met do

  • 6:

         for n = 1 ... N do

  • 7:

               Evaluate Objective Function using Equation (7).

  • 8:

               if <0.5 then

  • 9:

                    calculate ynew2 using Equation (5)

  • 10:

                   if F(yn+1<F(ynew2)) then

  • 11:

                       if rand < w then

  • 12:

                             Calculate ynew3 using Equation (6).

  • 13:

                             if F(yn+1)<F(ynew3) then

  • 14:

                                 yn+1=ynew3

  • 15:

                             end if

  • 16:

                       end if

  • 17:

                   else

  • 18:

                       yn+1=ynew2

  • 19:

                   end if

  • 20:

               end if

  • 21:

         end for

  • 22:

    end while