mesh size change in patternsearch

8 views (last 30 days)
hamid mehdizadeh
hamid mehdizadeh on 25 Apr 2011
I have a problem in using patternsearch. I want to search with big meshsize in initial steps, but the functions passes them without any function evaluation. Below you can see the results of running of the program:
Iter f-count f(x) MeshSize Method
0 1 890000 1000
1 1 890000 500 Refine Mesh
2 1 890000 250 Refine Mesh
3 1 890000 125 Refine Mesh
4 1 890000 62.5 Refine Mesh
5 1 890000 31.25 Refine Mesh
6 1 890000 15.62 Refine Mesh
7 1 890000 7.812 Refine Mesh
8 1 890000 3.906 Refine Mesh
9 1 890000 1.953 Refine Mesh
10 1 890000 0.9766 Refine Mesh
11 2 890000 0.4883 Refine Mesh
12 27 890000 0.2441 Refine Mesh
13 53 890000 0.1221 Refine Mesh
14 79 890000 0.06104 Refine Mesh
15 105 890000 0.03052 Refine Mesh
You can see that in the first 10 iteration no function evaluation happened. Do you have any idea?

Answers (2)

Rakesh Kumar
Rakesh Kumar on 31 May 2011
The trial points are probably infeasible with that big mesh size; hence no function evaluation.

Laura Proctor
Laura Proctor on 31 May 2011
You can customize many of the options in patternsearch using psoptimset.

Community Treasure Hunt

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

Start Hunting!