About running POWELL algorithm in MATLAB

17 views (last 30 days)
DSP
DSP on 14 Jun 2015
Answered: Walter Roberson on 14 Jun 2015
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.

Answers (1)

Walter Roberson
Walter Roberson on 14 Jun 2015
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?

Community Treasure Hunt

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

Start Hunting!