Objective and constraint function evolution count in fmincon
10 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Md Abu Talhamainuddin Ansary
el 14 de Sept. de 2017
Comentada: Matt J
el 18 de Sept. de 2017
How to find number of objective and constraint function , gradient, hessian count in fmincon using interior point method?
0 comentarios
Respuestas (1)
Matt J
el 14 de Sept. de 2017
The number of function evaluations and number of iterations is returned in fmincon's 4th output argument. The number of Hessian and gradient evaluations should equal the number of iterations.
4 comentarios
Matt J
el 18 de Sept. de 2017
function varargout=nonlcon(x)
persistent count
if isempty(count), count=0; end
count=count+1;
if nargin==1
varargout={count}; return
else
ceq=[];
c=norm(x)^2-225;
varargout={c,ceq};
end
end
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!