class TMinuitMinimizer: public ROOT::Math::Minimizer


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


Function Members (Methods)

public:
TMinuitMinimizer(ROOT::Minuit::EMinimizerType type = ROOT::Minuit::kMigrad)
TMinuitMinimizer(const char* type)
virtual~TMinuitMinimizer()
static TClass*Class()
virtual voidROOT::Math::Minimizer::Clear()
virtual doubleROOT::Math::Minimizer::Correlation(unsigned int i, unsigned int j) const
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)
virtual TClass*IsA() const
boolROOT::Math::Minimizer::IsValidError() const
unsigned intROOT::Math::Minimizer::MaxFunctionCalls()
unsigned intROOT::Math::Minimizer::MaxIterations()
virtual const double*MinGradient() const
virtual boolMinimize()
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::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::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 voidShowMembers(TMemberInspector& insp, char* parent)
intROOT::Math::Minimizer::Strategy() const
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
doubleROOT::Math::Minimizer::Tolerance() const
virtual const double*X() const
protected:
static voidFcn(int&, double*, double& f, double*, int)
static voidFcnGrad(int&, double* g, double& f, double*, int)
private:
TMinuitMinimizer(const TMinuitMinimizer&)
TMinuitMinimizer&operator=(const TMinuitMinimizer& rhs)

Data Members

protected:
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
boolROOT::Math::Minimizer::fValidErrorflag to control if errors have been validated (Hesse has been run in case of Minuit)
private:
vector<double>fCovar
unsigned intfDim
doublefEdm
vector<double>fErrors
doublefMinVal
boolfMinosRun
TMinuit*fMinuit
unsigned intfNFree
vector<double>fParams
unsigned intfStrategy
ROOT::Minuit::EMinimizerTypefType
static ROOT::Math::IBaseFunctionMultiDim*fgFunc
static TMinuit*fgMinuit

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TMinuitMinimizer(ROOT::Minuit::EMinimizerType type )
 Constructor for TMinuitMinimier class via an enumeration specifying the minimization
 algorithm type. Supported types are : kMigrad, kSimplex, kCombined (a combined
 Migrad + Simplex minimization) and kMigradImproved (a Migrad mininimization folloed by an
 improved search for global minima). The default type is Migrad (kMigrad).
TMinuitMinimizer(const char * type )
 constructor from a char * for the algorithm type, used by the plug-in manager
 The names supported (case unsensitive) are:
  Migrad (default), Simplex, Minimize (for the combined Migrad+ Simplex) and Migrad_imp
~TMinuitMinimizer()
 Destructor implementation.
TMinuitMinimizer(const TMinuitMinimizer &)
 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 Minuit
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 Minuit.
void Fcn(int& , double* , double& f, double* , int )
 implementation of FCN static function used internally by TMinuit.
 Adapt IMultiGenFunction interface to TMinuit FCN static function
void FcnGrad(int& , double* g, double& f, double* , int )
 implementation of FCN static function used internally by TMinuit.
 Adapt IMultiGradFunciton interface to TMinuit FCN static function in the case of user
 provided gradient.
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 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.
bool GetMinosError(unsigned int i, double& errLow, double& errUp)
 Perform Minos analysis for the given parameter  i
double MinValue()
 return minimum function value
{ return fMinVal; }
double Edm()
 return expected distance reached from the minimum
{ return fEdm; }
const double * X()
 return  pointer to X values at the minimum
{ return &fParams.front(); }
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 0; }
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 fNFree; }
bool ProvidesError()
 minimizer provides error and error matrix
{ return true; }
const double * Errors()
 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


Author: L. Moneta Wed Oct 25 16:28:55 2006
Last change: root/minuit:$Id: TMinuitMinimizer.h 23623 2008-04-30 16:13:06Z moneta $
Last generated: 2008-06-25 08:49
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.