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