Regarding Maximum number of Workers for parallel computing
显示 更早的评论
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 个评论
Walter Roberson
2018-3-12
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
2018-3-12
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
2018-3-12
回答(1 个)
Walter Roberson
2018-3-12
0 个投票
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.
类别
在 帮助中心 和 File Exchange 中查找有关 Problem-Based Optimization Setup 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!