Searched refs:stepmax (Results 1 – 5 of 5) sorted by relevance
| /petsc/src/tao/linesearch/impls/morethuente/ |
| H A D | morethuente.c | 60 ostepmax = ls->stepmax; in TaoLineSearchApply_MT() 76 ls->stepmax = PetscMin(bstepmax, ls->stepmax); in TaoLineSearchApply_MT() 96 width = ls->stepmax - ls->stepmin; in TaoLineSearchApply_MT() 117 ls->stepmax = PetscMax(stx, sty); in TaoLineSearchApply_MT() 120 ls->stepmax = ls->step + xtrapf * (ls->step - stx); in TaoLineSearchApply_MT() 125 ls->step = PetscMin(ls->step, ls->stepmax); in TaoLineSearchApply_MT() 129 …p <= ls->stepmin || ls->step >= ls->stepmax)) || (mt->bracket && (ls->stepmax - ls->stepmin <= ls-… in TaoLineSearchApply_MT() 196 if ((mt->bracket && (ls->step <= ls->stepmin || ls->step >= ls->stepmax)) || !mt->infoc) { in TaoLineSearchApply_MT() 201 if (ls->step == ls->stepmax && *f <= ftest1 && dg <= dgtest) { in TaoLineSearchApply_MT() 202 PetscCall(PetscInfo(ls, "Step is at the upper bound, stepmax (%g)\n", (double)ls->stepmax)); in TaoLineSearchApply_MT() [all …]
|
| /petsc/src/tao/linesearch/impls/gpcglinesearch/ |
| H A D | gpcglinesearch.c | 94 ls->step = PetscMin(ls->step, ls->stepmax); in TaoLineSearchApply_GPCG() 145 if (ls->step <= ls->stepmin || ls->step >= ls->stepmax) { in TaoLineSearchApply_GPCG() 151 if (ls->step == ls->stepmax) { in TaoLineSearchApply_GPCG() 152 PetscCall(PetscInfo(ls, "Step is at the upper bound, stepmax (%g)\n", (double)ls->stepmax)); in TaoLineSearchApply_GPCG() 166 if (neP->bracket && (ls->stepmax - ls->stepmin <= ls->rtol * ls->stepmax)) { in TaoLineSearchApply_GPCG() 197 ls->stepmax = 1.0e+20; in TaoLineSearchCreate_GPCG()
|
| /petsc/src/tao/linesearch/interface/ |
| H A D | taolinesearch.c | 135 ls->stepmax = 1.0e+20; in TaoLineSearchCreate() 330 if (ls->stepmax < ls->stepmin) { in TaoLineSearchApply() 331 … Line Search Parameter: stepmin (%g) > stepmax (%g)\n", (double)ls->stepmin, (double)ls->stepmax)); in TaoLineSearchApply() 399 ls->stepmax = 1.0e+20; in TaoLineSearchSetType() 502 …(PetscOptionsReal("-tao_ls_stepmax", "upper bound for step", "", ls->stepmax, &ls->stepmax, NULL)); in TaoLineSearchSetFromOptions()
|
| /petsc/include/petsc/private/ |
| H A D | taolinesearchimpl.h | 63 PetscReal stepmax; /* upper bound for step */ member
|
| /petsc/src/vec/vec/utils/ |
| H A D | projection.c | 816 PetscErrorCode VecStepMaxBounded(Vec X, Vec DX, Vec XL, Vec XU, PetscReal *stepmax) in VecStepMaxBounded() argument 844 …PetscCallMPI(MPIU_Allreduce(&localmax, stepmax, 1, MPIU_REAL, MPIU_MAX, PetscObjectComm((PetscObje… in VecStepMaxBounded() 948 PetscReal stepmax = PETSC_INFINITY; in VecStepMax() local 960 if (PetscRealPart(dx[i]) < 0) stepmax = PetscMin(stepmax, PetscRealPart(-xx[i] / dx[i])); in VecStepMax() 964 …PetscCallMPI(MPIU_Allreduce(&stepmax, step, 1, MPIU_REAL, MPIU_MIN, PetscObjectComm((PetscObject)X… in VecStepMax()
|