Genetic Algorithm Optimization tool

2 views (last 30 days)
On MATLAB optimization tool for GA, on the "plot function" option, I checked "best fitness" and "best individual". When I started it, it shows only best fitness, mean fitness, and best individual for one generation...say we have 100 generation, can we see the fitness and the individual on each generation? how?
thank you and sorry for my bad english

Accepted Answer

Alan Weiss
Alan Weiss on 18 Jul 2013
Perhaps you have nonlinear constraints. In that case, ga takes very few iterations, and you might think it is showing only one iteration. I know of no way of showing the inner calculations during the nonlinear constraint solver.
If you have no nonlinear constraints, then I don't know what you are talking about. As shown here, for example, ga includes a point in the plot for each iteration.
Alan Weiss
MATLAB mathematical toolbox documentation

More Answers (0)

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!