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
16namespace Minuit2 {
17
18FunctionMinimum 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
FunctionMinimum Minimize(const FCNBase &, const MnUserParameterState &, const MnStrategy &, unsigned int maxfcn=0, double toler=0.1) const override
class holding the full result of the minimization; both internal and external (MnUserParameterState) ...
const MnUserParameterState & UserState() const
MnUserParameterState fState
Definition: MnApplication.h:73
unsigned int VariableParameters() const
FunctionMinimum operator()(unsigned int=0, double=0.1) override
overwrite Minimize to use FumiliFCNBase
FumiliMinimizer & Minimizer() override
const FumiliFCNBase & Fcnbase() const override
This file contains a specialised ROOT message handler to test for diagnostic in unit tests.