Population.next_population and better comments

This commit is contained in:
SimpleArt
2020-10-15 00:22:58 -04:00
parent 543b295e52
commit 5df19df643
6 changed files with 160 additions and 59 deletions

View File

@ -3,7 +3,7 @@ import EasyGA
# Create the Genetic algorithm
ga = EasyGA.GA()
ga.population_size = 100
ga.population_size = 25
ga.generation_goal = 100
ga.gene_impl = lambda: random.randint(1, 10)
ga.selection_probability = 0.5