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

Cancel an execution "properly" #62

Open
Hyzbade opened this issue Jun 23, 2015 · 2 comments
Open

Cancel an execution "properly" #62

Hyzbade opened this issue Jun 23, 2015 · 2 comments

Comments

@Hyzbade
Copy link
Collaborator

Hyzbade commented Jun 23, 2015

If a current execution is computing, we don't necessary want to force it to shut down immediately. By the way, in the case of an evolutionary algorithm, that would be interesting to decrease the number of generations when it is computing.

@samthiriot
Copy link
Owner

What would be the idea: one can cancel the execution of one individual without cancelling the overvall computation of the generation ?

In this case, it might be coded in the EvaluateOneGenerationExec (or some similar name): when a sub child is switched to state "cancel", then don't cancel the parent one; also in this case we have to deal with the absence of result, but this might be done as for constrained individuals.

@Hyzbade
Copy link
Collaborator Author

Hyzbade commented Sep 3, 2015

I think the main insight twofold here:

  • when we want to stop an execution whereas we expect a CSV output (for example) at the end of each iteration, before canceling, write in the CSV file (same thing with a display)
  • for an EA, if I change the number of iteration while the optimization is processing, I want to take into account this update (if the algorithm have to stop, before it shuts down, it should check his parameters)

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