# minimize(method=’Newton-CG’)

scipy.optimize.minimize(fun, x0, args=(), method=None, jac=None, hess=None, hessp=None, bounds=None, constraints=(), tol=None, callback=None, options=None)

  Minimization of scalar function of one or more variables using the Newton-CG algorithm.

  Note that the jac parameter (Jacobian) is required.

  See also

  For documentation for the rest of the parameters, see `scipy.optimize.minimize`

  Options:
    ——-
    disp bool

      Set to True to print convergence messages.

    xtol float

      Average relative error in solution xopt acceptable for convergence.

    maxiter int

      Maximum number of iterations to perform.

    eps float or ndarray

      If hessp is approximated, use this value for the step size.

    return_all bool, optional

      Set to True to return a list of the best solution at each of the iterations.