Fixed chromosome length instead of population size

This commit is contained in:
SimpleArt
2020-11-21 16:12:37 -05:00
parent c46d54517b
commit f00785dad1

View File

@ -38,7 +38,7 @@ class Initialization_Methods:
# Using the gene_impl to set every gene to be the same # Using the gene_impl to set every gene to be the same
elif ga.gene_impl is not None: elif ga.gene_impl is not None:
for _ in range(ga.population_size): for _ in range(ga.chromosome_length):
yield ga.gene_impl() yield ga.gene_impl()
# Exit because no gene creation method specified # Exit because no gene creation method specified