To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016
Hello, I would like to optimize to following expression:
Note: All are matrices.
I'd like to find:
How would you do that in MATLAB?
How would you use 'lsnonlin'?
What would be the analytical Jacobian?
No products are associated with this question.
I am not sure that I understand your notation, such as \|| . \||_F. But if you can write your objective function as a sum of squares, then you can use lsqnonlin. Otherwise, use fminunc.
You need to formulate your problem so there is a single vector or matrix of unknowns, x, that is what you want to vary. For example, if C^2 is M-by-N, and E^2 is N-by-K, then you could write
C2 = reshape(x(1:M*N),M,N); E2 = reshape(x(M*N+1:end),N,K);
and minimize over a vector x that has MN + NK components.
MATLAB mathematical toolbox documentation