示例#1
0
 private Individual[] FindParents()
 {
     return(new Individual[] {
         parentSelection.FindParent(population, cities),
         parentSelection.FindParent(population, cities)
     });
 }
示例#2
0
        // funkcja zwracająca rodziców
        private (Individual mother, Individual father) FindParents()
        {
            Individual mother = parentSelection.FindParent(startingPopulation);
            Individual father = parentSelection.FindParent(startingPopulation);

            return(mother, father);
        }