TaoCGSetRestartTol

Set the nonlinear conjugate gradient restart tolerance. The algorithm restarts when the gradient at the current point, g(x^k), and the gradient of the previous point, g^{k-1}, satisfy the following inequality: | g(x^k)^T g(x^{k-1}) | / g(x^k)^T g(x^k) > eta.

Synopsis

#include "tao_solver.h" 
int TaoCGSetRestartTol(TAO_SOLVER tao,double eta)
Collective on TAO_SOLVER

Input Parameters

tao - the TAO_SOLVER context
eta - the number of previous points and gradients to be used.

Output Parameter

Options Database Keys

-tao_cg_restart <eta> -sets the restart tolerance

Level:intermediate
Location:src/unconstrained/impls/cg/cg.c
TAO Solver Index
Table of Contents