Logo ROOT  
Reference Guide
Minuit2Minimizer.h
Go to the documentation of this file.
1 // @(#)root/minuit2:$Id$
2 // Author: L. Moneta Wed Oct 18 11:48:00 2006
3 
4 /**********************************************************************
5  * *
6  * Copyright (c) 2006 LCG ROOT Math Team, CERN/PH-SFT *
7  * *
8  * *
9  **********************************************************************/
10 
11 // Header file for class Minuit2Minimizer
12 
13 #ifndef ROOT_Minuit2_Minuit2Minimizer
14 #define ROOT_Minuit2_Minuit2Minimizer
15 
16 #include "Math/Minimizer.h"
17 
19 
20 #include "Math/IFunctionfwd.h"
21 
22 #include <vector>
23 #include <string>
24 
25 
26 namespace ROOT {
27 
28  namespace Minuit2 {
29 
30  class ModularFunctionMinimizer;
31  class FCNBase;
32  class FunctionMinimum;
33  class MnTraceObject;
34 
35  // enumeration specifying the type of Minuit2 minimizers
36  enum EMinimizerType {
37  kMigrad,
38  kSimplex,
39  kCombined,
40  kScan,
41  kFumili,
43  };
44 
45  }
46 
47  namespace Minuit2 {
48 //_____________________________________________________________________________________________________
49 /**
50  Minuit2Minimizer class implementing the ROOT::Math::Minimizer interface for
51  Minuit2 minimization algorithm.
52  In ROOT it can be instantiated using the plug-in manager (plug-in "Minuit2")
53  Using a string (used by the plugin manager) or via an enumeration
54  an one can set all the possible minimization algorithms (Migrad, Simplex, Combined, Scan and Fumili).
55 
56  Refer to the [guide](https://root.cern.ch/root/htmldoc/guides/minuit2/Minuit2.html) for an introduction how Minuit works.
57 
58  @ingroup Minuit
59 */
61 
62 public:
63 
64  /**
65  Default constructor
66  */
68 
69  /**
70  Constructor with a char (used by PM)
71  */
72  Minuit2Minimizer (const char * type);
73 
74  /**
75  Destructor (no operations)
76  */
77  virtual ~Minuit2Minimizer ();
78 
79 private:
80  // usually copying is non trivial, so we make this unaccessible
81 
82  /**
83  Copy constructor
84  */
86 
87  /**
88  Assignment operator
89  */
91 
92 public:
93 
94  // clear resources (parameters) for consecutives minimizations
95  virtual void Clear();
96 
97  /// set the function to minimize
98  virtual void SetFunction(const ROOT::Math::IMultiGenFunction & func);
99 
100  /// set gradient the function to minimize
101  virtual void SetFunction(const ROOT::Math::IMultiGradFunction & func);
102 
103  /// set free variable
104  virtual bool SetVariable(unsigned int ivar, const std::string & name, double val, double step);
105 
106  /// set lower limit variable (override if minimizer supports them )
107  virtual bool SetLowerLimitedVariable(unsigned int ivar , const std::string & name , double val , double step , double lower );
108  /// set upper limit variable (override if minimizer supports them )
109  virtual bool SetUpperLimitedVariable(unsigned int ivar , const std::string & name , double val , double step , double upper );
110  /// set upper/lower limited variable (override if minimizer supports them )
111  virtual bool SetLimitedVariable(unsigned int ivar , const std::string & name , double val , double step , double /* lower */, double /* upper */);
112  /// set fixed variable (override if minimizer supports them )
113  virtual bool SetFixedVariable(unsigned int /* ivar */, const std::string & /* name */, double /* val */);
114  /// set variable
115  virtual bool SetVariableValue(unsigned int ivar, double val);
116  // set variable values
117  virtual bool SetVariableValues(const double * val);
118  /// set the step size of an already existing variable
119  virtual bool SetVariableStepSize(unsigned int ivar, double step );
120  /// set the lower-limit of an already existing variable
121  virtual bool SetVariableLowerLimit(unsigned int ivar, double lower);
122  /// set the upper-limit of an already existing variable
123  virtual bool SetVariableUpperLimit(unsigned int ivar, double upper);
124  /// set the limits of an already existing variable
125  virtual bool SetVariableLimits(unsigned int ivar, double lower, double upper);
126  /// fix an existing variable
127  virtual bool FixVariable(unsigned int ivar);
128  /// release an existing variable
129  virtual bool ReleaseVariable(unsigned int ivar);
130  /// query if an existing variable is fixed (i.e. considered constant in the minimization)
131  /// note that by default all variables are not fixed
132  virtual bool IsFixedVariable(unsigned int ivar) const;
133  /// get variable settings in a variable object (like ROOT::Fit::ParamsSettings)
134  virtual bool GetVariableSettings(unsigned int ivar, ROOT::Fit::ParameterSettings & varObj) const;
135  /// get name of variables (override if minimizer support storing of variable names)
136  virtual std::string VariableName(unsigned int ivar) const;
137  /// get index of variable given a variable given a name
138  /// return -1 if variable is not found
139  virtual int VariableIndex(const std::string & name) const;
140 
141  /**
142  method to perform the minimization.
143  Return false in case the minimization did not converge. In this case a
144  status code different than zero is set
145  (retrieved by the derived method Minimizer::Status() )"
146 
147  status = 1 : Covariance was made pos defined
148  status = 2 : Hesse is invalid
149  status = 3 : Edm is above max
150  status = 4 : Reached call limit
151  status = 5 : Any other failure
152  */
153  virtual bool Minimize();
154 
155  /// return minimum function value
156  virtual double MinValue() const { return fState.Fval(); }
157 
158  /// return expected distance reached from the minimum
159  virtual double Edm() const { return fState.Edm(); }
160 
161  /// return pointer to X values at the minimum
162  virtual const double * X() const;
163 
164  /// return pointer to gradient values at the minimum
165  virtual const double * MinGradient() const { return 0; } // not available in Minuit2
166 
167  /// number of function calls to reach the minimum
168  virtual unsigned int NCalls() const { return fState.NFcn(); }
169 
170  /// this is <= Function().NDim() which is the total
171  /// number of variables (free+ constrained ones)
172  virtual unsigned int NDim() const { return fDim; }
173 
174  /// number of free variables (real dimension of the problem)
175  /// this is <= Function().NDim() which is the total
176  virtual unsigned int NFree() const { return fState.VariableParameters(); }
177 
178  /// minimizer provides error and error matrix
179  virtual bool ProvidesError() const { return true; }
180 
181  /// return errors at the minimum
182  virtual const double * Errors() const;
183 
184  /**
185  return covariance matrix elements
186  if the variable is fixed or const the value is zero
187  The ordering of the variables is the same as in errors and parameter value.
188  This is different from the direct interface of Minuit2 or TMinuit where the
189  values were obtained only to variable parameters
190  */
191  virtual double CovMatrix(unsigned int i, unsigned int j) const;
192 
193 
194  /**
195  Fill the passed array with the covariance matrix elements
196  if the variable is fixed or const the value is zero.
197  The array will be filled as cov[i *ndim + j]
198  The ordering of the variables is the same as in errors and parameter value.
199  This is different from the direct interface of Minuit2 or TMinuit where the
200  values were obtained only to variable parameters
201  */
202  virtual bool GetCovMatrix(double * cov) const;
203 
204  /**
205  Fill the passed array with the Hessian matrix elements
206  The Hessian matrix is the matrix of the second derivatives
207  and is the inverse of the covariance matrix
208  If the variable is fixed or const the values for that variables are zero.
209  The array will be filled as h[i *ndim + j]
210  */
211  virtual bool GetHessianMatrix(double * h) const;
212 
213 
214  /**
215  return the status of the covariance matrix
216  status = -1 : not available (inversion failed or Hesse failed)
217  status = 0 : available but not positive defined
218  status = 1 : covariance only approximate
219  status = 2 : full matrix but forced pos def
220  status = 3 : full accurate matrix
221 
222  */
223  virtual int CovMatrixStatus() const;
224  /**
225  return correlation coefficient between variable i and j.
226  If the variable is fixed or const the return value is zero
227  */
228  virtual double Correlation(unsigned int i, unsigned int j ) const;
229 
230  /**
231  get global correlation coefficient for the variable i. This is a number between zero and one which gives
232  the correlation between the i-th variable and that linear combination of all other variables which
233  is most strongly correlated with i.
234  If the variable is fixed or const the return value is zero
235  */
236  virtual double GlobalCC(unsigned int i) const;
237 
238  /**
239  get the minos error for parameter i, return false if Minos failed
240  A minimizaiton must be performed befre, return false if no minimization has been done
241  In case of Minos failed the status error is updated as following
242  status += 10 * minosStatus where the minos status is:
243  status = 1 : maximum number of function calls exceeded when running for lower error
244  status = 2 : maximum number of function calls exceeded when running for upper error
245  status = 3 : new minimum found when running for lower error
246  status = 4 : new minimum found when running for upper error
247  status = 5 : any other failure
248 
249  */
250  virtual bool GetMinosError(unsigned int i, double & errLow, double & errUp, int = 0);
251 
252  /**
253  scan a parameter i around the minimum. A minimization must have been done before,
254  return false if it is not the case
255  */
256  virtual bool Scan(unsigned int i, unsigned int & nstep, double * x, double * y, double xmin = 0, double xmax = 0);
257 
258  /**
259  find the contour points (xi,xj) of the function for parameter i and j around the minimum
260  The contour will be find for value of the function = Min + ErrorUp();
261  */
262  virtual bool Contour(unsigned int i, unsigned int j, unsigned int & npoints, double *xi, double *xj);
263 
264 
265  /**
266  perform a full calculation of the Hessian matrix for error calculation
267  If a valid minimum exists the calculation is done on the minimum point otherwise is performed
268  in the current set values of parameters
269  Status code of minimizer is updated according to the following convention (in case Hesse failed)
270  status += 100*hesseStatus where hesse status is:
271  status = 1 : hesse failed
272  status = 2 : matrix inversion failed
273  status = 3 : matrix is not pos defined
274  */
275  virtual bool Hesse();
276 
277 
278  /// return reference to the objective function
279  ///virtual const ROOT::Math::IGenFunction & Function() const;
280 
281  /// print result of minimization
282  virtual void PrintResults();
283 
284  /// set an object to trace operation for each iteration
285  /// The object must be a (or inherit from) ROOT::Minuit2::MnTraceObject and implement operator() (int, const MinimumState & state)
286  void SetTraceObject(MnTraceObject & obj);
287 
288  /// set storage level = 1 : store all iteration states (default)
289  /// = 0 : store only first and last state to save memory
290  void SetStorageLevel(int level);
291 
292  /// return the minimizer state (containing values, step size , etc..)
293  const ROOT::Minuit2::MnUserParameterState & State() { return fState; }
294 
295 protected:
296 
297  // protected function for accessing the internal Minuit2 object. Needed for derived classes
298 
299  virtual const ROOT::Minuit2::ModularFunctionMinimizer * GetMinimizer() const { return fMinimizer; }
300 
302 
304 
305  virtual const ROOT::Minuit2::FCNBase * GetFCN() const { return fMinuitFCN; }
306 
307  /// examine the minimum result
309 
310 private:
311 
312  unsigned int fDim; // dimension of the function to be minimized
313  bool fUseFumili;
314 
316  // std::vector<ROOT::Minuit2::MinosError> fMinosErrors;
320  mutable std::vector<double> fValues;
321  mutable std::vector<double> fErrors;
322 
323 };
324 
325  } // end namespace Fit
326 
327 } // end namespace ROOT
328 
329 
330 
331 #endif /* ROOT_Minuit2_Minuit2Minimizer */
ROOT::Minuit2::Minuit2Minimizer::fMinimum
ROOT::Minuit2::FunctionMinimum * fMinimum
Definition: Minuit2Minimizer.h:324
m
auto * m
Definition: textangle.C:8
ROOT::Minuit2::kMigrad
@ kMigrad
Definition: Minuit2Minimizer.h:47
ROOT::Minuit2::Minuit2Minimizer::ProvidesError
virtual bool ProvidesError() const
minimizer provides error and error matrix
Definition: Minuit2Minimizer.h:184
Minimizer.h
ROOT::Minuit2::Minuit2Minimizer::State
const ROOT::Minuit2::MnUserParameterState & State()
return the minimizer state (containing values, step size , etc..)
Definition: Minuit2Minimizer.h:298
ROOT::Minuit2::EMinimizerType
EMinimizerType
Definition: Minuit2Minimizer.h:46
ROOT::Minuit2::Minuit2Minimizer::SetMinimizer
virtual void SetMinimizer(ROOT::Minuit2::ModularFunctionMinimizer *m)
Definition: Minuit2Minimizer.h:306
ROOT::Minuit2::Minuit2Minimizer::SetLimitedVariable
virtual bool SetLimitedVariable(unsigned int ivar, const std::string &name, double val, double step, double, double)
set upper/lower limited variable (override if minimizer supports them )
Definition: Minuit2Minimizer.cxx:238
ROOT::Minuit2::Minuit2Minimizer::SetVariableUpperLimit
virtual bool SetVariableUpperLimit(unsigned int ivar, double upper)
set the upper-limit of an already existing variable
Definition: Minuit2Minimizer.cxx:302
ROOT::Minuit2::Minuit2Minimizer::SetVariableStepSize
virtual bool SetVariableStepSize(unsigned int ivar, double step)
set the step size of an already existing variable
Definition: Minuit2Minimizer.cxx:287
ROOT::Minuit2::kCombined
@ kCombined
Definition: Minuit2Minimizer.h:49
ROOT::Minuit2::Minuit2Minimizer::NCalls
virtual unsigned int NCalls() const
number of function calls to reach the minimum
Definition: Minuit2Minimizer.h:173
xmax
float xmax
Definition: THbookFile.cxx:95
ROOT::Minuit2::Minuit2Minimizer::Errors
virtual const double * Errors() const
return errors at the minimum
Definition: Minuit2Minimizer.cxx:668
ROOT::Minuit2::Minuit2Minimizer::Contour
virtual bool Contour(unsigned int i, unsigned int j, unsigned int &npoints, double *xi, double *xj)
find the contour points (xi,xj) of the function for parameter i and j around the minimum The contour ...
Definition: Minuit2Minimizer.cxx:1027
ROOT::Minuit2::Minuit2Minimizer::GlobalCC
virtual double GlobalCC(unsigned int i) const
get global correlation coefficient for the variable i.
Definition: Minuit2Minimizer.cxx:769
ROOT::Minuit2::FCNBase
Interface (abstract class) defining the function to be minimized, which has to be implemented by the ...
Definition: FCNBase.h:55
IFunctionfwd.h
MnUserParameterState.h
ROOT::Minuit2::Minuit2Minimizer::MinValue
virtual double MinValue() const
return minimum function value
Definition: Minuit2Minimizer.h:161
ROOT::Minuit2::MnUserParameterState::NFcn
unsigned int NFcn() const
Definition: MnUserParameterState.h:117
ROOT::Minuit2::MnUserParameterState::Fval
double Fval() const
Definition: MnUserParameterState.h:115
x
Double_t x[n]
Definition: legend1.C:17
ROOT::Math::IGradientFunctionMultiDimTempl
Interface (abstract class) for multi-dimensional functions providing a gradient calculation.
Definition: IFunction.h:326
ROOT::Minuit2::Minuit2Minimizer::NFree
virtual unsigned int NFree() const
number of free variables (real dimension of the problem) this is <= Function().NDim() which is the to...
Definition: Minuit2Minimizer.h:181
ROOT::Minuit2::MnUserParameterState::VariableParameters
unsigned int VariableParameters() const
Definition: MnUserParameterState.cxx:433
ROOT::Minuit2::Minuit2Minimizer::ReleaseVariable
virtual bool ReleaseVariable(unsigned int ivar)
release an existing variable
Definition: Minuit2Minimizer.cxx:325
ROOT::Minuit2::MnUserParameterState::Edm
double Edm() const
Definition: MnUserParameterState.h:116
ROOT::Minuit2::kMigradBFGS
@ kMigradBFGS
Definition: Minuit2Minimizer.h:52
ROOT::Minuit2::Minuit2Minimizer::VariableName
virtual std::string VariableName(unsigned int ivar) const
get name of variables (override if minimizer support storing of variable names)
Definition: Minuit2Minimizer.cxx:257
ROOT::Minuit2::MnTraceObject
Definition: MnTraceObject.h:28
ROOT::Minuit2::Minuit2Minimizer::SetLowerLimitedVariable
virtual bool SetLowerLimitedVariable(unsigned int ivar, const std::string &name, double val, double step, double lower)
set lower limit variable (override if minimizer supports them )
Definition: Minuit2Minimizer.cxx:222
ROOT::Minuit2::Minuit2Minimizer::fDim
unsigned int fDim
Definition: Minuit2Minimizer.h:317
ROOT::Minuit2::kFumili
@ kFumili
Definition: Minuit2Minimizer.h:51
ROOT::Minuit2::Minuit2Minimizer::SetVariableValue
virtual bool SetVariableValue(unsigned int ivar, double val)
set variable
Definition: Minuit2Minimizer.cxx:271
ROOT::Minuit2::Minuit2Minimizer::fUseFumili
bool fUseFumili
Definition: Minuit2Minimizer.h:318
xmin
float xmin
Definition: THbookFile.cxx:95
h
#define h(i)
Definition: RSha256.hxx:124
ROOT::Minuit2::Minuit2Minimizer::Correlation
virtual double Correlation(unsigned int i, unsigned int j) const
return correlation coefficient between variable i and j.
Definition: Minuit2Minimizer.cxx:755
ROOT::Minuit2::Minuit2Minimizer::fState
ROOT::Minuit2::MnUserParameterState fState
Definition: Minuit2Minimizer.h:320
ROOT::Minuit2::Minuit2Minimizer::~Minuit2Minimizer
virtual ~Minuit2Minimizer()
Destructor (no operations)
Definition: Minuit2Minimizer.cxx:159
ROOT::Minuit2::Minuit2Minimizer::Edm
virtual double Edm() const
return expected distance reached from the minimum
Definition: Minuit2Minimizer.h:164
y
Double_t y[n]
Definition: legend1.C:17
ROOT::Minuit2::Minuit2Minimizer::MinGradient
virtual const double * MinGradient() const
return pointer to gradient values at the minimum
Definition: Minuit2Minimizer.h:170
ROOT::Minuit2::ModularFunctionMinimizer
Base common class providing the API for all the minimizer Various Minimize methods are provided varyi...
Definition: ModularFunctionMinimizer.h:51
ROOT::Minuit2::Minuit2Minimizer::NDim
virtual unsigned int NDim() const
this is <= Function().NDim() which is the total number of variables (free+ constrained ones)
Definition: Minuit2Minimizer.h:177
ROOT::Minuit2::Minuit2Minimizer
Minuit2Minimizer class implementing the ROOT::Math::Minimizer interface for Minuit2 minimization algo...
Definition: Minuit2Minimizer.h:65
ROOT::Minuit2::Minuit2Minimizer::PrintResults
virtual void PrintResults()
return reference to the objective function virtual const ROOT::Math::IGenFunction & Function() const;
Definition: Minuit2Minimizer.cxx:622
ROOT::Minuit2::Minuit2Minimizer::FixVariable
virtual bool FixVariable(unsigned int ivar)
fix an existing variable
Definition: Minuit2Minimizer.cxx:318
ROOT::Fit::ParameterSettings
Class, describing value, limits and step size of the parameters Provides functionality also to set/re...
Definition: ParameterSettings.h:46
ROOT::Minuit2::Minuit2Minimizer::CovMatrixStatus
virtual int CovMatrixStatus() const
return the status of the covariance matrix status = -1 : not available (inversion failed or Hesse fai...
Definition: Minuit2Minimizer.cxx:1170
ROOT::Minuit2::Minuit2Minimizer::SetStorageLevel
void SetStorageLevel(int level)
set storage level = 1 : store all iteration states (default) = 0 : store only first and last state to...
Definition: Minuit2Minimizer.cxx:1199
ROOT::Minuit2::FunctionMinimum
class holding the full result of the minimization; both internal and external (MnUserParameterState) ...
Definition: FunctionMinimum.h:40
ROOT::Minuit2::MnUserParameterState
class which holds the external user and/or internal Minuit representation of the parameters and error...
Definition: MnUserParameterState.h:42
ROOT::Minuit2::kSimplex
@ kSimplex
Definition: Minuit2Minimizer.h:48
ROOT::Math::Minimizer
Abstract Minimizer class, defining the interface for the various minimizer (like Minuit2,...
Definition: Minimizer.h:80
ROOT::Minuit2::Minuit2Minimizer::GetFCN
virtual const ROOT::Minuit2::FCNBase * GetFCN() const
Definition: Minuit2Minimizer.h:310
ROOT::Minuit2::Minuit2Minimizer::GetMinosError
virtual bool GetMinosError(unsigned int i, double &errLow, double &errUp, int=0)
get the minos error for parameter i, return false if Minos failed A minimizaiton must be performed be...
Definition: Minuit2Minimizer.cxx:783
ROOT::Minuit2::Minuit2Minimizer::SetFixedVariable
virtual bool SetFixedVariable(unsigned int, const std::string &, double)
set fixed variable (override if minimizer supports them )
Definition: Minuit2Minimizer.cxx:245
ROOT::Minuit2::Minuit2Minimizer::SetVariableValues
virtual bool SetVariableValues(const double *val)
set the values of all existing variables (array must be dimensioned to the size of the existing param...
Definition: Minuit2Minimizer.cxx:278
ROOT::Minuit2::Minuit2Minimizer::fValues
std::vector< double > fValues
Definition: Minuit2Minimizer.h:325
ROOT::Minuit2::Minuit2Minimizer::GetHessianMatrix
virtual bool GetHessianMatrix(double *h) const
Fill the passed array with the Hessian matrix elements The Hessian matrix is the matrix of the second...
Definition: Minuit2Minimizer.cxx:726
ROOT::Minuit2::Minuit2Minimizer::SetVariable
virtual bool SetVariable(unsigned int ivar, const std::string &name, double val, double step)
set free variable
Definition: Minuit2Minimizer.cxx:192
ROOT::Minuit2::Minuit2Minimizer::SetVariableLowerLimit
virtual bool SetVariableLowerLimit(unsigned int ivar, double lower)
set the lower-limit of an already existing variable
Definition: Minuit2Minimizer.cxx:295
ROOT::Minuit2::Minuit2Minimizer::GetVariableSettings
virtual bool GetVariableSettings(unsigned int ivar, ROOT::Fit::ParameterSettings &varObj) const
get variable settings in a variable object (like ROOT::Fit::ParamsSettings)
Definition: Minuit2Minimizer.cxx:341
ROOT::Minuit2::Minuit2Minimizer::IsFixedVariable
virtual bool IsFixedVariable(unsigned int ivar) const
query if an existing variable is fixed (i.e.
Definition: Minuit2Minimizer.cxx:332
ROOT::Minuit2::Minuit2Minimizer::VariableIndex
virtual int VariableIndex(const std::string &name) const
get index of variable given a variable given a name return -1 if variable is not found
Definition: Minuit2Minimizer.cxx:264
ROOT::Minuit2::Minuit2Minimizer::X
virtual const double * X() const
return pointer to X values at the minimum
Definition: Minuit2Minimizer.cxx:652
ROOT::Minuit2::Minuit2Minimizer::CovMatrix
virtual double CovMatrix(unsigned int i, unsigned int j) const
return covariance matrix elements if the variable is fixed or const the value is zero The ordering of...
Definition: Minuit2Minimizer.cxx:688
ROOT::Minuit2::Minuit2Minimizer::ExamineMinimum
bool ExamineMinimum(const ROOT::Minuit2::FunctionMinimum &min)
examine the minimum result
Definition: Minuit2Minimizer.cxx:548
name
char name[80]
Definition: TGX11.cxx:110
ROOT::Minuit2::Minuit2Minimizer::Hesse
virtual bool Hesse()
perform a full calculation of the Hessian matrix for error calculation If a valid minimum exists the ...
Definition: Minuit2Minimizer.cxx:1084
ROOT::Minuit2::Minuit2Minimizer::Scan
virtual bool Scan(unsigned int i, unsigned int &nstep, double *x, double *y, double xmin=0, double xmax=0)
scan a parameter i around the minimum.
Definition: Minuit2Minimizer.cxx:969
ROOT::Minuit2::Minuit2Minimizer::GetMinimizer
virtual const ROOT::Minuit2::ModularFunctionMinimizer * GetMinimizer() const
Definition: Minuit2Minimizer.h:304
ROOT::Minuit2::Minuit2Minimizer::fErrors
std::vector< double > fErrors
Definition: Minuit2Minimizer.h:326
type
int type
Definition: TGX11.cxx:121
ROOT::Math::IBaseFunctionMultiDimTempl
Documentation for the abstract class IBaseFunctionMultiDim.
Definition: IFunction.h:62
ROOT::Minuit2::Minuit2Minimizer::Clear
virtual void Clear()
reset for consecutive minimizations - implement if needed
Definition: Minuit2Minimizer.cxx:181
ROOT::Minuit2::Minuit2Minimizer::fMinimizer
ROOT::Minuit2::ModularFunctionMinimizer * fMinimizer
Definition: Minuit2Minimizer.h:322
ROOT::Minuit2::Minuit2Minimizer::SetMinimizerType
void SetMinimizerType(ROOT::Minuit2::EMinimizerType type)
Definition: Minuit2Minimizer.cxx:125
ROOT::Minuit2::Minuit2Minimizer::SetFunction
virtual void SetFunction(const ROOT::Math::IMultiGenFunction &func)
set the function to minimize
Definition: Minuit2Minimizer.cxx:364
ROOT::Minuit2::Minuit2Minimizer::fMinuitFCN
ROOT::Minuit2::FCNBase * fMinuitFCN
Definition: Minuit2Minimizer.h:323
ROOT::Minuit2::kScan
@ kScan
Definition: Minuit2Minimizer.h:50
ROOT
VSD Structures.
Definition: StringConv.hxx:21
ROOT::Minuit2::Minuit2Minimizer::operator=
Minuit2Minimizer & operator=(const Minuit2Minimizer &rhs)
Assignment operator.
Definition: Minuit2Minimizer.cxx:173
ROOT::Minuit2::Minuit2Minimizer::GetCovMatrix
virtual bool GetCovMatrix(double *cov) const
Fill the passed array with the covariance matrix elements if the variable is fixed or const the value...
Definition: Minuit2Minimizer.cxx:699
ROOT::Minuit2::Minuit2Minimizer::Minuit2Minimizer
Minuit2Minimizer(ROOT::Minuit2::EMinimizerType type=ROOT::Minuit2::kMigrad)
Default constructor.
Definition: Minuit2Minimizer.cxx:91
ROOT::Minuit2::Minuit2Minimizer::SetVariableLimits
virtual bool SetVariableLimits(unsigned int ivar, double lower, double upper)
set the limits of an already existing variable
Definition: Minuit2Minimizer.cxx:310
ROOT::Minuit2::Minuit2Minimizer::SetUpperLimitedVariable
virtual bool SetUpperLimitedVariable(unsigned int ivar, const std::string &name, double val, double step, double upper)
set upper limit variable (override if minimizer supports them )
Definition: Minuit2Minimizer.cxx:229
ROOT::Minuit2::Minuit2Minimizer::SetTraceObject
void SetTraceObject(MnTraceObject &obj)
set an object to trace operation for each iteration The object must be a (or inherit from) ROOT::Minu...
Definition: Minuit2Minimizer.cxx:1193
ROOT::Minuit2::Minuit2Minimizer::Minimize
virtual bool Minimize()
method to perform the minimization.
Definition: Minuit2Minimizer.cxx:400