Logo ROOT   6.10/09
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 
19 
20 
21 
22 FunctionMinimum MnFumiliMinimize::operator()(unsigned int maxfcn, double toler) {
23  // minimize using Fumili
24  // need to reimplement otherwise base class method is done
25 
26  assert(fState.IsValid());
27  unsigned int npar = VariableParameters();
28  // assert(npar > 0);
29  if(maxfcn == 0) maxfcn = 200 + 100*npar + 5*npar*npar;
30  FunctionMinimum min = Minimizer().Minimize( Fcnbase(), fState, fStrategy, maxfcn, toler);
31  fNumCall += min.NFcn();
32  fState = min.UserState();
33  return min;
34 }
35 
36  } // namespace Minuit2
37 
38 } // namespace ROOT
Namespace for new ROOT classes and functions.
Definition: StringConv.hxx:21
const FumiliFCNBase & Fcnbase() const
class holding the full result of the minimization; both internal and external (MnUserParameterState) ...
MnUserParameterState fState
Definition: MnApplication.h:74
virtual FunctionMinimum operator()(unsigned int=0, double=0.1)
overwrite Minimize to use FumiliFCNBase
const FumiliMinimizer & Minimizer() const
const MnUserParameterState & UserState() const
unsigned int VariableParameters() const
FunctionMinimum Minimize(const FCNBase &, const MnUserParameterState &, const MnStrategy &, unsigned int maxfcn=0, double toler=0.1) const