Skip to main content
. 2020 Dec 5;20(23):6953. doi: 10.3390/s20236953
Algorithm 1 Initial Population Generation.

fork=1 to Np do

  for i=N+1 to N+n do

      for j=1 to N+n do

      x random number x(0,1)

      if x>0.5 then

          A(i,j)1

      else

          A(i,j)0

      end if

      if i=j then

          A(i,j)0

      end if

      end for

  end for

  for i=1 to N do

      for j=N+1 to N+n do

      x random number x(0,1)

      if x>0.5 then

          A(i,j)1

      else

          A(i,j)0

      end if

      end for

  end for

  AmodkA

  Pop(:,:,k)Amodk

end for