[SciPy-user] Correct syntax for optimize.fmin_powell
nwagner at mecha.uni-stuttgart.de
Tue Sep 13 07:32:20 CDT 2005
Dan Christensen wrote:
>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))
>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.
>SciPy-user mailing list
>SciPy-user at scipy.net
python -i powell.py results in
Optimization terminated successfully.
Current function value: 0.000000
Function evaluations: 22
array([ 5., 6.])
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 137 bytes
Desc: not available
Url : http://www.scipy.net/pipermail/scipy-user/attachments/20050913/0cb21012/powell.py
More information about the SciPy-user