Fixed some errors with the new updates

This commit is contained in:
SimpleArt
2020-10-12 17:14:24 -04:00
parent 42c0fdbc10
commit e52b32f23c
2 changed files with 2 additions and 2 deletions

View File

@ -9,4 +9,4 @@ class Survivor_Selection:
def fill_in_best(ga, next_population):
"""Fills in the next population with the best chromosomes from the last population until the population size is met."""
return ga.population[:ga.population_size-next_population.size()] + next_population
return Population(ga.population.get_all_chromosomes()[:ga.population.size()-next_population.size()] + next_population.get_all_chromosomes())