try optimize.fmin_bfgs