[SciPy-user] fmin won't optimize
pearu at scipy.org
Mon Nov 8 04:31:02 CST 2004
On Mon, 8 Nov 2004, Yaroslav Bulatov wrote:
> Sorry, for the double send, I was confused by the "message awaits
> moderator approval" replies.
> Yes, if I change starting parameter to be [0.,0.,0.] instead of
> [0,0,0] fmin and fmin_powell find the same optimum. I guess fmin
> doesn't cast them to floats?
As I said, this is fixed in Scipy. The issue was related to the fact
that in fmin `x0 = asarray(x0)` caused x0 to be integer array and latter
x0.typecode() was used to create an array that should have been a float
More information about the SciPy-user