About running POWELL algorithm in MATLAB

13 vues (au cours des 30 derniers jours)
DSP
DSP le 14 Juin 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.

Réponses (1)

Walter Roberson
Walter Roberson le 14 Juin 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?

Catégories

En savoir plus sur Statistics and Machine Learning Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by