Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

getting fmincon error after a call

1 visualización (últimos 30 días)
seldeeno
seldeeno el 24 de Abr. de 2013
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
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; %

Respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by