I am struggling to completely understand how to get a new generation in GA. AFAIK, these are the steps (let's consider elitist
approach):
- selection (retain 20% of the best in population and put them in next generation)
- crossover (crossover the rest 70% - each parent crosses with other parent only once; what do we do with crossover probability here?)
- mutate (mutate all specimens in generation with probability MP)
I am not sure this is OK and also as mentioned - what do you do with crossover probability CP? I mean, you need to have the same population size between generations therefore you need to cross all specimens from the worse 70% of population - rendering CP useless.