I met a problem that I want to pass Hessian information to the 'fminunc'. I use:
options = optimset('Hessian', 'on');
and form the Hessian information as a matrix which costs lots of memory. May I ask how to form a Hessian as a function and pass this function to the fminunc please?
10. using fminunc