Parallel GA is Ignoring Time Limit?
Mostrar comentarios más antiguos
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?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre MATLAB en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!