Regarding Maximum number of Workers for parallel computing
Mostrar comentarios más antiguos
I am using fmincon and GA optimization tool for my optimization problem. I have a cluster virtual machine having 64 GB RAM and 64 cores. I want to know how many workers should I use to minimize the time of optimization?
3 comentarios
Walter Roberson
el 12 de Mzo. de 2018
Are you using the Parallel option for your ga() call? Is your fmincon using parfor? What kind of computation is involved at each of the levels?
Walter Roberson
el 12 de Mzo. de 2018
https://www.mathworks.com/matlabcentral/answers/332183-useparallel-option-with-fmincon
Parallel for fmincon is parallel estimates of gradient. How many variables are you optimizing over? What kind of calculations are you using in your objective function?
How prone to local minima is your objective function? fmincon is not very good at doing global minimization.
gaurav kataria
el 12 de Mzo. de 2018
Respuestas (1)
Walter Roberson
el 12 de Mzo. de 2018
0 votos
For three variables and just minimizing sum of squares, you should not use parallel for fmincon. The overhead of parallel would slow you down a lot.
For simple sum of squares you should probably be using a routine such as linear least squares, not fmincon.
Categorías
Más información sobre Problem-Based Optimization Setup 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!