After the last generation and before the run() method completes, update the 2 instance attributes: 1) last_generation_parents 2) last_generation_parents_indices. This is to keep the list of parents up-to-date with the latest population fitness last_generation_fitness. https://github.com/ahmedfgad/GeneticAlgorithmPython/issues/275
run()
method completes, update the 2 instance attributes: 1)last_generation_parents
2)last_generation_parents_indices
. This is to keep the list of parents up-to-date with the latest population fitnesslast_generation_fitness
. https://github.com/ahmedfgad/GeneticAlgorithmPython/issues/275run_
. Their purpose is to keep the main loop inside therun()
method clean. Check the [Other Methods](https://pygad.readthedocs.io/en/latest/pygad.html#other-methods) section for more information.