Hi there, I have this optimizer minimizing f. The optimizer is trying various values for x variable. Would you maybe have an idea how I can obtain when the optimizer finishes a matrix with the x values the optimizer tried?
clearvarsf = @(x) x.^2;x0=5;x_min = -10;x_max = 10;TimeLimit_SA = 20;options = optimoptions(@simulannealbnd,'TimeLimit',TimeLimit_SA);[x_best,f_best,exitflag,output]=simulannealbnd(f,x0,x_min,x_max,options);
Best Answer