Skip to main content
. 2024 Feb 15;9(2):117. doi: 10.3390/biomimetics9020117
Algorithm 2 BSO-I
  • 1:

    Initialization: Randomly generate an individual x=(x1,x2,,xn)Rn based on uniform distribution;

  • 2:

    while stopping criterion is not satisfied do

  • 3:

       y=x+z, where z is the mutation operator;

  • 4:

       if y adapts better than x then

  • 5:

          x is substituted for y

  • 6:

       end if

  • 7:

    end while

  • Output: 

    x