Skip to content

3.1.0

Choose a tag to compare

@onclave onclave released this 21 Jun 10:40
· 9 commits to master since this release

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 BinaryTournamentSelection where the same chromosome may be selected twice before performing crossover.


Optimizations:

The algorithm now uses TimSort and dual-pivot QuickSort instead of Randomized QuickSort wherever 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 Chromosome object.
  • Reporter now outputs to a folder named output instead of the root directory.
  • it now uses a GenerationDriver object 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.