16#ifndef MATH_NO_PLUGIN_MANAGER
107 static constexpr auto defaultDefaultMinimizer =
"Minuit2";
109#ifdef MATH_NO_PLUGIN_MANAGER
138 fExtraOptions(nullptr)
153 if (
this == &opt)
return *
this;
218 os << std::setw(25) <<
"Minimizer Type" <<
" : " << std::setw(15) <<
fMinimType << std::endl;
219 os << std::setw(25) <<
"Minimizer Algorithm" <<
" : " << std::setw(15) <<
fAlgoType << std::endl;
220 os << std::setw(25) <<
"Strategy" <<
" : " << std::setw(15) <<
fStrategy << std::endl;
221 os << std::setw(25) <<
"Tolerance" <<
" : " << std::setw(15) <<
fTolerance << std::endl;
222 os << std::setw(25) <<
"Max func calls" <<
" : " << std::setw(15) <<
fMaxCalls << std::endl;
223 os << std::setw(25) <<
"Max iterations" <<
" : " << std::setw(15) <<
fMaxIter << std::endl;
224 os << std::setw(25) <<
"Func Precision" <<
" : " << std::setw(15) <<
fPrecision << std::endl;
225 os << std::setw(25) <<
"Error definition" <<
" : " << std::setw(15) <<
fErrorDef << std::endl;
226 os << std::setw(25) <<
"Print Level" <<
" : " << std::setw(15) <<
fLevel << std::endl;
229 os <<
fMinimType <<
" specific options :" << std::endl;
248 if (!tmp.ExtraOptions() ) {
251 os <<
"Specific options for " <<
name << std::endl;
252 if (opt) opt->
Print(os);
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
#define R__WRITE_LOCKGUARD(mutex)
#define R__READ_LOCKGUARD(mutex)
static void PrintAllDefault(std::ostream &os=std::cout)
print all the default options
static IOptions & Default(const char *algoname)
static IOptions * FindDefault(const char *algoname)
Generic interface for defining configuration options of a numerical algorithm.
virtual IOptions * Clone() const =0
virtual void Print(std::ostream &=std::cout) const
print options
MinimizerOptions & operator=(const MinimizerOptions &opt)
assignment operators
static int DefaultPrintLevel()
static double DefaultPrecision()
static ROOT::Math::IOptions & Default(const char *name)
Retrieve extra options for a given minimizer name.
static void SetDefaultMaxFunctionCalls(int maxcall)
Set the maximum number of function calls.
double fPrecision
precision of the objective function evaluation (value <=0 means left to default)
std::string fMinimType
Minimizer type (Minuit, Minuit2, etc..
const IOptions * ExtraOptions() const
return extra options (NULL pointer if they are not present)
static ROOT::Math::IOptions * FindDefault(const char *name)
Find an extra options and return a nullptr if it is not existing.
static double DefaultTolerance()
int fMaxIter
maximum number of iterations
static void SetDefaultExtraOptions(const IOptions *extraoptions)
Set additional minimizer options as pair of (string,value).
static IOptions * DefaultExtraOptions()
std::string fAlgoType
Minimizer algorithmic specification (Migrad, Minimize, ...)
static void SetDefaultMaxIterations(int maxiter)
Set the maximum number of iterations.
static void SetDefaultErrorDef(double up)
Set the default level for computing the parameter errors.
static void SetDefaultMinimizer(const char *type, const char *algo=nullptr)
Set the default Minimizer type and corresponding algorithms.
static void SetDefaultStrategy(int strat)
Set the default strategy.
static void SetDefaultPrecision(double prec)
Set the default Minimizer precision.
static const std::string & DefaultMinimizerType()
double fTolerance
minimize tolerance to reach solution
void SetExtraOptions(const IOptions &opt)
set extra options (in this case pointer is cloned)
int fStrategy
minimizer strategy (used by Minuit)
int fLevel
debug print level
static void PrintDefault(const char *name=nullptr, std::ostream &os=std::cout)
Print all the default options including the extra one specific for a given minimizer name.
int fMaxCalls
maximum number of function calls
static const std::string & DefaultMinimizerAlgo()
double fErrorDef
error definition (=1. for getting 1 sigma error for chi2 fits)
static void SetDefaultPrintLevel(int level)
Set the default Print Level.
static int DefaultMaxFunctionCalls()
ROOT::Math::IOptions * fExtraOptions
static int DefaultStrategy()
void ResetToDefaultOptions()
non-static methods for setting options
static void SetDefaultTolerance(double tol)
Set the Minimization tolerance.
void Print(std::ostream &os=std::cout) const
print all the options
static int DefaultMaxIterations()
static double DefaultErrorDef()
virtual Int_t GetValue(const char *name, Int_t dflt) const
Returns the integer value for a resource.
Namespace for new Math classes and functions.
static double gDefaultPrecision
static int gDefaultPrintLevel
static int gDefaultStrategy
static std::string gDefaultMinimAlgo
static double gDefaultTolerance
static int gDefaultMaxCalls
static int gDefaultMaxIter
static double gDefaultErrorDef
static std::string gDefaultMinimizer
static IOptions * gDefaultExtraOptions
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
R__EXTERN TVirtualRWMutex * gCoreMutex