RTUEE / EC / EEEYr 2023 · Sem 82023

Q8Soft Computing

Question

2 marks

Q.8. In PSO, if the value of C1 and C2 is 1.5, the values of random numbers R1 and R2 are 0.5, Xgbest is 3.5, Xpbest is 2.5, X(i) is 2.5 and V(i) is 2.0 then what will be the new position of X(i).

Answer

New velocity V(i+1) = V(i) + C1R1(Xpbest - X(i)) + C2R2(Xgbest - X(i)) = 2.0 + 1.5(0.5)(2.5-2.5) + 1.5(0.5)(3.5-2.5) = 2.0 + 0 + 0.75 = 2.75. New position X(i+1) = X(i) + V(i+1) = 2.5 + 2.75 = 5.25.

Back to Paper