update the lbfgs optimizer