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?

Answers (1)

Alan Weiss
Alan Weiss on 24 Feb 2017
Edited: Alan Weiss on 24 Feb 2017
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

Tags

Asked:

on 24 Feb 2017

Edited:

on 24 Feb 2017

Community Treasure Hunt

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

Start Hunting!