The particle swarm optimization (PSO) algorithm was developed in 1995 as a metaheuristic algorithm based on swarm intelligence. It uses a population of candidate solutions called particles that search through the problem space to find the best solution. Each particle adjusts its trajectory based on its own experience and the experience of neighboring particles. The algorithm keeps track of each particle's best solution (personal best) and the best solution in the swarm (global best) to determine the particle's new velocity and position in the search space iteration by iteration until an optimal solution is found.