I want to terminate scipy.optimize.fmin_bfgs(f,x0) after the objective (i.e. f(xk)) becomes negative. Is there a way to do this? The optional argum
scipy.optimize.fmin_bfgs(f,x0)
f(xk)