Logo ROOT  
Reference Guide
ModularFunctionMinimizer.h
Go to the documentation of this file.
1 // @(#)root/minuit2:$Id$
2 // Authors: M. Winkler, F. James, L. Moneta, A. Zsenei 2003-2005
3 
4 /**********************************************************************
5  * *
6  * Copyright (c) 2005 LCG ROOT Math team, CERN/PH-SFT *
7  * *
8  **********************************************************************/
9 
10 #ifndef ROOT_Minuit2_ModularFunctionMinimizer
11 #define ROOT_Minuit2_ModularFunctionMinimizer
12 
13 #include "Minuit2/MnConfig.h"
14 
16 
17 #include <vector>
18 
19 namespace ROOT {
20 
21 namespace Minuit2 {
22 
23 class MinimumSeedGenerator;
24 class MinimumBuilder;
25 class MinimumSeed;
26 class MnFcn;
27 class GradientCalculator;
28 class MnUserParameterState;
29 class MnUserParameters;
30 class MnUserCovariance;
31 class MnStrategy;
32 class FumiliFCNBase;
33 
34 //_____________________________________________________________
35 /**
36  Base common class providing the API for all the minimizer
37  Various Minimize methods are provided varying on the type of
38  FCN function passesd and on the objects used for the parameters
39  */
41 
42 public:
44 
45  // inherited interface
46  virtual FunctionMinimum Minimize(const FCNBase &, const std::vector<double> &, const std::vector<double> &,
47  unsigned int stra = 1, unsigned int maxfcn = 0, double toler = 0.1) const;
48 
49  virtual FunctionMinimum Minimize(const FCNGradientBase &, const std::vector<double> &, const std::vector<double> &,
50  unsigned int stra = 1, unsigned int maxfcn = 0, double toler = 0.1) const;
51 
52  virtual FunctionMinimum Minimize(const FCNBase &, const std::vector<double> &, unsigned int,
53  const std::vector<double> &, unsigned int stra = 1, unsigned int maxfcn = 0,
54  double toler = 0.1) const;
55 
56  virtual FunctionMinimum Minimize(const FCNGradientBase &, const std::vector<double> &, unsigned int,
57  const std::vector<double> &, unsigned int stra = 1, unsigned int maxfcn = 0,
58  double toler = 0.1) const;
59 
60  // extension
61  virtual FunctionMinimum Minimize(const FCNBase &, const MnUserParameters &, const MnStrategy &,
62  unsigned int maxfcn = 0, double toler = 0.1) const;
63 
64  virtual FunctionMinimum Minimize(const FCNGradientBase &, const MnUserParameters &, const MnStrategy &,
65  unsigned int maxfcn = 0, double toler = 0.1) const;
66 
67  virtual FunctionMinimum Minimize(const FCNBase &, const MnUserParameters &, const MnUserCovariance &,
68  const MnStrategy &, unsigned int maxfcn = 0, double toler = 0.1) const;
69 
71  const MnStrategy &, unsigned int maxfcn = 0, double toler = 0.1) const;
72 
73  virtual FunctionMinimum Minimize(const FCNBase &, const MnUserParameterState &, const MnStrategy &,
74  unsigned int maxfcn = 0, double toler = 0.1) const;
75 
77  unsigned int maxfcn = 0, double toler = 0.1) const;
78 
79  // for Fumili
80 
81  // virtual FunctionMinimum Minimize(const FumiliFCNBase&, const std::vector<double>&, const std::vector<double>&,
82  // unsigned int stra=1, unsigned int maxfcn = 0, double toler = 0.1) const;
83 
84  // virtual FunctionMinimum Minimize(const FumiliFCNBase&, const MnUserParameters&, const MnStrategy&, unsigned int
85  // maxfcn = 0, double toler = 0.1) const;
86 
87  // virtual FunctionMinimum Minimize(const FumiliFCNBase&, const MnUserParameters&, const MnUserCovariance&, const
88  // MnStrategy&, unsigned int maxfcn = 0, double toler = 0.1) const;
89 
90  // virtual FunctionMinimum Minimize(const FumiliFCNBase&, const MnUserParameterState&, const MnStrategy&, unsigned
91  // int maxfcn = 0, double toler = 0.1) const;
92 
93  virtual const MinimumSeedGenerator &SeedGenerator() const = 0;
94  virtual const MinimumBuilder &Builder() const = 0;
95  virtual MinimumBuilder &Builder() = 0;
96 
97 public:
98  virtual FunctionMinimum Minimize(const MnFcn &, const GradientCalculator &, const MinimumSeed &, const MnStrategy &,
99  unsigned int, double) const;
100 };
101 
102 } // namespace Minuit2
103 
104 } // namespace ROOT
105 
106 #endif // ROOT_Minuit2_ModularFunctionMinimizer
ROOT::Minuit2::MnFcn
Wrapper class to FCNBase interface used internally by Minuit.
Definition: MnFcn.h:30
ROOT::Minuit2::ModularFunctionMinimizer::SeedGenerator
virtual const MinimumSeedGenerator & SeedGenerator() const =0
FunctionMinimizer.h
ROOT::Minuit2::FCNBase
Interface (abstract class) defining the function to be minimized, which has to be implemented by the ...
Definition: FCNBase.h:45
ROOT::Minuit2::ModularFunctionMinimizer::Builder
virtual MinimumBuilder & Builder()=0
ROOT::Minuit2::ModularFunctionMinimizer::~ModularFunctionMinimizer
virtual ~ModularFunctionMinimizer()
Definition: ModularFunctionMinimizer.h:43
ROOT::Minuit2::MnUserCovariance
Class containing the covariance matrix data represented as a vector of size n*(n+1)/2 Used to hide in...
Definition: MnUserCovariance.h:26
ROOT::Minuit2::FunctionMinimizer
base class for function minimizers; user may give FCN or FCN with Gradient, Parameter starting values...
Definition: FunctionMinimizer.h:34
ROOT::Minuit2::ModularFunctionMinimizer::Builder
virtual const MinimumBuilder & Builder() const =0
ROOT::Minuit2::MnUserParameters
API class for the user interaction with the parameters; serves as input to the minimizer as well as o...
Definition: MnUserParameters.h:36
ROOT::Minuit2::ModularFunctionMinimizer
Base common class providing the API for all the minimizer Various Minimize methods are provided varyi...
Definition: ModularFunctionMinimizer.h:40
ROOT::Minuit2::FunctionMinimum
class holding the full result of the minimization; both internal and external (MnUserParameterState) ...
Definition: FunctionMinimum.h:36
ROOT::Minuit2::FCNGradientBase
Extension of the FCNBase for providing the analytical Gradient of the function.
Definition: FCNGradientBase.h:34
ROOT::Minuit2::MnUserParameterState
class which holds the external user and/or internal Minuit representation of the parameters and error...
Definition: MnUserParameterState.h:33
ROOT::Minuit2::MnStrategy
API class for defining three levels of strategies: low (0), medium (1), high (>=2); acts on: Migrad (...
Definition: MnStrategy.h:27
ROOT::Minuit2::MinimumSeedGenerator
base class for seed generators (starting values); the seed generator prepares initial starting values...
Definition: MinimumSeedGenerator.h:29
ROOT::Minuit2::GradientCalculator
interface class for gradient calculators
Definition: GradientCalculator.h:23
ROOT
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
Definition: EExecutionPolicy.hxx:4
ROOT::Minuit2::MinimumBuilder
Definition: MinimumBuilder.h:27
ROOT::Minuit2::MinimumSeed
Definition: MinimumSeed.h:23
MnConfig.h
ROOT::Minuit2::ModularFunctionMinimizer::Minimize
virtual FunctionMinimum Minimize(const FCNBase &, const std::vector< double > &, const std::vector< double > &, unsigned int stra=1, unsigned int maxfcn=0, double toler=0.1) const
Definition: ModularFunctionMinimizer.cxx:36