Parallel processing in ga using 'UseParallel'

6 visualizaciones (últimos 30 días)
Jonas
Jonas el 9 de Ag. de 2022
Respondida: Matt J el 10 de Ag. de 2022
Hello all,
I want to use the ga() function to optimize a cooling system. The simulation program is a co-simulation with Simulink models, GT models and so on. The idea is that I put the script that runs in the co-simulation into the objective function. Unfortunately I have a very high computation time (up to 6h). Therefore, I would like to compute part of the generation in parallel (e.g. ten individuals at once).
Does anyone have an idea how 'UseParallel' works exactly? Is it that it calls the objective function in parallel? And can I specify in the parallel pool settings that only 10 are called in parallel at a time?
If anyone has an answer to my questions, or perhaps has another idea on how to tackle this problem, I would be very grateful.

Respuestas (1)

Matt J
Matt J el 10 de Ag. de 2022
Is it that it calls the objective function in parallel?
Yes.
And can I specify in the parallel pool settings that only 10 are called in parallel at a time?
That is determined by the pool size that you set.

Categorías

Más información sobre Manual Performance Optimization en Help Center y File Exchange.

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by