Skip to content

Esiravegna/evolver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

#evolver

Genetic optmizer with elasticity check for JavaScript

##Genetic Algoritms

TL;DR Essentially, an optimizer for polynomial equation solutions that assumes that recombining the terms of the proposed solutions and iterating and discarding the worst solutions, eventually will reach to the max (or min, depending on the cost function) value, by using a Natural Selection like process.

Check here for more infornation.Wikipedia has a neat introduction and some useful links too to the math stuff.

##Usage

    var myPopulation = new Evolver(model,finalTerm,max,min,goal,investment);                
    //DO da evolution, BABY!                
    var theSolution = myPopulation.run();
    //lets find the diminished returns zone 
    var maxInvestment = myPopulation.maxInvestment(theSolution);        
    var maxSolution = theSolution.raw;
    maxSolution = maxSolution.normalize(maxInvestment);
    var maxResult = myPopulation.runmodel(maxSolution);

About

Genetic optmizer with elasticity check for JavaScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published