parallel processing patternsearch.m ?

How does one enable the parallel processing with patternsearch.m ? I used these commands (see below) but only one of my cores was active for the optimization. I have the parallel toolbox installed.
matlabpool open
options = psoptimset('UseParallel','always','MaxFunEvals',10000);
[cx,fval,exitflag,output] = ...
patternsearch(score,c0,A,b,[],[],[],[],[],options);

 采纳的回答

Grzegorz Knor
Grzegorz Knor 2011-11-17
Set the following options using psoptimset:
  • 'CompletePoll' to 'on'.
  • 'Vectorized' to 'off'
  • 'UseParallel' to 'always'.

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Problem-Based Optimization Setup 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by