#include "Math/Minimizer.h"
#include "Math/Factory.h"
#include "TVirtualFitter.h"
#include "Math/IFunction.h"
#include "Math/Util.h"
#include <cmath>
#include <cassert>
#include <string>
#include <iostream>
#include "TStopwatch.h"
#include "TMatrixD.h"
#include "TVectorD.h"
#include "TRandom3.h"
#include "TMath.h"
Go to the source code of this file.
Definition at line 36 of file testMinim.cxx.
int DoNewMinimization | ( | const ROOT::Math::IMultiGenFunction & | func, | |
const double * | x0, | |||
const double * | s0, | |||
ROOT::Math::Minimizer * | min, | |||
double & | minval, | |||
double & | edm, | |||
double * | minx | |||
) |
Definition at line 395 of file testMinim.cxx.
References copy(), ROOT::Math::eu, ROOT::Math::fabs(), func(), gAbsTolerance, gVerbose, i, min, minos, ok, ROOT::Math::Util::ToString(), TrueMinimum(), and xmin.
Referenced by testNewMinimizer().
int DoOldMinimization | ( | FCN | func, | |
TVirtualFitter * | min, | |||
double & | minval, | |||
double & | edm | |||
) |
Definition at line 461 of file testMinim.cxx.
References TMath::Abs(), gAbsTolerance, gVerbose, min, minos, and ok.
Referenced by testOldMinimizer().
int main | ( | void | ) |
void printMinimum | ( | const std::vector< double > & | x | ) |
Definition at line 42 of file testMinim.cxx.
Referenced by RosenBrockFunction::DoEval(), NumericalMinimization(), RunRosenBrock(), testGAMinimizer(), and testRosenBrock().
int testChebyQuad | ( | ) |
Definition at line 652 of file testMinim.cxx.
References func(), gNmin, max, n, testNewMinimizer(), x0, and x1.
Referenced by main().
int testNewMinimizer | ( | const ROOT::Math::IMultiGenFunction & | func, | |
const double * | x0, | |||
const double * | s0, | |||
const std::string & | minimizer, | |||
const std::string & | algoType | |||
) |
Definition at line 505 of file testMinim.cxx.
References ROOT::Math::Factory::CreateMinimizer(), DoNewMinimization(), func(), gNCall, gNCall2, gNmin, i, min, pr(), printMinimum(), w, and xmin.
Referenced by testChebyQuad(), testPowell(), testQuadFunc(), testRosenBrock(), testTrigoFletcher(), and testWood().
int testOldMinimizer | ( | FCN | func, | |
const std::string & | fitter, | |||
int | n = 25 | |||
) |
Definition at line 557 of file testMinim.cxx.
References DoOldMinimization(), TVirtualFitter::Fitter(), gNCall, gNmin, i, min, n, pr(), TVirtualFitter::SetDefaultFitter(), and w.
Referenced by testRosenBrock().
int testRosenBrock | ( | ) |
Definition at line 590 of file testMinim.cxx.
References gNmin, RosenBrock(), testNewMinimizer(), and testOldMinimizer().
Referenced by main().
int testTrigoFletcher | ( | ) |
Definition at line 622 of file testMinim.cxx.
References gNmin, TrigoFletcherFunction::StartPoints(), and testNewMinimizer().
Referenced by main().
const double* TrueMinimum | ( | const ROOT::Math::IMultiGenFunction & | func | ) |
Definition at line 370 of file testMinim.cxx.
References func(), RosenBrockFunction::TrueMinimum(), and TrigoFletcherFunction::TrueMinimum().
Referenced by DoNewMinimization().
double gAbsTolerance = 0.001 |
Definition at line 32 of file testMinim.cxx.
int gNCall = 0 |
Definition at line 24 of file testMinim.cxx.
Referenced by TrigoFletcherFunction::DoEval(), RosenBrockFunction::DoEval(), ChebyQuadFunction::DoEval(), DoNewMinimization(), PowellFunction(), RosenBrock(), SimpleQuadFunction(), testNewMinimizer(), testOldMinimizer(), and WoodFunction().
int gNCall2 = 0 |
Definition at line 25 of file testMinim.cxx.
Referenced by ChebyQuadFunction::Gradient(), TrigoFletcherFunction::Gradient(), and testNewMinimizer().
int gNmin = 1000 |
Definition at line 26 of file testMinim.cxx.
Referenced by main(), testChebyQuad(), testNewMinimizer(), testOldMinimizer(), testPowell(), testQuadFunc(), testRosenBrock(), testTrigoFletcher(), and testWood().
int gVerbose = 0 |
Definition at line 27 of file testMinim.cxx.
bool minos = false |
Definition at line 30 of file testMinim.cxx.
Referenced by RooAbsReal::chi2FitDriver(), ROOT::Minuit2::MnContours::Contour(), DoNewMinimization(), DoOldMinimization(), TFitterMinuit::ExecuteCommand(), RooAbsPdf::fitTo(), G__G__RooFitCore2_168_0_10(), G__G__RooFitCore2_168_0_11(), G__G__RooFitCore3_831_0_10(), G__G__RooFitCore3_831_0_11(), and ROOT::Minuit2::Minuit2Minimizer::GetMinosError().