How to record all generations in Genetic Algorithms in MATLAB (R2012a)?

8 visualizaciones (últimos 30 días)
I am implementing Genetic Algorithm for my problem. The program needs many generations to reach the optima and I need to record the information of every generation in a text file or a variable (best function). I was wondering if there is any option in GA to record that for me?

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 8 de Mzo. de 2021
Editada: MathWorks Support Team el 5 de Mzo. de 2021
The details can be accessed in a specified OutputFcns function. This is detailed in the following documentation page:
All the information you need, such as the population, the score of the current population, the current geneartion number, etc. - can be saved in the 'state' variable onto a file.

Más respuestas (0)

Categorías

Más información sobre Genetic Algorithm en Help Center y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Productos


Versión

R2012a

Community Treasure Hunt

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

Start Hunting!

Translated by