Skip to main content
. 2019 Jan 17;19(2):376. doi: 10.3390/s19020376
Algorithm 2 VBSO Algorithm on CDS
  • 1:

    procedure vector j,,j=1,2,...,m

  • 2:

        while f(Vj) does not change successive l iterations do

  • 3:

            Calculate |CDSθ|=(j=1m|degjdeg¯|θ)1θ

  • 4:

            Calculate expected allocated neighbour values as: ζ=nM2πr2

  • 5:

            Calculate the allocation value given as: |Alθ|=(j=1m|degjζ|θ)1θ

  • 6:

            Calculate f(Vj)=n|D|W1|CDSθ|+W2|Alθ|

  • 7:

            if f(Vj) does not change in simultaneously l iterations then

  • 8:

               goto Step 15

  • 9:

            else

  • 10:

               Calculate direct and indirect cooperation vectors

  • 11:

               Apply mutation

  • 12:

               Check boundary condition

  • 13:

               Selection of offsprings for next iteration

  • 14:

               goto 6

  • 15:

               return the current optimal solution

  • 16:

            end if

  • 17:

        end while

  • 18:

    end procedure