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