Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GA pause & resume #117

Open
gkapellmann opened this issue Dec 4, 2023 · 2 comments
Open

GA pause & resume #117

gkapellmann opened this issue Dec 4, 2023 · 2 comments

Comments

@gkapellmann
Copy link

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:

  • We start the GA, and starts in generation 1.
  • When the "GenerationRan" event is triggered, we see the Generation Number = 1
  • We then pause the GA, the pause function is at the end of the "GenerationRan" function handler
  • Wait some time
  • Now we resume the GA
  • The next "GenerationRan" number is again = 1? Shouldn't this be 2 now?

Or am I missing something?

@giacomelli
Copy link
Owner

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

@gkapellmann
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants