genev

0.1.8 • Public • Published

npm version

Genev.js

Genetic Evolution Algorithm framework

What is Genev?

Genev is a framework that lets you easily use the genetic algorithm search heuristic to find solutions to optimization or search problems.

Todo:

  • Add method chaining
  • Add tests
  • Add Travis
  • npm-ify

In a nutshell

// Create a chromosome
var chromosome = {
  gene1: null,
  gene2: null 
};
 
// Create a fitness function
var ff = function (genes) {
  var gene, score = 0;
  for (gene in genes) { score += gene; } // score will be a sum of the genes
  return score;
}
 
// Use Genev
var genev = GF(chromosome); // set it up with our chromosmoe
genev.initPopulation(); // initialize it
genev.evolve(ff); // let it rip!

Dependencies (0)

    Dev Dependencies (4)

    Package Sidebar

    Install

    npm i genev

    Weekly Downloads

    1

    Version

    0.1.8

    License

    MIT

    Last publish

    Collaborators

    • yehyaawad