mplementation of Particle swarm optimization in Java.