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);

 Accepted Answer

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

More Answers (0)

Categories

Community Treasure Hunt

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

Start Hunting!