Home
last modified time | relevance | path

Searched refs:actred (Results 1 – 11 of 11) sorted by relevance

/petsc/src/tao/linesearch/impls/gpcglinesearch/
H A Dgpcglinesearch.c32 PetscReal d1, finit, actred, prered, rho, gdx; in TaoLineSearchApply_GPCG() local
77 PetscCall(VecStepBoundInfo(x, s, ls->lower, ls->upper, &rho, &actred, &d1)); in TaoLineSearchApply_GPCG()
81 actred = 0; in TaoLineSearchApply_GPCG()
122 actred = *f - finit; in TaoLineSearchApply_GPCG()
127 rho = actred / prered; in TaoLineSearchApply_GPCG()
134 if (actred > 0) { in TaoLineSearchApply_GPCG()
/petsc/src/tao/bound/impls/tron/
H A Dtron.c73 PetscReal prered, actred, delta, f, f_new, rhok, gdx, xdiff, stepsize; in TaoSolve_TRON() local
181 actred = f_new - f; in TaoSolve_TRON()
182 if ((PetscAbsScalar(actred) <= 1e-6) && (PetscAbsScalar(prered) <= 1e-6)) { in TaoSolve_TRON()
184 } else if (actred < 0) { in TaoSolve_TRON()
185 rhok = PetscAbs(-actred / prered); in TaoSolve_TRON()
223 tron->actred = actred; in TaoSolve_TRON()
237 PetscReal actred = -1.0, actred_max = 0.0; in TronGradientProjections() local
248 if (-actred <= (tron->pg_ftol) * actred_max) break; in TronGradientProjections()
264 actred = f_new - tron->f; in TronGradientProjections()
H A Dtron.h9 PetscReal actred; member
/petsc/src/tao/unconstrained/impls/ntr/
H A Dntr.c50 PetscReal fmin, ftrial, prered, actred, kappa, sigma, beta; in TaoSolve_NTR() local
138 actred = f - ftrial; in TaoSolve_NTR()
139 if ((PetscAbsScalar(actred) <= tr->epsilon) && (PetscAbsScalar(prered) <= tr->epsilon)) { in TaoSolve_NTR()
142 kappa = actred / prered; in TaoSolve_NTR()
145 … * gnorm * tao->trust / (tr->theta_i * gnorm * tao->trust + (1.0 - tr->theta_i) * prered - actred); in TaoSolve_NTR()
146 … * gnorm * tao->trust / (tr->theta_i * gnorm * tao->trust - (1.0 + tr->theta_i) * prered + actred); in TaoSolve_NTR()
305 actred = f - ftrial; in TaoSolve_NTR()
307 … if ((PetscAbsScalar(actred) <= tr->epsilon) && (PetscAbsScalar(prered) <= tr->epsilon)) { in TaoSolve_NTR()
310 kappa = actred / prered; in TaoSolve_NTR()
352 actred = f - ftrial; in TaoSolve_NTR()
[all …]
/petsc/src/tao/quadratic/impls/gpcg/
H A Dgpcg.c111 PetscReal actred, f, f_new, gnorm, gdx, stepsize, xtb; in TaoSolve_GPCG() local
192 actred = f_new - f; in TaoSolve_GPCG()
201 actred = 0; in TaoSolve_GPCG()
209 gpcg->actred = actred; in TaoSolve_GPCG()
222 PetscReal actred = -1.0, actred_max = 0.0, gAg, gtg = gpcg->gnorm, alpha; in GPCGGradProjections() local
233 if (-actred <= (gpcg->pg_ftol) * actred_max) break; in GPCGGradProjections()
255 actred = f_new - gpcg->f; in GPCGGradProjections()
H A Dgpcg.h8 PetscReal actred; member
/petsc/src/tao/bound/impls/bnk/
H A Dbntl.c112 PetscReal oldTrust, prered, actred, steplen, resnorm; in TaoSolve_BNTL() local
172 actred = bnk->fold - bnk->f; in TaoSolve_BNTL()
173 …PetscCall(TaoBNKUpdateTrustRadius(tao, prered, actred, bnk->update_type, stepType, &stepAccepted)); in TaoSolve_BNTL()
212 … PetscCall(TaoBNKUpdateTrustRadius(tao, prered, actred, BNK_UPDATE_STEP, stepType, &stepAccepted)); in TaoSolve_BNTL()
H A Dbntr.c94 PetscReal oldTrust, prered, actred, steplen = 0.0, resnorm; in TaoSolve_BNTR() local
158 actred = bnk->fold - bnk->f; in TaoSolve_BNTR()
160 …PetscCall(TaoBNKUpdateTrustRadius(tao, prered, actred, bnk->update_type, stepType, &stepAccepted)); in TaoSolve_BNTR()
H A Dbnk.c43 PetscReal f_min, ftrial, prered, actred, kappa, sigma, resnorm; in TaoBNKInitialize() local
180 actred = bnk->f - ftrial; in TaoBNKInitialize()
181 … if ((PetscAbsScalar(actred) <= bnk->epsilon) && (PetscAbsScalar(prered) <= bnk->epsilon)) { in TaoBNKInitialize()
184 kappa = actred / prered; in TaoBNKInitialize()
187 …m * tao->trust / (bnk->theta_i * bnk->gnorm * tao->trust + (1.0 - bnk->theta_i) * prered - actred); in TaoBNKInitialize()
188 …m * tao->trust / (bnk->theta_i * bnk->gnorm * tao->trust - (1.0 + bnk->theta_i) * prered + actred); in TaoBNKInitialize()
792 PetscErrorCode TaoBNKUpdateTrustRadius(Tao tao, PetscReal prered, PetscReal actred, PetscInt update… in TaoBNKUpdateTrustRadius() argument
841 if (PetscIsInfOrNanReal(actred)) { in TaoBNKUpdateTrustRadius()
844 …if ((PetscAbsScalar(actred) <= PetscMax(1.0, PetscAbsScalar(bnk->f)) * bnk->epsilon) && (PetscAbsS… in TaoBNKUpdateTrustRadius()
847 kappa = actred / prered; in TaoBNKUpdateTrustRadius()
[all …]
/petsc/src/tao/unconstrained/impls/ntl/
H A Dntl.c37 PetscReal fmin, ftrial, prered, actred, kappa, sigma; in TaoSolve_NTL() local
132 actred = f - ftrial; in TaoSolve_NTL()
133 if ((PetscAbsScalar(actred) <= tl->epsilon) && (PetscAbsScalar(prered) <= tl->epsilon)) { in TaoSolve_NTL()
136 kappa = actred / prered; in TaoSolve_NTL()
139 … * gnorm * tao->trust / (tl->theta_i * gnorm * tao->trust + (1.0 - tl->theta_i) * prered - actred); in TaoSolve_NTL()
140 … * gnorm * tao->trust / (tl->theta_i * gnorm * tao->trust - (1.0 + tl->theta_i) * prered + actred); in TaoSolve_NTL()
310 actred = f - ftrial; in TaoSolve_NTL()
312 if ((PetscAbsScalar(actred) <= tl->epsilon) && (PetscAbsScalar(prered) <= tl->epsilon)) { in TaoSolve_NTL()
315 kappa = actred / prered; in TaoSolve_NTL()
360 actred = f - ftrial; in TaoSolve_NTL()
[all …]
/petsc/src/tao/unconstrained/impls/nls/
H A Dnls.c47 PetscReal fmin, ftrial, f_full, prered, actred, kappa, sigma; in TaoSolve_NLS() local
158 actred = f - ftrial; in TaoSolve_NLS()
159 … if ((PetscAbsScalar(actred) <= nlsP->epsilon) && (PetscAbsScalar(prered) <= nlsP->epsilon)) { in TaoSolve_NLS()
162 kappa = actred / prered; in TaoSolve_NLS()
165 …norm * tao->trust / (nlsP->theta_i * gnorm * tao->trust + (1.0 - nlsP->theta_i) * prered - actred); in TaoSolve_NLS()
166 …norm * tao->trust / (nlsP->theta_i * gnorm * tao->trust - (1.0 + nlsP->theta_i) * prered + actred); in TaoSolve_NLS()
574 actred = fold - f_full; in TaoSolve_NLS()
576 … if ((PetscAbsScalar(actred) <= nlsP->epsilon) && (PetscAbsScalar(prered) <= nlsP->epsilon)) { in TaoSolve_NLS()
579 kappa = actred / prered; in TaoSolve_NLS()
623 actred = fold - f_full; in TaoSolve_NLS()
[all …]