Full rewrite to update functionality

This commit is contained in:
danielwilczak101
2020-09-21 13:37:54 -04:00
parent e4930a0275
commit 70be50a7f2

View File

@ -24,7 +24,7 @@ import EasyGA
def user_gene_function():
return random.randint(1, 100)
# Standard user size requirements
# Standard user size requirements:
Population_size = 10
Chromosome_length = 10
@ -32,7 +32,7 @@ Chromosome_length = 10
ga = EasyGA.GA(Population_size, Chromosome_length,user_gene_function)
ga.initialize()
# Looking at the first chromosome in the population
# Looking at the first chromosome in the population:
ga.population.chromosomes[0].print_chromosome()
```