Pseudocode: create initial population |
for each chromosome j |
for each bit i of j |
set i = 0 |
do with a probability of start_chromosome_size/|set_of_all_genes| |
set i = 1 |
end do |
end for |
compute fitness of the chromosome |
end for |
Pseudocode: create initial population |
for each chromosome j |
for each bit i of j |
set i = 0 |
do with a probability of start_chromosome_size/|set_of_all_genes| |
set i = 1 |
end do |
end for |
compute fitness of the chromosome |
end for |