Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
class holding the full result of the minimization; both internal and external (MnUserParameterState) ...
const MnUserParameterState & UserState() const
MnUserParameterState fState
unsigned int VariableParameters() const
virtual FunctionMinimum operator()(unsigned int=0, double=0.1)
overwrite Minimize to use FumiliFCNBase
const FumiliFCNBase & Fcnbase() const
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...