where, rand ~U(0, 1) is the element from uniform random sequence in the range (0, 1), c1 and c2 are the acceleration coefficients, usually c1=c2=2. ω is the weight coefficient, and 0.1≦ω≦0.9. pBest, the personal best position of each particle,
is updated by