Saving intermediate population during GA
이전 댓글 표시
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
채택된 답변
추가 답변 (1개)
Daniel Frisch
2020년 10월 7일
You can use my function
outputFcn_global
to store all intermediate results in a global variable, and easily inspect them later on.
카테고리
도움말 센터 및 File Exchange에서 Genetic Algorithm에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!