Genetic optimization
A simple library used to find an optimal solution to a problem.
How to install
npm install --save genetic-optimization
How to use
Example implementation of a simple exponential math function:
; // the optimized exponential function;; // construct the optimizer; // generate initial population;for ; i < population.length; i++ // run the optimization algorithm; // assert solutionexpectfoundSolution.toBeCloseToexpectedSolution, 1;