How to pass "args" to Minimizer.brute? #870
-
Just a quick question. While |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 14 replies
-
@aeiou6630 looks like we don't support that. |
Beta Was this translation helpful? Give feedback.
-
@aeiou6630 well, we might want to fix this ;) |
Beta Was this translation helpful? Give feedback.
-
@newville I see your point and realize now that the To me that would be a better way of doing it and I'd be in favor of removing the |
Beta Was this translation helpful? Give feedback.
-
@reneeotten perhaps we should give a warning if We should not feel obligated to follow the |
Beta Was this translation helpful? Give feedback.
@newville I don't think it has to include an "args" argument as that is supposed to provide things/parameters to calculate the residual function. That is what "fnc_args" is intended for. The parameter "Ns" in my example was changed from its default and does get passed correctly "scipy.optimize.brute".
A few other things that are listed in "brute_kws" (i.e., 'full_output', 'finish', 'disp') can indeed not be changed as is documented in the docstring, but that's what I decided on when adding this method. There should be no compelling reason for the end-user to change those.