1 Mar 01:30
minpack.error / fsolve problem
Webb Sprague <webb.sprague <at> gmail.com>
2008-03-01 00:30:34 GMT
2008-03-01 00:30:34 GMT
I am having a problem with convergence (I think) for an optimization.
Every so often I do a non-linear fit of a parameter using fsolve (as
input a constant vector of base death rates, a constant vector
multiplier of those, and a variable scalar multiplier -- the last is
what I am trying to fit) and I get a "minpack.error" with the message
that "Error occured while calling the Python function named f" with
no other information. The information normally returned from fsolve
(ier, message, infodict) are all set to none.
I am kind of at a loss for how to proceed, at least without taking a
class on optimization algorithms. How do I get more information from
fsolve? Is there a better optimization function to use?
optimize.golden()? Or ... ?
See attached for how I set up the optimizer, and here is the back
trace from the web application using this code:
TRACEBACK:
Traceback (most recent call last):
File "/usr/lib64/python2.5/site-packages/mod_python/importer.py",
line 1537, in HandlerDispatch
default=default_handler, arg=req, silent=hlist.silent)
File "/usr/lib64/python2.5/site-packages/mod_python/importer.py",
line 1229, in _process_target
result = _execute_target(config, req, object, arg)
(Continue reading)
RSS Feed