PyGAD-2.16.3
Changes in PyGAD 2.16.3
- A new instance attribute called
previous_generation_fitness
added in thepygad.GA
class. It holds the fitness values of one generation before the fitness values saved in thelast_generation_fitness
. - Issue in the
cal_pop_fitness()
method in getting the correct indices of the previous parents. This is solved by using the previous generation's fitness saved in the new attributeprevious_generation_fitness
to return the parents' fitness values. Thanks to Tobias Tischhauser (M.Sc. - [Mitarbeiter Institut EMS, Departement Technik, OST – Ostschweizer Fachhochschule, Switzerland](https://www.ost.ch/de/forschung-und-dienstleistungen/technik/systemtechnik/ems/team)) for detecting this bug. - Validate the fitness value returned from the fitness function. An exception is raised if something is wrong. #67