[SciPy-user] minpack.error / fsolve problem
dmitrey
dmitrey.kroshko at scipy.org
Sat Mar 1 03:17:19 EST 2008
As for me it yields "name LcUtil is not defined" (line 48). Also, there
was some indent problems near try-except block, mb due to space-tab
different numbers from the attached file.
Webb Sprague wrote:
> 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 would recommend you try using another solver, for example nssolve from
scikits.openopt.
> 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 ... ?
>
Do you know exactly what do you need? Solve a system of non-linear
equations via fsolve or to minimize a function?
D.
More information about the SciPy-User
mailing list