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: TaoInt maxfev; /* maximum funct evals per line search call */
20: TaoInt nfev; /* number of funct evals per line search call */
21: TaoInt bracket;
22: TaoInt infoc;
24: TaoInt setupcalled;
25: TaoVec *W2;
26: TaoVec *Gold;
28: } TAO_GPCGLINESEARCH;
30: int TaoGPCGCreateLineSearch(TAO_SOLVER tao);
32: #endif