Saving intermediate population during GA
Ältere Kommentare anzeigen
I need some help to find out a way to store the information related to every generation of the GA
(both the variable and the fitness values)
It could be both on an external file ( e.g. in a .txt file) or in a struct array.
Which one do you suggest? And how can I do it?
Thanks in advance
Akzeptierte Antwort
Weitere Antworten (1)
Daniel Frisch
am 7 Okt. 2020
You can use my function
outputFcn_global
to store all intermediate results in a global variable, and easily inspect them later on.
Kategorien
Mehr zu Genetic Algorithm finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!