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