Parallel processing in ga using 'UseParallel'

6 次查看(过去 30 天)
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.

回答(1 个)

Matt J
Matt J 2022-8-10
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.

类别

Help CenterFile Exchange 中查找有关 Manual Performance Optimization 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by