Make the computation of the Hessian optional
Not all solvers need the Hessian. Its computation can take a quite some time, so it makes sense to skip the computation if not needed.
Not all solvers need the Hessian. Its computation can take a quite some time, so it makes sense to skip the computation if not needed.