Did stuff

This commit is contained in:
Daniel Wilczak
2020-09-23 18:09:29 -04:00
parent 7359ef1268
commit b0b502c697
3 changed files with 21 additions and 3 deletions

View File

@ -7,5 +7,9 @@ ga = EasyGA.GA()
# Start the population
ga.initialize()
new_gene = ga.make_gene("Hello")
print(new_gene.get_value())
print(new_gene.get_fitness())
for chromosome in ga.population.chromosomes:
print(chromosome.genes[0].__dict__)