dolphin278 / genetic

Implementation of genetic algorithms for nodejs
179 stars 41 forks source link

Global statistics and remove of additional generation prodaction. #6

Closed Mormehtar closed 2 years ago

Mormehtar commented 10 years ago

Added some tests: for run and init. Also for upgraded features to be sure they work as planed.

Upgraded algorithm logic to remove situation when stopCriteria uses statistics from previous generation. And algorithm returns statistics of penultimate population.

Implemented globalStatistics which accumulate max and min results through all population. Made so that final result is globalStatistics. And algotithm result benefits from all generations, not only from the last.