xref: /petsc/src/tao/bound/impls/blmvm/blmvm.h (revision 2b8d69ca7ea5fe9190df62c1dce3bbd66fce84dd)
1 #ifndef __TAO_BLMVM_H
2 #define __TAO_BLMVM_H
3 #include <petsc/private/taoimpl.h>
4 
5 /*
6  Context for limited memory variable metric method for bound constrained
7  optimization.
8 */
9 typedef struct {
10 
11   Mat M;
12 
13   Vec unprojected_gradient;
14   Vec Xold;
15   Vec Gold;
16 
17   PetscInt n_free;
18   PetscInt n_bind;
19 
20   PetscInt grad;
21   PetscInt reset;
22   Mat      H0;
23 } TAO_BLMVM;
24 
25 #endif  /* ifndef __TAO_BLMVM_H */
26