how do you specify a minimum step size in simulated annealing

4 views (last 30 days)
In the function simulannealbnd, is there some way to force the step size of the variables you are optimizing to be some number. For instance, if I have a function:
% error function erfunc = @(xi) max(func(xi));
% initial input xo = 300; lb = 100; ub = 500;
% optimize as xf = simulannealbnd(erfunc,xo,lb,ub);
Can I make simulannealbnd search in steps of 5?

Answers (0)

Community Treasure Hunt

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

Start Hunting!