Actual source code: boundproj.h

      1: /*
      2:     Context for a projected line search method for
      3:     bound constrained minimization
      4:  */

      6: #ifndef __TAO_LINESEARCH2_H
      8: #include "src/tao_impl.h"
      9: #include "tao_solver.h"

     11: typedef struct {

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

     25:   int setupcalled;
     26:   TaoVec*    W2;
     27: } TAO_LINESEARCH2;

     29: #endif