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

 Risposta accettata

Grzegorz Knor
Grzegorz Knor il 17 Nov 2011

1 voto

Set the following options using psoptimset:
  • 'CompletePoll' to 'on'.
  • 'Vectorized' to 'off'
  • 'UseParallel' to 'always'.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by