[SciPy-user] optimize.leastsq() question
Christian Kristukat
ckkart at hoc.net
Mon Dec 4 20:29:46 EST 2006
palazzol at comcast.net wrote:
> Hi,
>
> 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.
Christian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: leastsq_test2.py
Type: text/x-python
Size: 990 bytes
Desc: not available
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20061205/202a721b/attachment.py>
More information about the SciPy-User
mailing list