Specify the optimization algorithm to use: BFGS (default), fletcher reeves, polak ribiere, or Steepest Descent. If 'type'= BFGS, specify whether to use LBFGS (limited memory BFGS). Maximum number of stored vectors. Maximum number of iterations for (L)BFGS. Absolute tolerance for gradient. Relative tolerance for gradient. Absolute tolerance for step size. Relative tolerance for step size.