Parallel Optimization with multistart and fmincon

조회 수: 6 (최근 30일)
KELVYN BARUC
KELVYN BARUC 2012년 4월 7일
Hello,
I am running an optimization program with fmincon and multistart. I have 4 workers but I don't know which option is better.
  1. Multistart in parallel always and fmincon with parallel always.
  2. Multistart in parallel always and fmincon with parallel never.
Thanks in advance!

답변 (3개)

Alan Weiss
Alan Weiss 2012년 4월 16일
parfor has the limitation that inner parfor loops are not run in parallel, only the outermost parfor loop is run in parallel. The situation you ask about is documented in http://www.mathworks.com/help/toolbox/gads/bsc7xh9-1.html#bsc7x1l
The short answer is your option 1 is likely to be slightly faster, but in any case both options run pretty much the same, with just MultiStart running in parallel.
Alan
  댓글 수: 1
KELVYN BARUC
KELVYN BARUC 2012년 4월 16일
Thank you so much!! It's what I was looking for.

댓글을 달려면 로그인하십시오.


Sargondjani
Sargondjani 2012년 4월 7일
just try?? this is likely to be very problem dependent...

Paul Kerr-Delworth
Paul Kerr-Delworth 2012년 4월 12일
Hi Kelvyn,
There are some guidelines in the Optimization Toolbox documentation on parallel computing with the Optimization Toolboxes. See the following link for more information
Hope this helps!
Best regards,
Paul

카테고리

Help CenterFile Exchange에서 Solver Outputs and Iterative Display에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by