How to force ga and particleswarm to stop ONLY on max iterations reached
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
JMP Phillips
am 4 Sep. 2015
Kommentiert: hemanth chaduvula
am 16 Jun. 2020
ga and particleswarm has a few stopping conditions I don't want it to stop running once tolerance is met, but continue for max iterations. Tried to do this by setting TolFun to 0 but doesn't work.
options = optimoptions('particleswarm','OutputFcns',@mypsoutputfun, 'MaxIter',MaxGeneration_fun,'SwarmSize',n_pop_ps,'Display','none','StallTimeLimit', 1,'TolFun', 0)
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 4 Sep. 2015
I would suggest an experiment of setting the stall limit fairly high. You could try inf but that might not be accepted. Memory might be allocated for holding this many values so you might not be able to get too wild.
2 Kommentare
hemanth chaduvula
am 16 Jun. 2020
Dear sir
If I set 'StallIterLimit' >= MaxIter then it shows following error
"Matrix dimensions must agree". Please solve my issue.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Particle Swarm 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!