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.
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.