asumagic / geneticAlgorithm

A simple, crappy genetic algorithm class built with Onilib, featuring a canon aiming more and more precisely.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A simple C++ genetic algorithm class that's meant to be easily usable and extensible.

Current TODO list:

  • Split the code into multiple files
  • Fix the indent
  • Make the genetic algorithm class more customizable, i.e. custom gene types, more general and scalable evolution, ...
  • Recode the canon algorithm entirely (utterly bad code)
  • Reduce copies within the algorithms (optimization)

The example is using onilib. Requires C++11 to compile (for , range-based loops and probably more I'm missing). Give -std=c++11 as a compiler argument. Recent g++ or clang++ are required in order to do this.

About

A simple, crappy genetic algorithm class built with Onilib, featuring a canon aiming more and more precisely.

License:Other


Languages

Language:C++ 100.0%