[SciPy-User] scipy.optimize fmin error

Oz Nahum nahumoz at gmail.com
Tue Oct 6 15:45:19 EDT 2009


>In your call to fmin, you have reversed the cr and tr args. It should be
>args=(tr,cr) to match the definition of the residuals() function.

Thanks,
That does the trick !!!
That's what I call erosion, took me too much time to implement it in
python, comparing to matlab, and just out of frustration I didn't see
that little error !

Our university is too much Matlab ($%^!# ) centric, no one to ask
around unfortunatly....

BTW, feel free to use this code (with the correction of course) as a
real world example - it's a tracer test analysis made in a ground
water test site here in southern Germany.

Also, I felt python is much faster:
With matlab optimization of the problem took:

Elapsed time is 0.212064 seconds (for first run... further runs where
much better)

With python (first run):
took  0.0125770568848 sec to run

Which is a nice bonous !

Many thanks,
P.S when I have some time in the weekend I'll put into my blog, which
already has many numpy/scipy examples !

Oz Nahum
Graduate Student
Zentrum für Angewandte Geologie
Universität Tübingen

---

Imagine there's no countries
it isn't hard to do
Nothing to kill or die for
And no religion too
Imagine all the people
Living life in peace



More information about the SciPy-User mailing list