Genetic Algorithm parallel computing, why numlabs is still equal to one?
1 次查看(过去 30 天)
显示 更早的评论
Hi all,
I'm implementing a code in which I need to use parallel computing.
For some parts of the code I can use "parfor" and "spmd" regions, but when I start using genetic algoritm (ga) some problems come out.
I set "UseParallel',true" or "UseParallel','always'" in the optimoptions and still the number of workers implied is one.
I can see this from the numlabs or the labindex variables.
Moreover, the time spent with parallel computing on is equal or greater than the not parallelized code, so I don't understand what's happening inside.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Genetic Algorithm 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!