ROOT » MATH » FUMILI » TFumiliMinimizer

class TFumiliMinimizer: public ROOT::Math::Minimizer

  TFumiliMinimizer class implementing the ROOT::Math::Minimizer interface using
  This class is normally instantiates using the plug-in manager
  (plug-in with name Fumili or TFumili)
  In addition the user can choose the minimizer algorithm: Migrad (the default one), Simplex, or Minimize (combined Migrad + Simplex)

Function Members (Methods)

static TClass*Class()
virtual voidROOT::Math::Minimizer::Clear()
virtual boolROOT::Math::Minimizer::Contour(unsigned int ivar, unsigned int jvar, unsigned int& npoints, double* xi, double* xj)
virtual doubleROOT::Math::Minimizer::Correlation(unsigned int i, unsigned int j) const
virtual doubleCovMatrix(unsigned int i, unsigned int j) const
virtual intCovMatrixStatus() const
virtual doubleEdm() const
doubleROOT::Math::Minimizer::ErrorDef() const
virtual const double*Errors() const
virtual boolROOT::Math::Minimizer::FixVariable(unsigned int ivar)
virtual boolROOT::Math::Minimizer::GetCovMatrix(double* covMat) const
virtual boolROOT::Math::Minimizer::GetHessianMatrix(double* hMat) const
virtual boolROOT::Math::Minimizer::GetMinosError(unsigned int ivar, double& errLow, double& errUp, int option = 0)
virtual boolROOT::Math::Minimizer::GetVariableSettings(unsigned int ivar, ROOT::Fit::ParameterSettings& pars) const
virtual doubleROOT::Math::Minimizer::GlobalCC(unsigned int ivar) const
virtual boolROOT::Math::Minimizer::Hesse()
virtual TClass*IsA() const
virtual boolROOT::Math::Minimizer::IsFixedVariable(unsigned int ivar) const
boolROOT::Math::Minimizer::IsValidError() const
unsigned intROOT::Math::Minimizer::MaxFunctionCalls() const
unsigned intROOT::Math::Minimizer::MaxIterations() const
virtual const double*MinGradient() const
virtual boolMinimize()
virtual doubleMinValue() const
virtual unsigned intNCalls() const
virtual unsigned intNDim() const
virtual unsigned intNFree() const
virtual unsigned intROOT::Math::Minimizer::NIterations() const
virtual ROOT::Math::MinimizerOptionsROOT::Math::Minimizer::Options() const
doubleROOT::Math::Minimizer::Precision() const
intROOT::Math::Minimizer::PrintLevel() const
virtual voidROOT::Math::Minimizer::PrintResults()
virtual boolProvidesError() const
virtual boolROOT::Math::Minimizer::ReleaseVariable(unsigned int ivar)
virtual boolROOT::Math::Minimizer::Scan(unsigned int ivar, unsigned int& nstep, double* x, double* y, double xmin = 0, double xmax = 0)
voidROOT::Math::Minimizer::SetErrorDef(double up)
virtual boolSetFixedVariable(unsigned int, const string&, double)
virtual voidSetFunction(const ROOT::Math::IMultiGenFunction& func)
virtual voidSetFunction(const ROOT::Math::IMultiGradFunction& func)
virtual boolSetLimitedVariable(unsigned int ivar, const string& name, double val, double step, double, double)
virtual boolROOT::Math::Minimizer::SetLowerLimitedVariable(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::SetOptions(const ROOT::Math::MinimizerOptions& opt)
voidROOT::Math::Minimizer::SetPrecision(double prec)
voidROOT::Math::Minimizer::SetPrintLevel(int level)
voidROOT::Math::Minimizer::SetStrategy(int strategyLevel)
voidROOT::Math::Minimizer::SetTolerance(double tol)
virtual boolROOT::Math::Minimizer::SetUpperLimitedVariable(unsigned int ivar, const string& name, double val, double step, double upper)
voidROOT::Math::Minimizer::SetValidError(bool on)
virtual boolSetVariable(unsigned int ivar, const string& name, double val, double step)
virtual boolROOT::Math::Minimizer::SetVariableInitialRange(unsigned int, double, double)
virtual boolROOT::Math::Minimizer::SetVariableLimits(unsigned int ivar, double lower, double upper)
virtual boolROOT::Math::Minimizer::SetVariableLowerLimit(unsigned int ivar, double lower)
virtual boolROOT::Math::Minimizer::SetVariableStepSize(unsigned int ivar, double value)
virtual boolROOT::Math::Minimizer::SetVariableUpperLimit(unsigned int ivar, double upper)
virtual boolSetVariableValue(unsigned int ivar, double val)
virtual boolROOT::Math::Minimizer::SetVariableValues(const double* x)
virtual voidShowMembers(TMemberInspector& insp) const
intROOT::Math::Minimizer::Status() const
intROOT::Math::Minimizer::Strategy() const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
TFumiliMinimizer(int dummy = 0)
doubleROOT::Math::Minimizer::Tolerance() const
virtual intROOT::Math::Minimizer::VariableIndex(const string& name) const
virtual stringROOT::Math::Minimizer::VariableName(unsigned int ivar) const
virtual const double*X() const
static doubleEvaluateFCN(const double* x, double* g)
static voidFcn(int&, double*, double& f, double*, int)

Data Members

ROOT::Math::MinimizerOptionsROOT::Math::Minimizer::fOptionsminimizer options
intROOT::Math::Minimizer::fStatusstatus of minimizer
boolROOT::Math::Minimizer::fValidErrorflag to control if errors have been validated (Hesse has been run in case of Minuit)
unsigned intfDim
unsigned intfNFree
static TFumili*fgFumilistatic instance (used by fcn function)
static ROOT::Math::FitMethodFunction*fgFunc
static ROOT::Math::FitMethodGradFunction*fgGradFunc

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TFumiliMinimizer(int dummy = 0)
 Constructor for TFumiliMinimier class
 Destructor implementation.
TFumiliMinimizer(const TFumiliMinimizer& )
 Implementation of copy constructor (it is private).
void SetFunction(const ROOT::Math::IMultiGenFunction & func)
 Set the objective function to be minimized, by passing a function object implement the
 basic multi-dim Function interface. In this case the derivatives will be
 calculated by Fumili
void SetFunction(const ROOT::Math::IMultiGradFunction & func)
 Set the objective function to be minimized, by passing a function object implement the
 multi-dim gradient Function interface. In this case the function derivatives are provided
 by the user via this interface and there not calculated by Fumili.
void Fcn(int& , double* , double& f, double* , int )
 implementation of FCN static function used internally by TFumili.
 Adapt IMultiGenFunction interface to TFumili FCN static function
double EvaluateFCN(const double* x, double* g)
 function callaed to evaluate the FCN at the value x
 calculates also the matrices of the second derivatives of the objective function needed by FUMILI
bool SetVariable(unsigned int ivar, const string& name, double val, double step)
 set a free variable.
bool SetLimitedVariable(unsigned int ivar, const string& name, double val, double step, double , double )
 set a limited variable.
bool SetFixedVariable(unsigned int , const string& , double )
 set a fixed variable.
bool SetVariableValue(unsigned int ivar, double val)
 set the variable value
bool Minimize()
 perform the minimization using the algorithm chosen previously by the user
 By default Migrad is used.
 Return true if the found minimum is valid and update internal chached values of
 minimum values, errors and covariance matrix.
double MinValue() const
 return minimum function value
{ return fMinVal; }
double Edm() const
 return expected distance reached from the minimum
{ return fEdm; }
const double * X() const
 return  pointer to X values at the minimum
{ return &fParams.front(); }
const double * MinGradient() const
 return pointer to gradient values at the minimum
{ return 0; }
unsigned int NCalls() const
 number of function calls to reach the minimum
{ return 0; }
unsigned int NDim() const
 this is <= Function().NDim() which is the total
 number of variables (free+ constrained ones)
{ return fDim; }
unsigned int NFree() const
 number of free variables (real dimension of the problem)
 this is <= Function().NDim() which is the total
{ return fNFree; }
bool ProvidesError() const
 minimizer provides error and error matrix
{ return true; }
const double * Errors() const
 return errors at the minimum
{ return &fErrors.front(); }
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

int CovMatrixStatus() const
     return covariance matrix status