Spotted bug and corrected it for Particle swarm optimizer
change the number of weights to 6
change the number of trials to 5