Skip to content

PyGAD 3.9.1

Choose a tag to compare

@github-actions github-actions released this 16 Oct 06:36
· 2 commits to master since this release
8e6a0c4

PyGAD 3.9.1

Release Date: October 16, 2026.

  1. 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 -1 and -9 gave the worse solution 90% of the selections. Negative fitness values are now shifted by the smallest fitness first, so -1 and -9 become 8 and 0. 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.
  2. Regression tests cover negative, mixed-sign, equal negative, multi-objective, and large Python integer fitness, and a minimization run with each selector. The pygad.utils submodule version is 1.5.11.