A step of the cgnonl_native implementation. Called by morie_cgnonl.
See the file header for the source the module follows.
Usage
cgnonl_nonlinear_cg(
f,
grad,
x0,
beta = "fletcher-reeves",
restart = NULL,
max_iter = NULL,
tol = 1e-10,
est = NULL,
line_search = "fletcher-reeves",
hess_vec = NULL,
keep_path = FALSE
)Arguments
- f
Passed to
cgnonl_line_search_fr.- grad
Passed to
cgnonl_line_search_fr.- x0
Coerced to numeric by the body, with
as.numeric.- beta
Passed to
.cgnonl_beta. Defaults to"fletcher-reeves".- restart
Optional; may be
NULL. Numeric; combined arithmetically in the body.- max_iter
Optional; may be
NULL. Coerced to integer by the body, withas.integer.- tol
Numeric; combined arithmetically in the body. Defaults to
1e-10.- est
Passed to
cgnonl_line_search_fr.- line_search
Compared against
"exact-quadratic". Defaults to"fletcher-reeves".- hess_vec
Optional; may be
NULL. Passed to.cgnonl_exact_quadratic_step.- keep_path
A flag; the body branches on it. Defaults to
FALSE.
