Skip to content
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

Cannot pass function arguments. #26

Open
SSimonTemplar opened this issue Jun 30, 2021 · 1 comment
Open

Cannot pass function arguments. #26

SSimonTemplar opened this issue Jun 30, 2021 · 1 comment

Comments

@SSimonTemplar
Copy link

Hello Paul.

Is it possible to pass function arguments to the solver?
For example, my function is defined as:

def func(x,*parms):

And then with the scipy minimize I can pass the parameters with the args= argument:

minimize(func, Initial_Guesses, method = 'SLSQP', bounds = Bounds, args=Parms )

I looked at the code but did not see a way to pass this argument.
Thanks

@paulknysh
Copy link
Owner

Hi, sorry, I don't have a good answer here actually, never ran into such scenario.
Under the hood, scipy minimizes RBF fit, not the function itself, not sure if it's possible to do that..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants