Particle Swarm Optimization search strategy pseudo-code

The following is pseudo-code for the logic we will be using to find our global minimum (the location of the treasure):

Initialize our hyperparameters
Initialize the population of particles
Do
For each particle
Calculate the objective
Update PBEST
Update GBEST
End for
Update Inertia weight
For each particle
Update Velocity (V)
Update Position (X)
End for
While the end condition is not satisfied
Return GBEST as the best global optimum estimation
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset