giacomelli / GeneticSharp

GeneticSharp is a fast, extensible, multi-platform and multithreading C# Genetic Algorithm library that simplifies the development of applications using Genetic Algorithms (GAs).
MIT License
1.26k stars 330 forks source link

GA pause & resume #117

Open gkapellmann opened 8 months ago

gkapellmann commented 8 months ago

I have noticed that when a GA is run, if we pause it when the generation is over, when requested to resume the generation counter doesnt go to the next generation until going through the old generation again.

Example:

Or am I missing something?

giacomelli commented 8 months ago

What termination (https://github.com/giacomelli/GeneticSharp/wiki/terminations) are you using in your GA?

gkapellmann commented 8 months ago

Hello @giacomelli

I am using "FitnessStagnationTermination", which maybe I am thinking I should use "FitnessThresholdTermination". But at the moment I am using the stagnation one.