9#include <boost/python/args.hpp>
10#include <boost/python/class.hpp>
17struct MinimizerStatusNamespace {};
21 auto pythonClass = class_<MinimizerStatusNamespace, boost::noncopyable>(
23 "The status strings a function minimizer reports through a fit's OutputStatus, and the test for "
24 "whether one of them means the fit converged. Mirrors Mantid::API::MinimizerStatus so Python "
25 "callers do not have to hard code the wording.",
29 "Whether a fit OutputStatus means the minimizer converged. With strict=True only 'success' "
30 "counts; otherwise the tolerance-limited stopping conditions do too, because a minimizer "
31 "started from an already-optimal set of parameters stops that way routinely.");
32 pythonClass.staticmethod(
"isConverged");
void export_MinimizerStatus()
const std::string CHANGES_IN_FUNCTION_TOO_SMALL
Reported by Levenberg-Marquardt when the change in the cost function between iterations has fallen be...
bool isConverged(const std::string &status, const bool strict=false)
Whether a Fit "OutputStatus" string should be treated as a converged fit.
const std::string CHANGES_IN_PARAMETER_TOO_SMALL
Reported by Levenberg-Marquardt when the change in the parameter values between iterations has fallen...
const std::string SUCCESS
Reported when a minimizer has fully converged.