My hessian calculation failed. How can I find out why?
1 Answer
0
The first step in finding out why your hessian calculation failed is to find and store the hessian. You can find instructions on that step here.
Once you have your hessian, you should check the eigenvalues. You can use the GAUSS functions eig() or eigh() for this. If any of the eigenvalues are zero (or zero to machine precision i.e. 1e-15 or so) then your hessian has some linear dependencies. You can alternatively check the rank of the matrix with the rank function.
Your Answer
1 Answer
The first step in finding out why your hessian calculation failed is to find and store the hessian. You can find instructions on that step here.
Once you have your hessian, you should check the eigenvalues. You can use the GAUSS functions eig() or eigh() for this. If any of the eigenvalues are zero (or zero to machine precision i.e. 1e-15 or so) then your hessian has some linear dependencies. You can alternatively check the rank of the matrix with the rank function.