Be the first to rate this file! 22 downloads (last 30 days) File Size: 1.95 KB File ID: #7237

SIMPGDSEARCH

by Yo Fukushima

 

22 Mar 2005 (Updated 24 Mar 2005)

No BSD License  

Multi-dimensional unconstrained nonlinear minimization using grid search + Simplex method.

Download Now | Watch this File

File Information
Description

SIMPGRIDSEARCH Multi-dimensional unconstrained nonlinear minimization using grid search + Simplex method.
 
X = SIMPGDSEARCH(OBJFUN,GDVALUES) returns a vector X that is a minimizer of the function described in OBJFUN (usually an m file: OBJFUN.M).

See OBJFUN_DEMO.M for how to write an objective function. It should at least have one input argument (a vector, of which length is equal to the number of parameters).
 
GDVALUES is a cell array of which number of rows is equal to number of parameters. n-th row specifies the grid values for the n-th parameter. All the combination of the grid values are tried (grid search) and then the best parameter set is used as an input guess value for the Nelder-Mead simplex method (FMINSEARCH).
 
X = IMPGDSEARCH(OBJFUN,GDVALUES,ADDARG) passes additional arguments to the objective function. This should be a cell array consisting of a set of arguments.

SIMPGDSEARCH(OBJFUN,GDVALUES,ADDARG,FILEOUT) writes search result to FILEOUT. Each row in FILEOUT denotes evaluated parameter values and corresponding objective function value. It is in the evaluated order. If there is no additional arguments to be given, then specify [] as ADDARG for this case.
 
    <Example>
       param1 = linspace(0,10,10);
       param2 = linspace(0,8,8);
       param3 = linspace(2,10,4);
       param4 = linspace(3,12,12);
       gdvalues = {param1 param2 param3 param4};
       objfun = 'objfun_demo';
       trueval = [2 4 6 8];
       coef = [1 2 3 4];
       addarg = {trueval,coef};
       x = simpgdsearch(objfun,gdvalues,addarg)
 
See also FMINSEARCH.

At the end of the file simpgdsearch.m, commands to produce the same figure as the snapshot is provided.

MATLAB release MATLAB 5.3.1 (R11.1)
Other requirements This function requires setprod.m, which is supposed to be available on the Matlab Central File Exchange site.
Zip File Content  
Other Files simpgdsearch.m,
objfun_demo.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
03 May 2006 Ramin Radmanesh

The execution is terminated by the following error message:

??? Error using ==> eval
Undefined command/function 'setprod'.

Error in ==> simpgdsearch at 64
eval(['model = setprod(' str ');']);

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
optimization Yo Fukushima 22 Oct 2008 07:44:04
simplex Yo Fukushima 22 Oct 2008 07:44:04
grid Yo Fukushima 22 Oct 2008 07:44:04
search Yo Fukushima 22 Oct 2008 07:44:04
optimisation Yo Fukushima 22 Oct 2008 07:44:05
fminsearch Yo Fukushima 22 Oct 2008 07:44:05
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com