Skip to content

v0.3.0

Latest
Compare
Choose a tag to compare
@margorczynski margorczynski released this 22 Apr 14:59
· 3 commits to master since this release

Big rewrite of the gene encoding and manipulation logic from using Booleans to u64 blocks with all the dependent components updated as well to this new approach.

These changes bring almost a 2x speedup in the example test case and a decrease in memory usage.

Changes

  • Chromosome now uses Vec<u64> instead of Vec<bool>
  • Updated serde of Polynomial to the new form
  • Updated GA logic (mainly crossover) to use new way of operating on the genes
  • Minor refactorizations