PSO is also a population-based stochastic optimization algorithm and starts with an initial population of randomly generated solutions called particles. Each particle in PSO has a position and a velocity. PSO remembers both the best position found by all particles and the best positions found by each particle in the search process. For a search problem in an n-dimensional space, a potential solution is represented by a particle that adjusts its position and velocity according