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