Added the ability to stop the iterations early if the cost value is a nan (not a number) value for all models that uses IterativeMethodBaseModel.
Added autoResetConvergenceCheck parameter to the IterativeMethodBaseModel’s new() constructor.