Print population using the Genetic algorithm (ga) function

How can I print the population in each iteration when I use the genetic algorithm package for optimization.
Thanks in advance.

 Accepted Answer

you can use a plotfcn option with a little routine to display the data

More Answers (0)

Products

Release

R2019a

Community Treasure Hunt

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

Start Hunting!