I am getting the fmin by giving the random x values.

Can anybody tell me, how can I find the fmin for f(5.0,5.0)?

****************************************************************************

from scipy.optimize import fmin

x0 = ([-1.0, 1])

def func(x):

f= 100*(x[1]-x[0]**2)**2+(1-x[0])**2

return f

op= fmin(func, x0)

print(op)

***************************************************************************

Optimization terminated successfully. Current function value: 0.000000 Iterations: 100 Function evaluations: 187 [1.00000102 1.00000004]

More Zuffain Hussan's questions See All
Similar questions and discussions