Skip to content

How to pass "args" to Minimizer.brute? #870

Closed Answered by reneeotten
aeiou6630 asked this question in Q&A
Discussion options

You must be logged in to vote

@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.

Replies: 4 comments 14 replies

Comment options

You must be logged in to vote
1 reply
@aeiou6630
Comment options

Comment options

You must be logged in to vote
13 replies
@aeiou6630
Comment options

@reneeotten
Comment options

@newville
Comment options

@reneeotten
Comment options

Answer selected by aeiou6630
@newville
Comment options

@aeiou6630
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants