Invalid FitResult (status = 4 )

Hello,everyone: I wrote a plannarfit code to fit my data ,which to find the wavefront plane,but when I run it ,I get the error message like:


     Invalid FitResult  (status = 4 )

Minimizer is Minuit / Migrad
Chi2 = 10688.4
NDf = 11
Edm = 0.0160518
NCalls = 1635
p0 = 3973.32 +/- 15068.5
p1 = -267.905 +/- 203.634
p2 = 135.593 +/- 119.386
p3 = -1948.31 +/- 2041.21
p4 = 599.499 +/- 499.162

some event have this error ,another have not. So I want to ask the reson.
thank you!

I think @moneta can help you.

Hi,
status=4 means that EDM is above tolerance and it did not converge, as shown here:
https://root.cern/doc/master/classROOT_1_1Minuit2_1_1Minuit2Minimizer.html#a8f72504b2afaabf666601a44e50a79d6

This is normally due to a limited precision in computing the function passed to Minuit

Lorenzo

Thank you very much! :grinning:

Thank you ! I replied too late, and I’ll have a look this link.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.