Work directly on the mean for the genetic algorithm