Genetic Algorithm Optimization tool

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

 Réponse acceptée

Alan Weiss
Alan Weiss le 18 Juil 2013

0 votes

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

Plus de réponses (0)

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by