powered by
The neighborhood function for a simple linear topology where every particle has k = 2 neighbors
pso.neighborhood.K2(i, n)
The particle position
the size of particle population