
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

Never mind -- just looked at the rosen function and now see that it takes a vector as input.
-----Original Message----- From: scipy-dev-admin@scipy.net [mailto:scipy-dev-admin@scipy.net] On Behalf Of eric jones Sent: Sunday, June 16, 2002 3:07 AM To: scipy-dev@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@scipy.net http://www.scipy.net/mailman/listinfo/scipy-dev
participants (1)
-
eric jones