About running POWELL algorithm in MATLAB

13 ビュー (過去 30 日間)
DSP
DSP 2015 年 6 月 14 日
回答済み: Walter Roberson 2015 年 6 月 14 日
Dear all,
I downloaded the necessary toolboxes for POWELL algorithm http://www.mathworks.com/matlabcentral/fileexchange/15072-unconstrained-optimization-using-powell but when I try to run the routine I get an error message:
Not enough input arguments.
Error in powell (line 48)
y0=feval(S,x0)*problem;
Error in localize_POWELL (line 259)
[xo, Ot, nS] = powell('fit',[0,0,0,0,0],0,1,[],[],-1,1e-4,300);
I was wondering whether any of you had any experience in working with POWELL global optimization algorithm.
Any comments are welcome...Also if anybody does have matlab code for powell algorithm.feel free to post. thanks.

回答 (1 件)

Walter Roberson
Walter Roberson 2015 年 6 月 14 日
The routine you passed to process, 'fit', is http://www.mathworks.com/help/curvefit/fit.html and requires a minimum of 3 arguments: x, y, fittype.
To avoid confusion I recommend that you pass in a function handle instead of a string.
I am not sure why you are asking for MATLAB code for powell when you posted a link to the place the code is?

カテゴリ

Help Center および File ExchangeStatistics and Machine Learning Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by