Record best solution in each GA generation running with UseParallel=true
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Mitsu
am 17 Jan. 2021
Kommentiert: Star Strider
am 8 Feb. 2021
Hello,
Is there a way to record the best solution at each generation running with parallelization? (that is, with UseParallel=1)
I used outputFcn_global (from File Exchange), but it uses a global variable to record the info. In each generation, I would like to use the output function to just record the best solution (e.g. 1x1000 array) in the population. Since my objective function is a combination of several things, I need the best solution of each generation to then calculate the value of each term in the fitness function separately, and see how the objectives evolve over the generations.
Is there a way to do that without global variables?
0 Kommentare
Akzeptierte Antwort
Star Strider
am 17 Jan. 2021
See: How to save data from Genetic Algorithm in case MATLAB crashes? That will likely do what you want. Define it as the output function 'OutputFcn',@SaveOut.
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Genetic Algorithm finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!