How can i use all CPU ?
이전 댓글 표시
Hi to all, I am using geneting algorithms for optimization sake but it taking so much time , matlab2009a is not using all 4 cores of cpu i tried to change to priority of matlab to hight but still consuming only : 25%
what should i do?
답변 (1개)
Alan Weiss
2017년 2월 24일
편집: Alan Weiss
2017년 2월 24일
If you have a Parallel Computing Toolbox™ license, you can try using that in conjunction with the ga UseParallel option. Other than that, I have no ideas for speeding up ga.
However, if you want a faster and more reliable optimizer, try using patternsearch. It solves the same problems as ga, and is easier to tune. The one thing that some people want is to find a global optimum. In that case, run patternsearch repeatedly, starting from a variety of initial points x0, such as
x0 = lb + rand(size(lb)).*(ub - lb);
Good luck,
Alan Weiss
MATLAB mathematical toolbox documentation
카테고리
도움말 센터 및 File Exchange에서 Genetic Algorithm에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!