n-dimensional PSO