Ask Your Question

How does one provide initial step size for fmin in scipy?

asked 2011-03-17 11:36:34 -0500

Shashank gravatar image

I am trying to minimize a funtion f(x,y) over a domain that is considerably large for x than y. Also the domain of y is much less than one. I want to minimize the function using simplex algorithm provided in scipy - fmin. The same algorithm in gsl has a option of providing inital step size. However, I don't see that option in scipy. Is there a way to provide a initial step-size, or any other python implementation of function minimization that just requires the function not its derivatives in which I can provide the initial step size?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2011-03-17 13:57:31 -0500

Felix Lawrence gravatar image

scipy.optimize.fmin_powell seems to do what you want - specify direc. There's also a pretty good summary page of the optimization routines available in scipy.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2011-03-17 11:36:34 -0500

Seen: 1,349 times

Last updated: Mar 17 '11