Repository navigation
3.1.0
This release brings in a lot of added functionality, fixes a few bugs, optimizes the algorithm and brings a few breaking changes.
Features:
- OrderCrossover
- SimulatedBinaryCrossover
- PolynomialMutation
- SwapMutation
- IntegerAllele
- ValueAllele
- PermutationEncoding
- GenerationDriver
Bug Fixes:
This release fixes a bug where, after a sorting was performed, it may leave the objects unstable. It also fixes a bug in
BinaryTournamentSelectionwhere the same chromosome may be selected twice before performing crossover.
Optimizations:
The algorithm now uses
TimSortanddual-pivot QuickSortinstead ofRandomized QuickSortwherever applicable for better performance and more accurate behaviour.
Breaking changes
- major package rearrangement and code scaffolding leads to changes in package configuration of various APIs.
- added a few changes to the
Chromosomeobject. Reporternow outputs to a folder namedoutputinstead of the root directory.- it now uses a
GenerationDriverobject to control how long (generations) the algorithm should run. Even though it shall directly work with the number of generations provided, and shouldn't break any existing code, but it is important to keep in mind that the implementation has changed.