| 1 | initial version |
The simplest is probably to use scipy.optimize.minimize
sage: import scipy.optimize
sage: def f(X):
....: x,y = X
....: return 3*x^2 + 2*y^2 + x + y*cos(x*y)
sage: res = scipy.optimize.minimize(f,(0,0))
sage: res.x
array([-0.16623723, -0.2493558 ])
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.