How can i plot a graph of one of the parameters vs no. of iterations in Genetic algorithm optimization technique??
Show older comments
I am using GA toolbox...i now need to plot a graph which will show one of the parameter values for each iteration vs no. Iterations...can anyone help me out??
Answers (1)
Alan Weiss
on 2 Sep 2015
0 votes
Use a plot function. If none of the built-in functions are suitable, then write a custom plot function in the appropriate syntax.
Alan Weiss
MATLAB mathematical toolbox documentation
2 Comments
Ifat Rahman
on 2 Sep 2015
Alan Weiss
on 2 Sep 2015
Sorry, I should have said before that you can just edit one of the existing plot functions such as gaplotbestindiv or gaplotbestf, save it with a different name, and use it as a plot function.
Remember, ga has a population, so at each iteration (generation) there are many individuals. You will have to decide which, if any, to plot.
Good luck,
Alan Weiss
MATLAB mathematical toolbox documentation
Categories
Find more on Genetic Algorithm in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!