Actual source code: gpcglinesearch.h
1: /*
2: Context for a Newton line search method (unconstrained minimization)
3: */
5: #ifndef __TAO_GPCGLINESEARCH_H
8: #include "gpcg.h" /*I "tao_solver.h" I*/
10: typedef struct {
12: /* --------------- Parameters used by line search method ----------------- */
13: double maxstep; /* maximum step size */
14: double rtol; /* relative tol for acceptable step (rtol>0) */
15: double ftol; /* tol for sufficient decrease condition (ftol>0) */
16: double gtol; /* tol for curvature condition (gtol>0)*/
17: double stepmin; /* lower bound for step */
18: double stepmax; /* upper bound for step */
19: int maxfev; /* maximum funct evals per line search call */
20: int nfev; /* number of funct evals per line search call */
21: int bracket;
22: int infoc;
24: int setupcalled;
25: TaoVec *W2;
26: TaoVec *Gold;
28: } TAO_GPCGLINESEARCH;
30: int TaoGPCGCreateLineSearch(TAO_SOLVER tao);
32: #endif