[SciPy-user] Correct syntax for optimize.fmin_powell

Dan Christensen jdc at uwo.ca
Tue Sep 13 07:27:06 CDT 2005


Robert Kern <rkern at ucsd.edu> writes:

> Dan Christensen wrote:
> 
>> TypeError: test_arg() takes exactly 2 arguments (3 given)
>
> Could you also copy-and-paste the code that you ran to yield this error?
> Because it looks to me like you may have executed
>
>   min = optimize.fmin_powell(test_arg,(1.0,2.0), (5.0,6.0))
>
> instead.

Nope, I copy-and-pasted the code from your message.

And I've also had this bug affect me in completely different code
as well.  Just like the original poster, args works fine for all
the other fmin* routines, but not for fmin_powell.

Dan



More information about the SciPy-user mailing list