15 #ifndef BORNAGAIN_FIT_ROOTADAPTER_GSLLEVENBERGMARQUARDTMINIMIZER_H
16 #define BORNAGAIN_FIT_ROOTADAPTER_GSLLEVENBERGMARQUARDTMINIMIZER_H
24 class GSLNLSMinimizer;
54 std::map<std::string, std::string>
statusMap()
const override;
Declares class RootMinimizerAdapter.
A fittable parameter with value, error, step, and limits.
It's a facade to ROOT::Math::GSLNLSMinimizer which, in turn, is a facade to the actual GSL's gsl_mult...
void setMaxIterations(int value)
Sets maximum number of iterations.
~GSLLevenbergMarquardtMinimizer() override
void setTolerance(double value)
Sets tolerance on the function value at the minimum.
std::unique_ptr< ROOT::Math::GSLNLSMinimizer > m_gsl_minimizer
void setParameter(unsigned int index, const Fit::Parameter &par) override
std::string statusToString() const override
Returns string representation of current minimizer status.
bool requiresResiduals() override
Returns true if minimizer computations are residual-based, false otherwise.
const root_minimizer_t * rootMinimizer() const override
void propagateOptions() override
void setPrintLevel(int value)
Sets minimizer internal print level.
std::map< std::string, std::string > statusMap() const override
Returns map of string representing different minimizer statuses.
int maxIterations() const
GSLLevenbergMarquardtMinimizer()
Pure virtual interface that adapts the CERN ROOT minimizer to our IMinimizer.
ROOT::Math::Minimizer root_minimizer_t