I have a function name I want to optimize with to minimize this function
And I want to provide the gradient of function to speed up the optimization.
The definition of is
function [F] = f(x) % size(x) = [a*b, 1]
Z = reshape(x, [a, b]); % size(Z)= [a, b]
% size(A) = [c, a]
B = A * Z; % size(B) = [c, b]
% size(C) = [c, b]
D = sum(B.*C, 2); % [c, 1]
E = abs(D).^2; % [c, 1] F = max(E); % scalar, my objective
end
I want to use chain rules, but I have the following questions:
- I cannot figure an easy way to get the jacobian of , i.e. the reshape function.
- the jacobian of
- the jacobian of function.
Thank you for your help!!
Best Answer