genetic icon indicating copy to clipboard operation
genetic copied to clipboard

Implementation of genetic algorithms for nodejs

Results 5 genetic issues
Sort by recently updated
recently updated
newest added

Someone got this problem before? I cannot run more than 100 generations. ``` /Users/michaelmalura/Development/bot/node_modules/genetic/lib/genetic/Task.js:210 level += self.parents[position].score ^ TypeError: Cannot read property 'score' of undefined at /Users/michaelmalura/Development/bot/node_modules/genetic/lib/genetic/Task.js:210:44 at Object.async.until (/Users/michaelmalura/Development/bot/node_modules/genetic/node_modules/async/lib/async.js:568:13)...

``` const task1 = new Task(options); const task2 = new Task(options); task1.on('statistics', () => { console.log('task1-handler'); }) task2.on('statistics', () => { console.log('task2-handler'); }) ``` When you run the Task `task1.run`...

May you guide how to use your library to solve the tsp ? Thanks a lot

Sum should be recalculated after inverting scores as sum is not the same anymore. Application crashes when adding new scores until it reaches _level_ (which is between 0 and sum,...

When looking for minimized fitness, score sum of all chromosomes should maintain the same when inverting the scores, so that the normalized fitness can work. Particularly, if the sum becomes...