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