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
Wrong MinimizerResult for brute with workers != 1 #578
Comments
@hombit Do you have any evidence that any attribute other than Nfev is incremented internally in lmfit code - |
No, I've checked other attributes of |
@hombit @newville indeed the the In fact, in the tests I do make sure that Of note, the example doesn't run for me with the following traceback:
this likely because no Any Thoughts? |
@reneeotten I've got this error too, but only with |
Yeah, okay I see... I've update my comment above already. It's because you didn't specify a |
…value is present Probably this is a rare occurence as most users will actually set an initial value when initializing the parameters. However, for algorithms like "brute" that is actually not required and this might happen. Added a regression test and updated the code to include the check whether an init_value is present. See: lmfit#578
Description
Current master version returns incorrect result report for
method='brute', workers!=1
, for examplenfev
always equals zero in this case.A Minimal, Complete, and Verifiable example
Version information
The text was updated successfully, but these errors were encountered: