About running POWELL algorithm in MATLAB

12 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Statistics 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