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