コード例 #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);
        }