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
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
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
gaurav kataria 2018 年 3 月 12 日
I just want to know how many workers should I use to get minimum time for the optimization. Should I use maximum 64 workers or fewer workers? I am having 3 variables and I am minimizing a sum of square.

サインインしてコメントする。

回答 (1 件)

Walter Roberson
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 ExchangeProblem-Based Optimization Setup についてさらに検索

質問済み:

2018 年 3 月 12 日

回答済み:

2018 年 3 月 12 日

Community Treasure Hunt

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

Start Hunting!

Translated by