0.1.8 • Published 10 years ago

genev v0.1.8

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

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!
0.1.8

10 years ago

0.1.7

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago