During the crossover, it might make sense to give each gene a score.
For example, if after crossover and mutation the fitness is better than in the parents, then each gene gets a +1 on the score, which increases the chance that these genes will be favoured for future generations.
Although this can be relatively chaotic, as all genes are evaluated together, good genes should emerge over time.
During the crossover, it might make sense to give each gene a score.
For example, if after crossover and mutation the fitness is better than in the parents, then each gene gets a +1 on the score, which increases the chance that these genes will be favoured for future generations.
Although this can be relatively chaotic, as all genes are evaluated together, good genes should emerge over time.