[SciPy-user] optimize.leastsq() question
ckkart at hoc.net
Mon Dec 4 19:29:46 CST 2006
palazzol at comcast.net wrote:
> First, I want to thank you all for making SciPy so great. I am prototyping an application using VPython and SciPy together, and I can't believe how well everything is working after <2 weeks of coding.
> Now, on to my question. I've boiled it down to a small test program which shows the situation, and attached it here. I am passing an array into my minimization function, intended to hold the return values. Apparently, this causes some kind of issue, when the array is updated elementwise. If you run it as-is, you will see the iteration stop after a few tries, with an error. If you uncomment either of the #err=xxx lines, it works fine.
I do not see what you intend using the err variable, nor do I understand why it
should not work like this. This is really weird.
Anyway, I send attached a modified version.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 990 bytes
Desc: not available
Url : http://projects.scipy.org/pipermail/scipy-user/attachments/20061205/202a721b/attachment.py
More information about the SciPy-user