3 ms·
Oh thanks for that :) In my current scheme, malformed expressions just get a fitness of 0 (where fitness is between 0 and 1; 1 when the expression evaluates to
by yati 11y ago
Oh thanks for that :)
In my current scheme, malformed expressions just get a fitness of 0 (where fitness is between 0 and 1; 1 when the expression evaluates to the given target).
Varying lengths are achieved by randomly picking a length for each individual at the beginning. Thereafter, every generation gets varied length genomes automatically because of crossover. Not sure if this is the best approach, though.