Added comments

This commit is contained in:
danielwilczak101
2020-09-27 17:36:59 -04:00
parent 58f7a34cbb
commit 760ec15264

View File

@ -13,6 +13,7 @@ def random_initialization(population_size, chromosome_length, chromosome_impl, g
chromosome = create_chromosome()
#Fill the Chromosome with genes
for j in range(chromosome_length):
# Using the chromosome_impl to set every index inside of the chromosome
if chromosome_impl != None:
# Each chromosome location is specified with its own function
chromosome.add_gene(create_gene(chromosome_impl(j)))