I received the error code "Hessian calculation failed"

My hessian calculation failed. How can I find out why?

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.

You must login to post answers.

Have a Specific Question?

Get a real answer from a real person

Need Support?

Get help from our friendly experts.

Try GAUSS for 14 days for FREE

See what GAUSS can do for your data

© Aptech Systems, Inc. All rights reserved.

Privacy Policy