Hey,
I’ve been using Minuit2 to minimize a function. However, something strange seems to happen after the minimizer has converged already.
----------> Iteration 5
FVAL = 1.51459120364 Edm = 1.18106858216e-07 Nfcn = 56
Error matrix change = 0.180018
Parameters : p0 = 2.38513 p1 = 0.174605
----------> Iteration 6
FVAL = 1.51459120364 Edm = 1.20813613993e-07 Nfcn = 66
Error matrix change = 0
Parameters : p0 = 2.38513 p1 = 0.174605
Minuit2Minimizer : Valid minimum - status = 0
FVAL = 1.51459120364307576
Edm = 1.2081361399259303e-07
Nfcn = 66
par0 = 3.63942e-05 +/- 0.127334 (limited)
par1 = 0.174605 +/- 0.00273269 (limited)
So, the parameter 0 that is output in the end differs significantly from its value during the last iteration. I tried to find out what happens in between but couldn’t find any hint to what might go wrong.
The result (and whether or not the output coincides with the parameter value after the last iteration) seems to depend on what I chose as initial guess. However, I don’t see why 1.3 and 2.0 respectively should produce that different results in the above example.
Could someone hint me to what’s going on in between?
Best,
Ben