コード例 #1
0
        // Makes a new generation by invoking the crossover method on the current population.
        private void MakeCrossovers()
        {
            List <Agent> children = new List <Agent>();

            GenerationCount++;
            children          = CurrentPopulation.MakeCrossovers(GeneticSettings.Crossover, GeneticSettings.PopulationSize, GeneticSettings.RandomNumberGenerator);
            CurrentPopulation = new Population(children, GenerationCount);
        }