How to track optimization process?

Hi all,
I am solving a problem using genetic algorithm for the first time. The optimization code has been running for a while, but I am not sure if it is working properly. Is there a way to track the progress of GA optimization in Matlab?
Thank you, Wendy

Answers (2)

Alan Weiss
Alan Weiss on 19 Jun 2014
Probably the best way is to include a plot function in your options. You can also ask for iterative display. Unfortunately, you have to do either or both of those before you call ga.
Alan Weiss
MATLAB mathematical toolbox documentation
This video will be beneficial to understand how to track the GA process. This is a sequel of a problem-solving video for the GA optimized PID tuning.

Asked:

on 19 Jun 2014

Answered:

on 3 Mar 2020

Community Treasure Hunt

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

Start Hunting!