Actual source code: tron.h

  1: /*$Id$*/

  3: #ifndef __TAO_TRON_H

  6: #include "tao_solver.h"

  8: typedef struct {

 10:   /* Parameters */
 11:   double pg_ftol;
 12:   double actred;
 13:   double f_new;
 14:  
 15:   double eta1,eta2,eta3,eta4;
 16:   double sigma1,sigma2,sigma3;

 18:   int maxgpits;

 20:   /* Problem variables, vectors and index sets */
 21:   double stepsize;
 22:   double pgstepsize;

 24:   /* Problem statistics */

 26:   int n;   /* Dimension of the Problem */
 27:   double delta;  /* Trust region size */
 28:   double gnorm;
 29:   double f;

 31:   int total_cgits;
 32:   int cg_iterates;
 33:   int total_gp_its;
 34:   int gp_iterates;
 35:   int cgits;

 37:   TaoVec* DXFree;
 38:   TaoVec* R;

 40:   TaoVec* X;
 41:   TaoVec* G;
 42:   TaoVec* PG;

 44:   TaoVec* DX;
 45:   TaoVec* X_New;
 46:   TaoVec* G_New;
 47:   TaoVec* XU;
 48:   TaoVec* XL;
 49:   TaoVec* Work;
 50:   
 51:   TaoMat* Hsub;
 52:   TaoMat* H;

 54:   TaoIndexSet *TT;
 55:   TaoIndexSet *Free_Local;  /* Indices of local variables equal to lower bound */
 56:   TaoIndexSet *Lower_Local;  /* Indices of local variables equal to lower bound */
 57:   TaoIndexSet *Upper_Local;  /* Indices of local variables equal to lower bound */

 59:   int n_free;       /* Number of free variables */
 60:   int n_upper;
 61:   int n_lower;
 62:   int n_bind;       /* Number of binding varibles */

 64: } TAO_TRON;

 66: #endif