Products & Services Solutions Academia Support User Community Company

Learn more about Optimization Toolbox   

Improving Performance with Parallel Computing

Factors That Affect Speed

Some factors may affect the speed of execution of parallel processing:

Factors That Affect Results

Some factors may affect numerical results when using parallel processing. There are more caveats related to parfor listed in the Limitations section of the Parallel Computing Toolbox documentation.

Searching for Global Optima

To search for global optima, one approach is to evaluate a solver from a variety of initial points. If you distribute those evaluations over a number of processors using the parfor function, you disable parallel gradient estimation, since parfor loops cannot be nested. Your optimization usually runs more quickly if you distribute the evaluations over all the processors, rather than running them serially with parallel gradient estimation, so disabling parallel estimation probably won't slow your computation. If you have more processors than initial points, though, it is not clear whether it is better to distribute initial points or to enable parallel gradient estimation.

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS