Parallel GA is Ignoring Time Limit?
Ältere Kommentare anzeigen
When running a vectorized GA
options = gaoptimset('Vectorized', 'off', 'UseParallel', 'Always', 'TimeLimit', 300);
it will run indefinitely (left it running for more than two hours, and it still hadn't stopped or found an optimal solution.
But when I change it to
options = gaoptimset('Vectorized', 'on', 'TimeLimit', 300);
It runs just fine and stops after 5 minutes. Before running the parallel version, I run 'matlabpool 4'. Does the parallelization usually negate the time limit, or does someone have any clue why it would do so?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu MATLAB finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!