GA optimization how to get every generation as output to plot?
4 views (last 30 days)
Show older comments
Hi guys,
I am running a GA optimization for a problem and i want to plot every generation. How can i get that population information for each generation from the ga?
any link or any example will be great help for me.
Thanks in advance
0 Comments
Answers (1)
Alan Weiss
on 1 Aug 2012
Edited: John Kelly
on 2 Mar 2015
If there is no built-in plot function that satisfies you, then write your own using a custom plot function. The documentation shows the state structure, which contains the entire population at every iteration.
Good luck,
Alan Weiss
MATLAB mathematical toolbox documentation
0 Comments
See Also
Categories
Find more on Genetic Algorithm in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!