Regarding Maximum number of Workers for parallel computing
Show older comments
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 Comments
Walter Roberson
on 12 Mar 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
on 12 Mar 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
on 12 Mar 2018
Answers (1)
Walter Roberson
on 12 Mar 2018
0 votes
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.
Categories
Find more on Problem-Based Optimization Setup in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!