-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] [minuit] FPE/crash in Minuit2 #6775
Labels
Comments
Hi @eguiraud , this is still present in 6.26. Andrii |
andriish
added a commit
to andriish/root
that referenced
this issue
Apr 29, 2022
Should fix root-project#6775
Present in 6.28 |
guitargeek
pushed a commit
to andriish/root
that referenced
this issue
Sep 27, 2023
Should fix root-project#6775
guitargeek
added a commit
to andriish/root
that referenced
this issue
Sep 27, 2023
This avoids the problems when running simplex with zero parameters reported in root-project#6775.
guitargeek
added a commit
that referenced
this issue
Sep 27, 2023
This avoids the problems when running simplex with zero parameters reported in #6775.
maksgraczyk
pushed a commit
to maksgraczyk/root
that referenced
this issue
Jan 12, 2024
This avoids the problems when running simplex with zero parameters reported in root-project#6775.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
FPE when calling Simplex with no free parameters.
Expected behavior
No FPE/crash
To Reproduce
simplex.cxx
results in
Setup
CentOS7/gcc-4.8.5 root 6.22 from EPEL
Additional context
Not a personal priority of me, so it is unlikely that I will provode a patch in the next days.
However, I can briefly describe how the FPE occurs.
It occurs on line 48 in SimplexBuilder when all parameters are fixed and 1./double(n) is always 1/0. So it is just plain crash, not an FPE.
To avoid it the Simplex builder should not be called for the case when there are no free parameters but instead, ModularFunctionMinimizer::Minimize() should call FCn just once and return "current state".
And yes, just preempting a question about a fit with zero free parameters. Yes, it is very useful.
Imagine a set of different models fitted to the data using the same codebase. Some models have 2 free parameters, others 3, but some have 0. And for the last category because if this bug one cannot use simplex from ROOT. (I use migrad).
The text was updated successfully, but these errors were encountered: