Added blank lines and fixed run_testing
This commit is contained in:
@ -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()
|
||||
|
||||
Reference in New Issue
Block a user