Use bfgs fmin, not vanilla fmin in logistic