Bisection Method in parallel
1 回表示 (過去 30 日間)
古いコメントを表示
I am trying to develop bisection method to find the roots in parallel.
How to work in parallel parfor?
0 件のコメント
回答 (1 件)
Edric Ellis
2015 年 4 月 27 日
This loop cannot run in parfor for two reasons - firstly, the iterations are not order-independent (this is a fundamental requirement for parfor), and secondly you cannot use break inside parfor (which is basically related to the order-independence requirement).
You could use spmd here which allows for communication between the workers, or you might wish to investigate the parallel computing support in Optimization Toolbox.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Parallel for-Loops (parfor) についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!