xref: /petsc/src/tao/unconstrained/impls/lmvm/lmvm.h (revision a3fa217bfefef3d54995bb82b2b5ea8a3c3e9019)
1 /*
2  Context for limited memory variable metric method for unconstrained
3  optimization.
4 */
5 
6 #ifndef __TAO_LMVM_H
7 #define __TAO_LMVM_H
8 #include <petsc-private/taoimpl.h>
9 
10 typedef struct {
11   Mat M;
12 
13   Vec X;
14   Vec G;
15   Vec D;
16   Vec W;
17 
18   Vec Xold;
19   Vec Gold;
20 
21   PetscInt bfgs;
22   PetscInt sgrad;
23   PetscInt grad;
24 } TAO_LMVM;
25 
26 #endif /* ifndef __TAO_LMVM_H */
27