Package minfx :: Module ncg :: Class Ncg
[hide private]
[frames] | no frames]

Class Ncg

source code


Instance Methods [hide private]
 
__init__(self, func, dfunc, d2func, args, x0, min_options, func_tol, grad_tol, maxiter, a0, mu, eta, full_output, print_flag, print_prefix)
Class for newton conjugate gradient minimisation specific functions.
source code
 
get_pk(self)
The CG algorithm.
source code
 
new_param_func(self)
The new parameter function.
source code
 
update(self)
Function to update the function value, gradient vector, and Hessian matrix.
source code

Inherited from base_classes.Line_search: backline, line_search_options, mt, no_search, nwi, nww, setup_line_search, valid_line_search

Inherited from base_classes.Min: double_test, func_test, grad_test, hessian_type_and_mod, minimise, setup_conv_tests

Method Details [hide private]

__init__(self, func, dfunc, d2func, args, x0, min_options, func_tol, grad_tol, maxiter, a0, mu, eta, full_output, print_flag, print_prefix)
(Constructor)

source code 

Class for newton conjugate gradient minimisation specific functions.

Unless you know what you are doing, you should call the function 'ncg' rather than using this class.

Overrides: base_classes.Min.__init__

new_param_func(self)

source code 

The new parameter function.

Find the search direction, do a line search, and get xk+1 and fk+1.

update(self)

source code 

Function to update the function value, gradient vector, and Hessian matrix.

Overrides: base_classes.Min.update