Surrogate optimization throws error when I try to use the vectorized option

1 view (last 30 days)
Hello,
Attemting to use vectorized option in surrogate optimization fails and I am not able to figour out
the reason behind. I get the following error message
'UseVectorized' is not an option for SURROGATEOPT.
A list of options can be found on the SURROGATEOPT documentation page.
Bellow, I show you the main part (L believe this should be enough)
options=optimoptions('surrogateopt','PlotFcn'[],'MaxFunctionEvaluations',10^8,'UseVectorized',true,'MinSurrogatePoints',200,'OutputFcn',@(x,optimValues,state)myoutput_Spline(x,optimValues,state,dt,M));
surrogateopt(cost,lb,ub,options)
Any idea?
Thanks a lot!
Babak
  4 Comments
Mohammad Shojaei Arani
Mohammad Shojaei Arani on 29 Aug 2022
Hi Torsten,
I use matlab 2022. I checked again and could not find anything. I get error after calling 'surrogateopt'.
But, it does not matter. I am not actually using surrogate optimization (I got faster and more accurate results using particle swarm optimization).
Thanks again for your kind help!
Babak

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!