xref: /petsc/src/tao/bound/impls/blmvm/blmvm.h (revision 5b0d99aef51158554e42172a250c96a448fd1e2b)
1 #ifndef __TAO_BLMVM_H
2 #define __TAO_BLMVM_H
3 #include "petsc-private/taosolverimpl.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 } TAO_BLMVM;
23 
24 #endif  /* ifndef __TAO_BLMVM_H */
25