java - Why more than one chromosome per solution (or genotype)? -
i trying started using jenetics java library genetic algorithms , there don't understand ga limited backgroud;
as understand ga generates population of arrays of m
elements, each array potential solution evaluated, once evaluated, potential solutions sorted , best chosen create new population, etc. find solution (genotype) in jenetics list of arrays each array understand potential solution, each array can have different lengths , don't understand why use structure instead of vector of genes.
see page 6 of the manual, section 3.1.3.
if possible know why this. hope have made question clear enough.
the "array" of potential solutions (phenotpyes/genotypes) collected in population. genotype represents 1 possible solution. don't confused 2-dimensional structure of genotype, should give additional flexibility modeling more complicated problems. geneotype still represents 1 possible solution , 1 individual of population.
a genotype classical binary ga can created:
genotype<bitgene> gt = genotpe.of(bitchromosome.of(15));
also have @ domain model, figure 3.1 in manual. section 6.1 tries give additional encoding examples.
Comments
Post a Comment