diff --git a/evolve.js b/evolve.js index f90bed2..322fad0 100644 --- a/evolve.js +++ b/evolve.js @@ -1215,7 +1215,7 @@ var obj = {}; if (rank.worst) { worst = { - dna:rank.wort.dna, + dna:rank.worst.dna, runs:rank.worst.runs, fitness:rank.worst.fitness } diff --git a/package.json b/package.json index 2c1f119..91ff264 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mc-evolve", - "version": "5.1.5", + "version": "5.1.6", "description": "An Evolutionary Algorithm in JavaScript that takes in a generic module that represents a problem to be optimized", "main": "evolve.js", "scripts": {