How can i use all CPU ?
Mostrar comentarios más antiguos
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?
Respuestas (1)
Alan Weiss
el 24 de Feb. de 2017
Editada: Alan Weiss
el 24 de Feb. de 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
Categorías
Más información sobre Genetic Algorithm en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!