Open
Description
With PyGAD 2.18.0 the keep_elitism=1
paramter was introduced. Apparently this only works when no crossover operation is selected. This is a strange behavior, because in my understanding Selection(e.g. Elitism) and Crossover build on each other. A normal (simplified) generation cycle should therefore look something like this:
- Init
- Evaluate fitness
- Selection (e.g. steady-state, rank, elitism)
- Crossover (e.g. one-point, uniform)
- Mutation (e.g. random, swap)
- -> 2.
To summarize, I would expect the elitism parameter to allow some of the best parents to pass unchanged into the next generation. This is not the case, and therefor the fitness value didn't converge.
Compare the lines 1348 - 1373 of the pygad.py file