Actual source code: umtr.h
1: /* $Id: umtr.h,v 1.5 2001/08/07 21:31:10 bsmith Exp $ */
3: /*
4: Context for a Newton trust region method (unconstrained minimization)
5: */
7: #ifndef __SNES_UMTR_H
9: #include src/snes/snesimpl.h
11: typedef struct {
12: PetscReal delta0; /* used to initialize trust region parameter */
13: PetscReal delta; /* trust region parameter */
14: PetscReal eta1; /* step is unsuccessful if actred < eta1 * prered,
15: where prered is the predicted reduction and
16: actred is the actual reduction */
17: PetscReal eta2; /* used to compute trust region parameter */
18: PetscReal eta3; /* used to compute trust region parameter */
19: PetscReal eta4; /* used to compute trust region parameter */
20: PetscReal factor1; /* used to initialize trust region parameter */
21: PetscReal actred; /* actual reduction */
22: PetscReal prered; /* predicted reduction */
23: int success; /* indicator for successful step */
24: int sflag; /* flag for convergence testing */
25: } SNES_UM_TR;
27: #endif