Bisection Method in parallel

I am trying to develop bisection method to find the roots in parallel.
How to work in parallel parfor?

回答(1 个)

Edric Ellis
Edric Ellis 2015-4-27

0 个投票

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.

类别

在 帮助中心 和 File Exchange 中查找有关 Parallel for-Loops (parfor) 的更多信息

提问:

2015-4-25

编辑:

2015-5-5

Community Treasure Hunt

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

Start Hunting!

Translated by