Biology Forums - Study Force

Science-Related Homework Help Computer Studies Topic started by: Dukun on Nov 12, 2022



Title: Particle Swarm Optimization (PSO)
Post by: Dukun on Nov 12, 2022
Hi All, Please help me to solved this problem.

You are given an optimization problem using one variable with equation as follows:

f(x) = (1-x)2
50 ≤ x ≤ 100

The equation for the velocity is as follows:

𝑉𝑗(𝑖) = 𝑉𝑗(𝑖−1) + 𝑐1𝑟1[𝑃𝑏𝑒𝑠𝑡,𝑗−𝑥𝑗(𝑖−1)] + 𝑐2𝑟2[𝐺𝑏𝑒𝑠𝑡,𝑗−𝑥𝑗(𝑖−1)]
c1 = c2 = 1, r1 = 0.6, r2 = 0.3

You are asked to simulate how the optimization process works using Particle Swarm Optimization (PSO)!
(by using 4 particles, you only need to go through the process till 2nd time step)