MATLAB Answers


How to save GA optimization iteration data in to a file?

Asked by Raj
on 22 Jan 2013
Accepted Answer by Matt J

I use Genetic Algorithm (GA)part of the optimization toolbox for my work. The optimized values after each iteration will be displayed on the command window and a graph of the same will be updated. But i couldn't find any option to save those displayed values to a file to generate the same graph in future. I also need those values to for post processing. help me in this regard.

Is there any option to save the generated graph automatically once the optimization is over?


1 Answer

Answer by Matt J
on 22 Jan 2013
 Accepted answer


Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!