#ifndef ROOT_Math_MinimizerOptions
#define ROOT_Math_MinimizerOptions
#include <string>
namespace ROOT {
namespace Math {
class MinimizerOptions {
public:
static void SetDefaultMinimizer(const char * type, const char * algo = 0);
static void SetDefaultErrorDef( double up);
static void SetDefaultTolerance(double tol);
static void SetDefaultMaxFunctionCalls(int maxcall);
static void SetDefaultMaxIterations(int maxiter);
static void SetDefaultStrategy(int strat);
static void SetDefaultPrintLevel(int level);
static const std::string & DefaultMinimizerType();
static const std::string & DefaultMinimizerAlgo();
static double DefaultErrorDef();
static double DefaultTolerance();
static int DefaultMaxFunctionCalls();
static int DefaultMaxIterations();
static int DefaultStrategy();
static int DefaultPrintLevel();
MinimizerOptions() :
fLevel( MinimizerOptions::DefaultPrintLevel()),
fMaxCalls( MinimizerOptions::DefaultMaxFunctionCalls() ),
fMaxIter( MinimizerOptions::DefaultMaxIterations() ),
fStrategy( MinimizerOptions::DefaultStrategy() ),
fErrorDef( MinimizerOptions::DefaultErrorDef() ),
fTolerance( MinimizerOptions::DefaultTolerance() ),
fMinimType( MinimizerOptions::DefaultMinimizerType() ),
fAlgoType( MinimizerOptions::DefaultMinimizerAlgo() )
{}
int PrintLevel() const { return fLevel; }
unsigned int MaxFunctionCalls() const { return fMaxCalls; }
unsigned int MaxIterations() const { return fMaxIter; }
int Strategy() const { return fStrategy; }
double Tolerance() const { return fTolerance; }
double ErrorDef() const { return fErrorDef; }
const std::string & MinimizerType() const { return fMinimType; }
const std::string & MinimizerAlgorithm() const { return fAlgoType; }
void SetPrintLevel(int level) { fLevel = level; }
void SetMaxFunctionCalls(unsigned int maxfcn) { fMaxCalls = maxfcn; }
void SetMaxIterations(unsigned int maxiter) { fMaxIter = maxiter; }
void SetTolerance(double tol) { fTolerance = tol; }
void SetStrategy(int stra) { fStrategy = stra; }
void SetErrorDef(double err) { fErrorDef = err; }
void SetMinimizerType(const std::string & type) { fMinimType = type; }
void SetMinimizerAlgorithm(const std::string & type) { fAlgoType = type; }
private:
int fLevel;
int fMaxCalls;
int fMaxIter;
int fStrategy;
double fErrorDef;
double fTolerance;
std::string fMinimType;
std::string fAlgoType;
};
}
}
#endif
Last change: Fri Nov 28 16:56:02 2008
Last generated: 2008-11-28 16:56
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.