Added comments & fixed small bug
Mostly added comments, but also fixed a small bug in parent selection where the tournament size would be much smaller than it should be.
This commit is contained in:
@ -4,7 +4,7 @@ import random
|
||||
# Create the Genetic algorithm
|
||||
ga = EasyGA.GA()
|
||||
|
||||
ga.population_size = 15
|
||||
ga.population_size = 100
|
||||
ga.chromosome_length = 10
|
||||
ga.generation_goal = 100
|
||||
ga.gene_impl = [random.randint,1,10]
|
||||
|
||||
Reference in New Issue
Block a user