Added blank lines and fixed run_testing

This commit is contained in:
SimpleArt
2020-10-12 19:57:57 -04:00
parent 4770473825
commit 3424fd4da7
9 changed files with 86 additions and 18 deletions

View File

@ -1,5 +1,5 @@
import EasyGA
import random
import EasyGA
# Create the Genetic algorithm
ga = EasyGA.GA()
@ -8,7 +8,8 @@ ga.population_size = 100
ga.chromosome_length = 10
ga.generation_goal = 100
ga.gene_impl = [random.randint,1,10]
ga.parent_selection_impl = EasyGA.Parent_Selection.Roulette.roulette_selection
ga.evolve()
ga.population.print_all()
ga.population.print_all()