python - Why do we write [1,1] in the minimize function -


i new optimization techniques , want best function getting optimum value unconstrained multi-variables.

why write [1,1] after f in minimize function??

{ def f(x):     z=(x[0]**2)+(x[1]**2)     d=x[0]+x[1]     return z+d scipy.optimize import minimize res=minimize(f,[1,1]) print res } 

i appreciate anyone.

it required argument (initial guess) according http://docs.scipy.org/doc/scipy-0.16.0/reference/generated/scipy.optimize.minimize.html


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -