Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

getting fmincon error after a call

조회 수: 1 (최근 30일)
seldeeno
seldeeno 2013년 4월 24일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi,
What is wrong with this call to fmincon:
[temppop,tempval,exitflag,output] = fmincon(@myfun,pop(idx(i),:),[],[],[],[],XRmin(1,:),XRmax(1,:),@mycon,opts,varargin{:});
I am getting this error: Error using myfun Too many input arguments.
Where myfun is:
function f = myfun(x),
[f, c, ceq] = mlbsuite(x, 38, 0, 'g16');
f = - f; %

답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by