SIMPGDSEARCH

版本 1.0.0.0 (1.9 KB) 作者: Yo Fukushima
Multi-dimensional unconstrained nonlinear minimization using grid search + Simplex method.
2.7K 次下载
更新时间 2016/4/1

查看许可证

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.

引用格式

Yo Fukushima (2024). SIMPGDSEARCH (https://www.mathworks.com/matlabcentral/fileexchange/7237-simpgdsearch), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R11.1
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Optimization 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0

BSD License added.