xref: /petsc/src/tao/unconstrained/impls/neldermead/neldermead.h (revision 2e294c490c90bde5380ff33db5f4fd681fbd5b9d)
1 #ifndef __TAO_NELDERMEAD_H
2 #define __TAO_NELDERMEAD_H
3 #include <petsc/private/taoimpl.h>
4 
5 typedef struct {
6   PetscReal mu_ic;
7   PetscReal mu_oc;
8   PetscReal mu_r;
9   PetscReal mu_e;
10 
11   PetscReal lambda; /*  starting point delta for finding starting simplex */
12 
13   PetscInt  N;
14   PetscReal oneOverN;
15   Vec       Xbar, Xmuc, Xmur, Xmue;
16   Vec       G;
17   Vec      *simplex;
18 
19   PetscReal *f_values;
20   PetscInt  *indices;
21 
22   PetscInt nshrink;
23   PetscInt nexpand;
24   PetscInt nreflect;
25   PetscInt nincontract;
26   PetscInt noutcontract;
27 
28 } TAO_NelderMead;
29 
30 #endif /* ifndef __TAO_NELDERMEAD_H */
31