Dear all,
I have this function which I minimize:
g=randn(1000,1);u=randn(1000,1);y=randn(1000,1);options = optimoptions('fmincon','Display','off');f = @(x) sum( ( y-x(1)*g-u*x(2) ).^2 ); nonlcon = @unitdisk; x = fmincon(f,[0.2 0.02],[],[],[],[],[],[],nonlcon,options);
where
function [c,ceq] = unitdisk(x)c = - x(2) +0.01;ceq = [];
Is there a faster way of doing this minimization?
Thanks in advance.
Best Answer