You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix fitness_criterion='min' ignored in best-genome tracking, stagnation, reproduction, crossover, and statistics
The fitness_criterion config parameter was only used for the termination
check. All other fitness comparisons hardcoded "higher is better",
making fitness_criterion='min' fundamentally broken (GitHub issue #187).
Added is_better_fitness(), meets_threshold(), and worst_fitness() methods
to Config as the single source of truth for fitness direction. Updated
population.py, stagnation.py, reproduction.py, genome.py, and
statistics.py to use direction-aware comparisons throughout.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments