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
14namespace ROOT {
15
16 namespace Minuit2 {
17
18
19
20
21
22FunctionMinimum 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
FunctionMinimum Minimize(const FCNBase &, const MnUserParameterState &, const MnStrategy &, unsigned int maxfcn=0, double toler=0.1) const
class holding the full result of the minimization; both internal and external (MnUserParameterState) ...
const MnUserParameterState & UserState() const
MnUserParameterState fState
Definition: MnApplication.h:75
unsigned int VariableParameters() const
virtual FunctionMinimum operator()(unsigned int=0, double=0.1)
overwrite Minimize to use FumiliFCNBase
const FumiliFCNBase & Fcnbase() const
VSD Structures.
Definition: StringConv.hxx:21