예제 #1
0
 public Population(List <Chromosome> chromosomes)
 {
     this.chromosomes = new List <Chromosome>(chromosomes);
     this.fittest     = FindBestInPopulation();
 }
예제 #2
0
 public Population(int numberOfCities)
 {
     FillCities(numberOfCities);
     CreateFirstborns(numberOfCities, populationSize);
     this.fittest = FindBestInPopulation();
 }