I've been utilizing patternsearch for awhile to tune parameters for a black box simulation inside my objective function. It's working great. The most effective method for me has been the MADSPositiveBasis2N search function. However, it seems that when I set that as the search function, parallel computing is then disabled. I've confirmed that parallel computing takes place when using GSS or GPS search functions. According the bottom of this page, UseParallel should work for all search functions. Can anyone give me any insight into why this may not be working?
I've validated my local computing cluster.
A code snippet:
pattOpts = optimoptions('patternsearch','UseParallel',true,'Display','iter','MaxTime',60,'SearchFcn','MADSPositiveBasis2N'); [passVals,fVal] = patternsearch(fun_pass,initialPoint,[],[],[],[],lb,ub,[],pattOpts)
Best Answer