where c1 and c2 are constants that weight the contribution of the particles individual experience versus the swarm experience. r 1 and r 2 are random numbers drawn from independent uniform distributions between 0 and 1. The so called inertia weight w is a constant that controls the momentum of the particle from the previous iteration.