Info
This question is closed. Reopen it to edit or answer.
Genetic algorithm' s options
2 views (last 30 days)
Show older comments
Hi all,
I think to have a problem with the options for the ga solver. I set these options:
options = optimoptions('ga','MaxGenerations',1000,'PlotFcn',@gaplotbestf);
I believe that the solver ignores these options, do you know where the problem may be?
9 Comments
Star Strider
on 26 Apr 2019
I don’t know the default number of generations between the 'PlotFcn' calls, since that value is not documented and it isn’t possibly to query it. See if adding:
'PlotInterval',1
to your optimoptions argument list helps. That will plot after each generation.
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!