m223min0

799 days ago by jozefl

Sage computes minima numerically.  The function is of the form

minimize(function,initial guess, gradiant, Hessian, algorithm).

The default algorithm is 'symplex'. You can also specify algorithm='powell'. Specifying 'ncg' uses Newton's method; however, this requires that you specify a gradiant and a Hessian function.

var('x,y') f = 7*x^2+2*x*y+3*y^2 + 5*x + 11*y minimize(f,[0,0])