Actual source code: neldermead.h

      1: #pragma once
      2: #include <petsc/private/taoimpl.h>

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

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

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

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

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

     27: } TAO_NelderMead;