Sept. 13, 2005
12:27 p.m.
Robert Kern <rkern@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