필터 지우기
필터 지우기

Genetic Algorithm parallel computing, why numlabs is still equal to one?

조회 수: 1 (최근 30일)
Giacomo Notaro
Giacomo Notaro 2020년 2월 10일
댓글: Tianshu Bao 2020년 6월 20일
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 CenterFile Exchange에서 Genetic Algorithm에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by