public void setParticleLocalBeststoCurrent ( ) { for ( int i = 0 ; i < locations . length ; i ++ ) { particleLocalBests [ i ] = locations [ i ] ; } }
Setter to set the current positions to be the local best positions .