Repository navigation
PyGAD 3.9.1
PyGAD 3.9.1
Release Date: October 16, 2026.
- Roulette wheel selection and stochastic universal selection favor the better solutions when fitness values are negative. Before this change, each share was the fitness divided by the total, which flips the order for negative values: the fitness values
-1and-9gave the worse solution 90% of the selections. Negative fitness values are now shifted by the smallest fitness first, so-1and-9become8and0. This also covers mixed positive and negative values, and equal negative values give every solution the same chance. Fitness values that are all zero or above keep their exact previous behavior. - Regression tests cover negative, mixed-sign, equal negative, multi-objective, and large Python integer fitness, and a minimization run with each selector. The
pygad.utilssubmodule version is1.5.11.