xref: /petsc/src/tao/bound/impls/blmvm/blmvm.h (revision fe998a80077c9ee0917a39496df43fc256e1b478)
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 } TAO_BLMVM;
23 
24 #endif  /* ifndef __TAO_BLMVM_H */
25