View full-text article in PMC Sensors (Basel). 2021 Nov 11;21(22):7499. doi: 10.3390/s21227499 Search in PMC Search in PubMed View in NLM Catalog Add to search Copyright and License information © 2021 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/). PMC Copyright notice Algorithm 3 VelocityUpdate_V2. 1:for individual pi,i=1 to n do 2: Get the index jb of the biggest in ϕi={ϕi,j}j=1k. 3: tempd=0,normaf=0. 4: for task Tj,j=1 to k do 5: if j=jb or rand<ϕi,j then 6: r2=rand 7: tempd=tempd+r2*ϕi,j*(gbestj,d−xi,dg). 8: normaf=normaf+ϕi,j. 9: end if 10: vi,dg+1=wvi,dg+c1r1(pbesti,d−xi,dg)+c2(tempd/normaf). 11: end for 12:end for