数学建模社区-数学中国

标题: 格点搜索和单纯形法Matla源代码 [打印本页]

作者: 建不了的模。    时间: 2014-11-11 16:20
标题: 格点搜索和单纯形法Matla源代码
格点搜索和单纯形法Matla源代码
20081219_d49bccfb3c7678ca7a9adJndDEgQcbCm.jpg.thumb.jpg
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.




作者: 苍松绿竹    时间: 2014-11-11 20:26
!!!!!!!!!!!!!!!!!!!!!!!!

作者: 栀子流年5    时间: 2014-12-11 19:29
!!!!!!!!!!!!!!!!!这个有点生猛啊

作者: 曙光86    时间: 2015-1-31 11:19
看一看。。。

作者: 5wujiang    时间: 2015-1-31 15:59
!!!!!!!!11

作者: 励俊07    时间: 2015-1-31 16:54
学习!!!!!!!!!

作者: ff0rest    时间: 2015-9-18 22:23
谢谢谢谢谢谢小星星

作者: 化螺耕    时间: 2015-10-2 16:53
留名学习!!!


作者: 好聚好散5234    时间: 2016-1-8 13:22
再找单纯形法的资料和程序,希望能有所收获

作者: 万年学渣    时间: 2016-11-30 09:56
1111111111111111

作者: 神话VS蓝天    时间: 2016-11-30 13:21
单纯性单纯性单纯性

作者: 醉落花开颜    时间: 2017-1-8 19:46
哟哟哟哟哟哟

作者: 999wansui    时间: 2017-8-25 11:59
看一看看一看

作者: 源源源    时间: 2020-3-13 21:08
66666666666666666

作者: hguirehriuohgah    时间: 2020-4-17 16:30



很不错,很有意义的分享,感谢楼主





欢迎光临 数学建模社区-数学中国 (http://www.madio.net/) Powered by Discuz! X2.5