Updated gene impl

This commit is contained in:
SimpleArt
2020-10-14 23:09:55 -04:00
parent 0090db9dce
commit 543b295e52
3 changed files with 10 additions and 13 deletions

View File

@ -3,9 +3,9 @@ import EasyGA
# Create the Genetic algorithm
ga = EasyGA.GA()
ga.population_size = 25
ga.population_size = 100
ga.generation_goal = 100
ga.gene_impl = [random.randint,0,10]
ga.gene_impl = lambda: random.randint(1, 10)
ga.selection_probability = 0.5
ga.fitness_function_impl = EasyGA.Fitness_Examples.near_5
ga.parent_selection_impl = EasyGA.Parent_Selection.Roulette.stochastic_selection