Actual source code: neldermead.h

  1: #ifndef __TAO_NELDERMEAD_H
  3: #include <petsc/private/taoimpl.h>

  5: typedef struct {
  6:   PetscReal mu_ic;
  7:   PetscReal mu_oc;
  8:   PetscReal mu_r;
  9:   PetscReal mu_e;

 11:   PetscReal lambda; /*  starting point delta for finding starting simplex */

 13:   PetscInt  N;
 14:   PetscReal oneOverN;
 15:   Vec       Xbar, Xmuc, Xmur, Xmue;
 16:   Vec       G;
 17:   Vec      *simplex;

 19:   PetscReal *f_values;
 20:   PetscInt  *indices;

 22:   PetscInt nshrink;
 23:   PetscInt nexpand;
 24:   PetscInt nreflect;
 25:   PetscInt nincontract;
 26:   PetscInt noutcontract;

 28: } TAO_NelderMead;

 30: #endif /* ifndef __TAO_NELDERMEAD_H */