MATLAB Answers

0

restore the state of genetic algorithm after accidental shutdown

Asked by Emiliano Rosso on 15 Oct 2015
Latest activity Answered by Star Strider
on 15 Oct 2015
How can I restore the state of genetic algorithm after accidental shutdown? This is important because calculation time can be very long and in case of power off all previous part of test is lost.Somebody can tell me something about it?

  0 Comments

Sign in to comment.

1 Answer

Answer by Star Strider
on 15 Oct 2015

I do not see anything in the documentation for ga that will allow you to do that directly. I have not encountered this problem, but if I anticipated a run that would take significant time, I would use the gaoptimset function to set a 'TimeLimit', then save (appending to or overwriting a .mat file) the necessary population and other parameters, and re-start ga with the saved population.

  0 Comments

Sign in to comment.