Closed waterfall-xi closed 1 year ago
define class EGA from GA;
self._n_elitist = n_elitist in __init__();
self._n_elitist = n_elitist
__init__()
redefine run() in EGA, in each iteration, isolate top n fitted elitists out from population, add them back after selection(), crossover() and mutation().
define class EGA from GA;
self._n_elitist = n_elitist
in__init__()
;redefine run() in EGA, in each iteration, isolate top n fitted elitists out from population, add them back after selection(), crossover() and mutation().