[SciPy-user] Minimizing functions of two variables with fmin bfgs

Christian Kristukat ckkart at hoc.net
Mon Nov 14 09:34:02 CST 2005

Alan G Isaac wrote:
> On Mon, 14 Nov 2005, Christian Kristukat apparently wrote: 
>>Unfortunately the minimizers in scipy.optimize use 
>>different input types.  fmin_bfgs needs that the 
>>derivatives are returned as a scipy.array, however e.g.  
>>fmin_tnc insists on recieving a python list.  Btw. the 
>>minimizer will fail with your function as it doesn't have 
>>a global minimum. 
> Is this just historical accident?
> On the face of it, any sequence should do.

I agree. But currently that's not the case. Especially considering the temporary 
memory consumption when converting array<->list this should be taken care of.

Regards, Christian

More information about the SciPy-user mailing list