An in-built sanity check can be performed, which when a non-linear search restarts compares the output value of the likelihood function to a value saved during the previous run.
If the values are inconsistent, an exception is raised.
This catches fits where the likelihood function has changed or is numerically unstable.
This PR simplifies the code by having just one config entry to turn the feature on and off. It also disables it by default, as it slows down the code and should not be relevent for most end users who do not interact with the source code.
An in-built sanity check can be performed, which when a non-linear search restarts compares the output value of the likelihood function to a value saved during the previous run.
If the values are inconsistent, an exception is raised.
This catches fits where the likelihood function has changed or is numerically unstable.
This PR simplifies the code by having just one config entry to turn the feature on and off. It also disables it by default, as it slows down the code and should not be relevent for most end users who do not interact with the source code.