Minimize a function using the Newton-CG method.
Parameters: |
|
---|---|
Returns: | (xopt, {fopt, fcalls, gcalls, hcalls, warnflag},{allvecs})
|
Other Parameters:
- avextol : float
- Convergence is assumed when the average relative error in the minimizer falls below this amount.
- maxiter : int
- Maximum number of iterations to perform.
- full_output : bool
- If True, return the optional outputs.
- disp : bool
- If True, print convergence message.
- retall : bool
- If True, return a list of results at each iteration.
Notes: |
2. Only one of fhess_p or fhess need to be given. If fhess is provided, then fhess_p will be ignored. If neither fhess nor fhess_p is provided, then the hessian product will be approximated using finite differences on fprime. fhess_p must compute the hessian times an arbitrary vector. If it is not given, finite-differences on fprime are used to compute it. See Wright, and Nocedal ‘Numerical Optimization’, 1999, pg. 140. |
---|