Patter search optimization, not getting fittest solution

1 view (last 30 days)
Have adapted a code a GA code to run with PS but it get to a solution after a few iterations and can not find a fitter solution. I can manually find better solution by changing around the variable.
Keeps on refining the mesh without finding a better solution:
48 393 36176.4 9.537e-07 Refine Mesh Optimization terminated: mesh size less than options.TolMesh.

Answers (1)

Alan Weiss
Alan Weiss on 30 Jan 2015
I suggest that you put finite bounds on each variable, lb and ub. Then start your optimization at several random initial points:
x0 = lb + rand(size(lb)).*(ub - lb);
Alan Weiss
MATLAB mathematical toolbox documentation
  2 Comments
Mo
Mo on 2 Feb 2015
How do I give it several initial points? There doesn't seam to be way of defining the number of variable to optimize, so it takes the entire size of the array of initial points as the number of variables.
Alan Weiss
Alan Weiss on 3 Feb 2015
What I mean is, give points one at a time as you run the optimization multiple times.
Alan Weiss
MATLAB mathematical toolbox documentation

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!