Actual source code: morethuente.h

  1: /*
  2:     Context for a line search method for unconstrained minimization
  3:  */

  5: #ifndef __TAO_LINESEARCH_H
  7: #include "src/tao_impl.h"

  9: typedef struct {

 11: /* --------------- Parameters used by line search method ----------------- */
 12:   double maxstep;             /* maximum step size */
 13:   double rtol;                     /* relative tol for acceptable step (rtol>0) */
 14:   double ftol;                     /* tol for sufficient decr. condition (ftol>0) */
 15:   double gtol;                     /* tol for curvature condition (gtol>0)*/
 16:   double stepmin;             /* lower bound for step */
 17:   double stepmax;             /* upper bound for step */
 18:   int    maxfev;             /* maximum funct evals per line search call */
 19:   int    nfev;                     /* number of funct evals per line search call */
 20:   int    bracket;
 21:   int    infoc;
 22: } TAO_LINESEARCH;

 24: #endif