The problem: If an energy class without curvature is defined and then minimized with RelaxedNewton, it does not raise an error and continues the script. In this way, I thought that my algorithm estimates noise variances but it doesn't.
I do not know how to implement this check properly. Do I really need to import
sys for that and use