// Invokes the calculate fitness method on the current population and private void CalculateFitness() { CurrentPopulation.CalculateFitness(GeneticSettings.FitnessCalculator); CurrentAverageFitnessPopulation = CurrentPopulation.AverageFitness; TopKAgents.Update(CurrentPopulation.Agents); }