Updated selection implementation, added with/without replacement variation

This commit is contained in:
RyleyGG
2020-10-04 15:54:38 -04:00
parent 89df506469
commit c18a531034
4 changed files with 101 additions and 50 deletions

View File

@ -5,9 +5,9 @@ import random
# Create the Genetic algorithm
ga = EasyGA.GA()
ga.gene_impl = [random.randrange,1,10]
ga.gene_impl = [random.randrange,1,25]
# Run Everyhting
# Run Everything
ga.evolve()
# Print the current population