How can I terminate the ga (genetic aclgorithm) optimizer based on elapsed cpu time?
Ältere Kommentare anzeigen
The ga optimizer (genetic algorithm) can be given various stopping criteria: number of (stalled) iterations, wall clock (stalled) time. However, on a computer where other processes are also taking cpu time, the wall clock is not a dependable measure of elapsed computation time. This makes some computations hard to reproduce. I would assume that it in principle the cpu time of the Matlab process is a better measure in that case.
So, Is it possible to use elapsed cpu time as a stopping criterion for the ga optimizer? I assumed that one would be able to define one's own stopping criteria, but from the documentation it is not clear to me which option I should use, or whether my assumption is correct.
Akzeptierte Antwort
Weitere Antworten (0)
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!