Skip to main content
. 2021 Nov 11;21(22):7499. doi: 10.3390/s21227499
Algorithm 2 VelocityUpdate_V1.
  • 1:

    for individual pi,i=1 to n do

  • 2:

       tempd=0.

  • 3:

       for task Tj,j=1 to k do

  • 4:

         if rand<ϕi,j then

  • 5:

            tempd=tempd+ϕi,j(gbestj,dxi,dg).

  • 6:

         end if

  • 7:

         vi,dg+1=wvi,dg+c1r1(pbesti,dxi,dg)+c2r2(tempd).

  • 8:

       end for

  • 9:

    end for