示例#1
0
        private List <Solution> GetCurrentSolutions()
        {
            var solutions = new List <Solution>();

            foreach (var individual in currentPopulation)
            {
                solutions.Add(new Solution
                {
                    Individual   = individual,
                    FitnessScore = fitnessFunction.GetFitnessScore(individual)
                });
            }

            return(solutions);
        }