[SciPy-dev] fmin question

eric jones eric at enthought.com
Sun Jun 16 03:14:31 CDT 2002


Never mind -- just looked at the rosen function and now see that it
takes a vector as input.

> -----Original Message-----
> From: scipy-dev-admin at scipy.net [mailto:scipy-dev-admin at scipy.net] On
> Behalf Of eric jones
> Sent: Sunday, June 16, 2002 3:07 AM
> To: scipy-dev at scipy.org
> Subject: [SciPy-dev] fmin question
> 
> 
> 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
> 
> 
> _______________________________________________
> Scipy-dev mailing list
> Scipy-dev at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-dev




More information about the Scipy-dev mailing list