[SciPy-dev] fmin question

eric jones eric at enthought.com
Sun Jun 16 03:07:21 CDT 2002


I was just to get up to speed on the optimization library, and got the
following:

>>> optimize.fmin(optimize.rosen,[.3],xtol=1e-7)
Optimization terminated successfully.
         Current function value: 0.000000
         Iterations: 19
         Function evaluations: 56
array([ 0.31000002])
>>> optimize.fmin(optimize.rosen,[.3,.3],xtol=1e-7)
Optimization terminated successfully.
         Current function value: 0.000000
         Iterations: 80
         Function evaluations: 153
array([ 1.00000001,  1.00000002])

I understand the 2nd argument to be an array of initial guesses.  If so,
shouldn't the results returned be the same?  

eric





More information about the Scipy-dev mailing list