Logo ROOT  
Reference Guide
MnFumiliMinimize.cxx
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 
13 
14 namespace ROOT {
15 
16 namespace Minuit2 {
17 
18 FunctionMinimum MnFumiliMinimize::operator()(unsigned int maxfcn, double toler)
19 {
20  // minimize using Fumili
21  // need to reimplement otherwise base class method is done
22 
23  assert(fState.IsValid());
24  unsigned int npar = VariableParameters();
25  // assert(npar > 0);
26  if (maxfcn == 0)
27  maxfcn = 200 + 100 * npar + 5 * npar * npar;
28  FunctionMinimum min = Minimizer().Minimize(Fcnbase(), fState, fStrategy, maxfcn, toler);
29  fNumCall += min.NFcn();
30  fState = min.UserState();
31  return min;
32 }
33 
34 } // namespace Minuit2
35 
36 } // namespace ROOT
ROOT::Minuit2::MnFumiliMinimize::Fcnbase
const FumiliFCNBase & Fcnbase() const
Definition: MnFumiliMinimize.h:93
FunctionMinimum.h
MnFumiliMinimize.h
ROOT::Minuit2::FumiliMinimizer::Minimize
FunctionMinimum Minimize(const FCNBase &, const MnUserParameterState &, const MnStrategy &, unsigned int maxfcn=0, double toler=0.1) const
Definition: FumiliMinimizer.cxx:34
ROOT::Minuit2::MnUserParameterState::IsValid
bool IsValid() const
Definition: MnUserParameterState.h:106
ROOT::Minuit2::FunctionMinimum::UserState
const MnUserParameterState & UserState() const
Definition: FunctionMinimum.h:71
ROOT::Minuit2::MnFumiliMinimize::operator()
virtual FunctionMinimum operator()(unsigned int=0, double=0.1)
overwrite Minimize to use FumiliFCNBase
Definition: MnFumiliMinimize.cxx:18
ROOT::Minuit2::MnApplication::fStrategy
MnStrategy fStrategy
Definition: MnApplication.h:74
ROOT::Minuit2::MnApplication::VariableParameters
unsigned int VariableParameters() const
Definition: MnApplication.cxx:226
ROOT::Minuit2::MnApplication::fState
MnUserParameterState fState
Definition: MnApplication.h:73
ROOT::Minuit2::FunctionMinimum
class holding the full result of the minimization; both internal and external (MnUserParameterState) ...
Definition: FunctionMinimum.h:33
ROOT::Minuit2::FunctionMinimum::NFcn
int NFcn() const
Definition: FunctionMinimum.h:82
ROOT::Minuit2::MnFumiliMinimize::Minimizer
FumiliMinimizer & Minimizer()
Definition: MnFumiliMinimize.h:90
FumiliMinimizer.h
ROOT::Minuit2::MnApplication::fNumCall
unsigned int fNumCall
Definition: MnApplication.h:75
ROOT
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
Definition: EExecutionPolicy.hxx:4