15 #ifndef BORNAGAIN_FIT_ROOTADAPTER_MINUIT2MINIMIZER_H
16 #define BORNAGAIN_FIT_ROOTADAPTER_MINUIT2MINIMIZER_H
50 double errorDefinition()
const;
57 double tolerance()
const;
63 double precision()
const;
68 int printLevel()
const;
72 int maxFunctionCalls()
const;
75 std::map<std::string, std::string>
statusMap()
const override;
81 const root_minimizer_t* rootMinimizer()
const override;
84 std::unique_ptr<ROOT::Minuit2::Minuit2Minimizer> m_minuit2_minimizer;
Declares class RootMinimizerAdapter.
Wrapper for the CERN ROOT facade of the Minuit2 minimizer.
void setPrecision(double value)
Sets relative floating point arithmetic precision.
void propagateOptions() override
Propagate options down to ROOT's Minuit2Minimizer.
void setMaxFunctionCalls(int value)
Sets maximum number of objective function calls.
void setPrintLevel(int value)
Sets minimizer internal print level.
void setStrategy(int value)
Sets minimization strategy (0-low, 1-medium, 2-high minimization quality).
std::string statusToString() const override
Returns string representation of current minimizer status.
void setTolerance(double value)
Sets tolerance on the function value at the minimum.
void setErrorDefinition(double value)
Sets error definition factor for parameter error calculation.
std::map< std::string, std::string > statusMap() const override
Returns map of string representing different minimizer statuses.
bool requiresResiduals() override
Returns true if minimizer computations are residual-based, false otherwise.
Pure virtual interface that adapts the CERN ROOT minimizer to our IMinimizer.
std::string algorithmName() const override final
Returns name of the minimization algorithm.