Hi all, I'm performing an optimization using fmincon as follows:
r=[0.22 9.94 0.08; 0.16 0.95 0.08; 0.07 0.87 0.08];R = [0.49; 0.42; 0.19];x = fmincon(@(x) norm(r*x-R)^2, ones(3,1)/3, [], [], ones(1,3), 1, zeros(3,1), []);
Here, I wan to use a cost function for this optimization.
where , and x is a vector of initial guess values.
Could you somebody help me with this?
Best Answer