Hello,
I’m trying to use simplex to fit a TH1D histogram.
I did use the command at the beginning of my macro: ROOT::Math::MinimizerOptions::SetDefaultMinimizer("Minuit", "Simplex");
to change the default algorithm to Simplex, but the fit still says that it’s using MIGRAD.
How do I correct this?
Here are the codes I’m using, including a histogram generator[1] and fitter[2], together with a function declarations[3].
I the fitter, I set the default minimizer and algorithm to minuit and simplex at line 65, right at the start of the main code. Am I doing anything wrong?
You are using option "M", which is a special algorithm used after minimization to check if the minimum is really a global one. Unfortunately this algorithm does not work very well, I would eventually try in a second fit If you remove that option you should see the result of Simplex