11 #ifndef ROOT_Math_MinimizerOptions 12 #define ROOT_Math_MinimizerOptions 66 static void PrintDefault(
const char * name, std::ostream & os = std::cout);
115 void Print(std::ostream & os = std::cout)
const;
static int DefaultMaxFunctionCalls()
void SetPrintLevel(int level)
set print level
void SetTolerance(double tol)
set the tolerance
void SetMaxIterations(unsigned int maxiter)
set maximum iterations (one iteration can have many function calls)
This namespace contains pre-defined functions to be used in conjuction with TExecutor::Map and TExecu...
void SetMinimizerType(const char *type)
set minimizer type
static int DefaultStrategy()
static IOptions * DefaultExtraOptions()
void Print(std::ostream &os=std::cout) const
print all the options
unsigned int MaxIterations() const
max iterations
double ErrorDef() const
error definition
static void SetDefaultExtraOptions(const IOptions *extraoptions)
void SetErrorDef(double err)
set error def
static void SetDefaultMaxIterations(int maxiter)
static ROOT::Math::IOptions & Default(const char *name)
retrieve extra options - if not existing create a IOptions
void ResetToDefaultOptions()
non-static methods for setting options
double Tolerance() const
absolute tolerance
double Precision() const
precision in the objective funciton calculation (value <=0 means left to default) ...
static void SetDefaultPrintLevel(int level)
void SetPrecision(double prec)
set the precision
MinimizerOptions & operator=(const MinimizerOptions &opt)
assignment operators
static double DefaultPrecision()
const std::string & MinimizerAlgorithm() const
type of algorithm
void SetExtraOptions(const IOptions &opt)
set extra options (in this case pointer is cloned)
static void SetDefaultErrorDef(double up)
int PrintLevel() const
non-static methods for retrieving options
static void SetDefaultStrategy(int strat)
static void SetDefaultMaxFunctionCalls(int maxcall)
static ROOT::Math::IOptions * FindDefault(const char *name)
void SetMaxFunctionCalls(unsigned int maxfcn)
set maximum of function calls
static const std::string & DefaultMinimizerType()
unsigned int MaxFunctionCalls() const
max number of function calls
static void PrintDefault(const char *name, std::ostream &os=std::cout)
print all the default options for the name given
const IOptions * ExtraOptions() const
return extra options (NULL pointer if they are not present)
ROOT::Math::IOptions * fExtraOptions
int Strategy() const
strategy
static int DefaultPrintLevel()
static double DefaultErrorDef()
static int DefaultMaxIterations()
static const std::string & DefaultMinimizerAlgo()
static void SetDefaultTolerance(double tol)
static void SetDefaultPrecision(double prec)
Namespace for new Math classes and functions.
Generic interface for defining configuration options of a numerical algorithm.
void SetStrategy(int stra)
set the strategy
const std::string & MinimizerType() const
type of minimizer
static void SetDefaultMinimizer(const char *type, const char *algo=0)
static double DefaultTolerance()
void SetMinimizerAlgorithm(const char *type)
set minimizer algorithm