I'm using these functions to minimize a problem, with the default algorithm choice for no user-supplied Hessian. For these algorithms, fminunc/fmincon calculate the numerical Hessian at the solution (for other algorithms, it reports the next-to-last-iterate Hessian).
I would like to turn off the calculation of this final Hessian shorten runtime. It is not useful at this particular point in the code. Is it possible to do this?
Best Answer