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 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