Home
last modified time | relevance | path

Searched refs:gamma1 (Results 1 – 12 of 12) sorted by relevance

/petsc/src/tao/linesearch/impls/morethuente/
H A Dmorethuente.c366 PetscReal gamma1, p, q, r, s, sgnd, stpc, stpf, stpq, theta; in Tao_mcstep() local
390 gamma1 = s * PetscSqrtScalar(PetscPowScalar(theta / s, 2.0) - (*dx / s) * (*dp / s)); in Tao_mcstep()
391 if (*stp < *stx) gamma1 = -gamma1; in Tao_mcstep()
393 p = (gamma1 - *dx) + theta; in Tao_mcstep()
394 q = ((gamma1 - *dx) + gamma1) + *dp; in Tao_mcstep()
413 gamma1 = s * PetscSqrtScalar(PetscPowScalar(theta / s, 2.0) - (*dx / s) * (*dp / s)); in Tao_mcstep()
414 if (*stp > *stx) gamma1 = -gamma1; in Tao_mcstep()
415 p = (gamma1 - *dp) + theta; in Tao_mcstep()
416 q = ((gamma1 - *dp) + gamma1) + *dx; in Tao_mcstep()
442gamma1 = s * PetscSqrtScalar(PetscMax(0.0, PetscPowScalar(theta / s, 2.0) - (*dx / s) * (*dp / s))… in Tao_mcstep()
[all …]
/petsc/src/tao/unconstrained/impls/ntr/
H A Dntr.c343 tao->trust = tr->gamma1 * PetscMin(tao->trust, norm_d); in TaoSolve_NTR()
349 tao->trust = tr->gamma1 * PetscMin(tao->trust, norm_d); in TaoSolve_NTR()
392 } else if (tau_max < tr->gamma1) { in TaoSolve_NTR()
393 tao->trust = tr->gamma1 * PetscMin(tao->trust, norm_d); in TaoSolve_NTR()
394 } else if ((tau_min < tr->gamma1) && (tau_max >= 1.0)) { in TaoSolve_NTR()
395 tao->trust = tr->gamma1 * PetscMin(tao->trust, norm_d); in TaoSolve_NTR()
396 … } else if ((tau_1 >= tr->gamma1) && (tau_1 < 1.0) && ((tau_2 < tr->gamma1) || (tau_2 >= 1.0))) { in TaoSolve_NTR()
398 … } else if ((tau_2 >= tr->gamma1) && (tau_2 < 1.0) && ((tau_1 < tr->gamma1) || (tau_2 >= 1.0))) { in TaoSolve_NTR()
477 PetscCall(PetscOptionsReal("-tao_ntr_gamma1", "", "", tr->gamma1, &tr->gamma1, NULL)); in TaoSetFromOptions_NTR()
570 tr->gamma1 = 0.25; in TaoCreate_NTR()
H A Dntrimpl.h66 PetscReal gamma1; /* factor used for radius update */ member
/petsc/src/tao/unconstrained/impls/ntl/
H A Dntl.c348 tao->trust = tl->gamma1 * PetscMin(tao->trust, norm_d); in TaoSolve_NTL()
355 tao->trust = tl->gamma1 * PetscMin(tao->trust, norm_d); in TaoSolve_NTL()
398 } else if (tau_max < tl->gamma1) { in TaoSolve_NTL()
399 tao->trust = tl->gamma1 * PetscMin(tao->trust, norm_d); in TaoSolve_NTL()
400 } else if ((tau_min < tl->gamma1) && (tau_max >= 1.0)) { in TaoSolve_NTL()
401 tao->trust = tl->gamma1 * PetscMin(tao->trust, norm_d); in TaoSolve_NTL()
402 … } else if ((tau_1 >= tl->gamma1) && (tau_1 < 1.0) && ((tau_2 < tl->gamma1) || (tau_2 >= 1.0))) { in TaoSolve_NTL()
404 … } else if ((tau_2 >= tl->gamma1) && (tau_2 < 1.0) && ((tau_1 < tl->gamma1) || (tau_2 >= 1.0))) { in TaoSolve_NTL()
669 PetscCall(PetscOptionsReal("-tao_ntl_gamma1", "", "", tl->gamma1, &tl->gamma1, NULL)); in TaoSetFromOptions_NTL()
788 tl->gamma1 = 0.25; in TaoCreate_NTL()
H A Dntlimpl.h91 PetscReal gamma1; /* factor used for interpolation */ member
/petsc/src/tao/unconstrained/impls/nls/
H A Dnls.c618 tao->trust = nlsP->gamma1 * PetscMin(tao->trust, norm_d); in TaoSolve_NLS()
621 tao->trust = nlsP->gamma1 * PetscMin(tao->trust, norm_d); in TaoSolve_NLS()
661 } else if (tau_max < nlsP->gamma1) { in TaoSolve_NLS()
662 tao->trust = nlsP->gamma1 * PetscMin(tao->trust, norm_d); in TaoSolve_NLS()
663 } else if ((tau_min < nlsP->gamma1) && (tau_max >= 1.0)) { in TaoSolve_NLS()
664 tao->trust = nlsP->gamma1 * PetscMin(tao->trust, norm_d); in TaoSolve_NLS()
665 …} else if ((tau_1 >= nlsP->gamma1) && (tau_1 < 1.0) && ((tau_2 < nlsP->gamma1) || (tau_2 >= 1.0)))… in TaoSolve_NLS()
667 …} else if ((tau_2 >= nlsP->gamma1) && (tau_2 < 1.0) && ((tau_1 < nlsP->gamma1) || (tau_2 >= 1.0)))… in TaoSolve_NLS()
677 tao->trust = nlsP->gamma1 * PetscMin(norm_d, tao->trust); in TaoSolve_NLS()
774 PetscCall(PetscOptionsReal("-tao_nls_gamma1", "", "", nlsP->gamma1, &nlsP->gamma1, NULL)); in TaoSetFromOptions_NLS()
[all …]
H A Dnlsimpl.h135 PetscReal gamma1; /* factor used for interpolation */ member
/petsc/src/tao/bound/impls/bnk/
H A Dbnk.c887 tao->trust = bnk->gamma1 * PetscMin(tao->trust, bnk->dnorm); in TaoBNKUpdateTrustRadius()
890 tao->trust = bnk->gamma1 * PetscMin(tao->trust, bnk->dnorm); in TaoBNKUpdateTrustRadius()
930 } else if (tau_max < bnk->gamma1) { in TaoBNKUpdateTrustRadius()
931 tao->trust = bnk->gamma1 * PetscMin(tao->trust, bnk->dnorm); in TaoBNKUpdateTrustRadius()
932 } else if ((tau_min < bnk->gamma1) && (tau_max >= 1.0)) { in TaoBNKUpdateTrustRadius()
933 tao->trust = bnk->gamma1 * PetscMin(tao->trust, bnk->dnorm); in TaoBNKUpdateTrustRadius()
934 … } else if ((tau_1 >= bnk->gamma1) && (tau_1 < 1.0) && ((tau_2 < bnk->gamma1) || (tau_2 >= 1.0))) { in TaoBNKUpdateTrustRadius()
936 … } else if ((tau_2 >= bnk->gamma1) && (tau_2 < 1.0) && ((tau_1 < bnk->gamma1) || (tau_2 >= 1.0))) { in TaoBNKUpdateTrustRadius()
946 tao->trust = bnk->gamma1 * PetscMin(bnk->dnorm, tao->trust); in TaoBNKUpdateTrustRadius()
1113 …ejected very bad step (-tao_bnk_update_type interpolation)", "", bnk->gamma1, &bnk->gamma1, NULL)); in TaoSetFromOptions_BNK()
[all …]
H A Dbnk.h162 PetscReal gamma1; /* factor used for interpolation */ member
/petsc/src/tao/leastsquares/impls/pounders/
H A Dpounders.h56 PetscReal gamma1; /* parameter for enlarging trust region (>2) */ member
H A Dpounders.c825 mfqP->delta = PetscMin(mfqP->delta * mfqP->gamma1, mfqP->deltamax); in TaoSolve_POUNDERS()
1189 mfqP->gamma1 = 2.0; in TaoCreate_POUNDERS()
/petsc/doc/manual/
H A Dtao.md1075 > | ``gamma1`` | real | 0.25 | :math:`\gamma_1` |
1420 > | ``gamma1`` | real | 0.25 | :math:`\gamma_1` |