Borrar filtros
Borrar filtros

Selectively pause function execution?

2 visualizaciones (últimos 30 días)
Joe
Joe el 6 de Feb. de 2016
Respondida: Walter Roberson el 6 de Feb. de 2016
Hi - I am doing a long optimization using the generic algorithm. To speed it up I am enabling parallel execution of the generic algorithm, so there will be multiple instances of the cost function executing in parallel. The cost function uses the pause function. Every time one instance of the cost function executes the pause function, will it pause only that specific instance or will pause all Matlab executions (I.e. All instances executing in parallel)?
Keep in mind that even if all instances will execute the same script, they will do with different data / parameters, so not all of them will reach the pause line in their code at unison. I want to make sure that the effect of the pause function is contained to the specific instance of the cost function only.
Anyone can shed some light? Thanks!

Respuesta aceptada

Walter Roberson
Walter Roberson el 6 de Feb. de 2016
It will pause only that one process.

Más respuestas (0)

Categorías

Más información sobre Genetic Algorithm en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by