How to record all generations in Genetic Algorithms in MATLAB (R2012a)?
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
MathWorks Support Team
el 22 de Jul. de 2016
Editada: MathWorks Support Team
el 5 de Mzo. de 2021
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
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.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Genetic Algorithm en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!