class ROOT::Minuit2::Minuit2Minimizer: public ROOT::Math::Minimizer

Minuit2Minimizer class implementing the ROOT::Math::Minimizer interface for
Minuit2 minimization algorithm.
In ROOT it can be instantiated using the plug-in manager (plug-in "Minuit2")
Using a string  (used by the plugin manager) or via an enumeration
an one can set all the possible minimization algorithms (Migrad, Simplex, Combined, Scan and Fumili).

Function Members (Methods)

virtual voidClear()
virtual doubleCovMatrix(unsigned int i, unsigned int j) const
virtual doubleEdm() const
virtual const double*Errors() const
doubleROOT::Math::Minimizer::ErrorUp() const
virtual boolGetMinosError(unsigned int i, double& errLow, double& errUp)
unsigned intROOT::Math::Minimizer::MaxFunctionCalls()
unsigned intROOT::Math::Minimizer::MaxIterations()
virtual const double*MinGradient() const
virtual boolMinimize()
ROOT::Minuit2::Minuit2MinimizerMinuit2Minimizer(ROOT::Minuit2::EMinimizerType type = ROOT::Minuit2::kMigrad)
ROOT::Minuit2::Minuit2MinimizerMinuit2Minimizer(const char* type)
virtual doubleMinValue() const
virtual unsigned intNCalls() const
virtual unsigned intNDim() const
virtual unsigned intNFree() const
intROOT::Math::Minimizer::PrintLevel() const
virtual boolProvidesError() const
voidROOT::Math::Minimizer::SetErrorUp(double up)
virtual boolSetFixedVariable(unsigned int, const string&, double)
virtual voidSetFunction(const ROOT::Math::Minimizer::IObjFunction& func)
virtual voidSetFunction(const ROOT::Math::Minimizer::IGradObjFunction& func)
virtual boolSetLimitedVariable(unsigned int ivar, const string& name, double val, double step, double, double)
virtual boolSetLowerLimitedVariable(unsigned int ivar, const string& name, double val, double step, double lower)
voidROOT::Math::Minimizer::SetMaxFunctionCalls(unsigned int maxfcn)
voidROOT::Math::Minimizer::SetMaxIterations(unsigned int maxiter)
voidROOT::Math::Minimizer::SetPrintLevel(int level)
voidROOT::Math::Minimizer::SetStrategy(int strategyLevel)
voidROOT::Math::Minimizer::SetTolerance(double tol)
virtual boolSetUpperLimitedVariable(unsigned int ivar, const string& name, double val, double step, double upper)
virtual boolSetVariable(unsigned int ivar, const string& name, double val, double step)
intROOT::Math::Minimizer::Strategy() const
doubleROOT::Math::Minimizer::Tolerance() const
virtual const double*X() const
boolExamineMinimum(const ROOT::Minuit2::FunctionMinimum& min)
virtual const ROOT::Minuit2::FCNBase*GetFCN() const
virtual const ROOT::Minuit2::ModularFunctionMinimizer*GetMinimizer() const
virtual voidSetMinimizer(ROOT::Minuit2::ModularFunctionMinimizer* m)
voidSetMinimizerType(ROOT::Minuit2::EMinimizerType type)
ROOT::Minuit2::Minuit2MinimizerMinuit2Minimizer(const ROOT::Minuit2::Minuit2Minimizer&)
ROOT::Minuit2::Minuit2Minimizer&operator=(const ROOT::Minuit2::Minuit2Minimizer& rhs)

Data Members

intROOT::Math::Minimizer::fDebugprint level
unsigned intROOT::Math::Minimizer::fMaxCallsmax number of funciton calls
unsigned intROOT::Math::Minimizer::fMaxItermax number or iterations used to find the minimum
intROOT::Math::Minimizer::fStrategyminimizer strategy
doubleROOT::Math::Minimizer::fToltolerance (absolute)
doubleROOT::Math::Minimizer::fUperror scale
unsigned intfDim

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

Minuit2Minimizer(ROOT::Minuit2::EMinimizerType type = ROOT::Minuit2::kMigrad)
Default constructor

Minuit2Minimizer(const char * type)
Constructor with a char (used by PM)

virtual ~Minuit2Minimizer()
Destructor (no operations)

Minuit2Minimizer(const Minuit2Minimizer &)
 usually copying is non trivial, so we make this unaccessible

Copy constructor

void Clear()
 clear resources (parameters) for consecutives minimizations
void SetFunction(const ROOT::Math::Minimizer::IObjFunction & func)
 set the function to minimize
void SetFunction(const ROOT::Math::Minimizer::IGradObjFunction & func)
 set gradient the function to minimize
bool SetVariable(unsigned int ivar, const string& name, double val, double step)
 set free variable
bool SetLowerLimitedVariable(unsigned int ivar, const string& name, double val, double step, double lower)
 set lower limit variable  (override if minimizer supports them )
bool SetUpperLimitedVariable(unsigned int ivar, const string& name, double val, double step, double upper)
 set upper/lower limited variable (override if minimizer supports them )
bool SetLimitedVariable(unsigned int ivar, const string& name, double val, double step, double , double )
 set fixed variable (override if minimizer supports them )
bool SetFixedVariable(unsigned int , const string& , double )
bool Minimize()
 method to perform the minimization
double MinValue()
 return minimum function value
{ return fState.Fval(); }
double Edm()
 return expected distance reached from the minimum
{ return fState.Edm(); }
const double * X()
 return  pointer to X values at the minimum
const double * MinGradient()
 return pointer to gradient values at the minimum
{ return 0; }
unsigned int NCalls()
 number of function calls to reach the minimum
{ return fState.NFcn(); }
unsigned int NDim()
 this is <= Function().NDim() which is the total
 number of variables (free+ constrained ones)
{ return fDim; }
unsigned int NFree()
 number of free variables (real dimension of the problem)
 this is <= Function().NDim() which is the total
{ return fState.VariableParameters(); }
bool ProvidesError()
 minimizer provides error and error matrix
{ return true; }
const double * Errors()
 return errors at the minimum
double CovMatrix(unsigned int i, unsigned int j) const
 return covariance matrices elements
if the variable is fixed the matrix is zero
The ordering of the variables is the same as in errors

bool GetMinosError(unsigned int i, double& errLow, double& errUp)
 minos error for variable i, return false if Minos failed
const ROOT::Minuit2::ModularFunctionMinimizer * GetMinimizer()
 return reference to the objective function
virtual const ROOT::Math::IGenFunction & Function() const;
 protected function for accessing the internal Minuit2 object. Needed for derived classes
{ return fMinimizer; }
void SetMinimizer(ROOT::Minuit2::ModularFunctionMinimizer* m)
{ fMinimizer = m; }
void SetMinimizerType(ROOT::Minuit2::EMinimizerType type)
const ROOT::Minuit2::FCNBase * GetFCN()
{ return fMinuitFCN; }
bool ExamineMinimum(const ROOT::Minuit2::FunctionMinimum& min)
 examine the minimum result

Author: L. Moneta Wed Oct 18 11:48:00 2006
Last update: root/minuit2:$Id$
Copyright (c) 2006 LCG ROOT Math Team, CERN/PH-SFT *

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.