Home
last modified time | relevance | path

Searched refs:stepType (Results 1 – 8 of 8) sorted by relevance

/petsc/src/tao/bound/impls/bnk/
H A Dbnls.c95 PetscInt stepType; in TaoSolve_BNLS() local
124 PetscCall((*bnk->computestep)(tao, shift, &ksp_reason, &stepType)); in TaoSolve_BNLS()
125 PetscCall(TaoBNKSafeguardStep(tao, ksp_reason, &stepType)); in TaoSolve_BNLS()
134 PetscCall(TaoBNKPerformLineSearch(tao, &stepType, &steplen, &ls_reason)); in TaoSolve_BNLS()
154 PetscCall(TaoBNKUpdateTrustRadius(tao, 0.0, 0.0, BNK_UPDATE_STEP, stepType, &stepAccepted)); in TaoSolve_BNLS()
156 PetscCall(TaoBNKAddStepCounts(tao, stepType)); in TaoSolve_BNLS()
H A Dbntl.c114 PetscInt stepType, nDiff; in TaoSolve_BNTL() local
143 PetscCall((*bnk->computestep)(tao, shift, &ksp_reason, &stepType)); in TaoSolve_BNTL()
173 …PetscCall(TaoBNKUpdateTrustRadius(tao, prered, actred, bnk->update_type, stepType, &stepAccepted)); in TaoSolve_BNTL()
190 PetscCall(TaoBNKSafeguardStep(tao, ksp_reason, &stepType)); in TaoSolve_BNTL()
191 PetscCall(TaoBNKPerformLineSearch(tao, &stepType, &steplen, &ls_reason)); in TaoSolve_BNTL()
212 … PetscCall(TaoBNKUpdateTrustRadius(tao, prered, actred, BNK_UPDATE_STEP, stepType, &stepAccepted)); in TaoSolve_BNTL()
214 PetscCall(TaoBNKAddStepCounts(tao, stepType)); in TaoSolve_BNTL()
H A Dbnk.c557 PetscErrorCode TaoBNKSafeguardStep(Tao tao, KSPConvergedReason ksp_reason, PetscInt *stepType) in TaoBNKSafeguardStep() argument
564 switch (*stepType) { in TaoBNKSafeguardStep()
589 *stepType = BNK_GRADIENT; in TaoBNKSafeguardStep()
609 *stepType = BNK_SCALED_GRADIENT; in TaoBNKSafeguardStep()
614 *stepType = BNK_SCALED_GRADIENT; in TaoBNKSafeguardStep()
616 *stepType = BNK_BFGS; in TaoBNKSafeguardStep()
654 *stepType = BNK_NEWTON; in TaoBNKSafeguardStep()
669 *stepType = BNK_SCALED_GRADIENT; in TaoBNKSafeguardStep()
671 *stepType = BNK_BFGS; in TaoBNKSafeguardStep()
690 PetscErrorCode TaoBNKPerformLineSearch(Tao tao, PetscInt *stepType, PetscReal *steplen, TaoLineSear… in TaoBNKPerformLineSearch() argument
[all …]
H A Dbntr.c96 PetscInt stepType, nDiff; in TaoSolve_BNTR() local
136 PetscCall((*bnk->computestep)(tao, shift, &ksp_reason, &stepType)); in TaoSolve_BNTR()
160 …PetscCall(TaoBNKUpdateTrustRadius(tao, prered, actred, bnk->update_type, stepType, &stepAccepted)); in TaoSolve_BNTR()
/petsc/src/tao/unconstrained/impls/lmvm/
H A Dlmvm.c12 PetscInt stepType = LMVM_STEP_GRAD, nupdates; in TaoSolve_LMVM() local
48 stepType = LMVM_STEP_BFGS; in TaoSolve_LMVM()
53 if (nupdates > 0) stepType = LMVM_STEP_BFGS; in TaoSolve_LMVM()
73 stepType = LMVM_STEP_GRAD; in TaoSolve_LMVM()
85 …if (ls_status != TAOLINESEARCH_SUCCESS && ls_status != TAOLINESEARCH_SUCCESS_USER && (stepType != … in TaoSolve_LMVM()
101 stepType = LMVM_STEP_GRAD; in TaoSolve_LMVM()
118 switch (stepType) { in TaoSolve_LMVM()
/petsc/src/tao/unconstrained/impls/owlqn/
H A Dowlqn.c58 PetscInt stepType; in TaoSolve_OWLQN() local
120 stepType = OWLQN_SCALED_GRADIENT; in TaoSolve_OWLQN()
125 stepType = OWLQN_SCALED_GRADIENT; in TaoSolve_OWLQN()
128 stepType = OWLQN_BFGS; in TaoSolve_OWLQN()
142 while (((int)ls_status < 0) && (stepType != OWLQN_GRADIENT)) { in TaoSolve_OWLQN()
151 switch (stepType) { in TaoSolve_OWLQN()
166 stepType = OWLQN_SCALED_GRADIENT; in TaoSolve_OWLQN()
182 stepType = OWLQN_GRADIENT; in TaoSolve_OWLQN()
/petsc/src/tao/unconstrained/impls/nls/
H A Dnls.c53 PetscInt stepType; in TaoSolve_NLS() local
366 stepType = NLS_GRADIENT; in TaoSolve_NLS()
388 stepType = NLS_GRADIENT; in TaoSolve_NLS()
394 stepType = NLS_GRADIENT; in TaoSolve_NLS()
397 stepType = NLS_BFGS; in TaoSolve_NLS()
431 stepType = NLS_NEWTON; in TaoSolve_NLS()
442 … != TAOLINESEARCH_SUCCESS && ls_reason != TAOLINESEARCH_SUCCESS_USER && stepType != NLS_GRADIENT) … in TaoSolve_NLS()
447 switch (stepType) { in TaoSolve_NLS()
468 stepType = NLS_GRADIENT; in TaoSolve_NLS()
484 stepType = NLS_GRADIENT; in TaoSolve_NLS()
[all …]
/petsc/src/tao/unconstrained/impls/ntl/
H A Dntl.c43 PetscInt stepType; in TaoSolve_NTL() local
428 stepType = NTL_GRADIENT; in TaoSolve_NTL()
450 stepType = NTL_GRADIENT; in TaoSolve_NTL()
456 stepType = NTL_GRADIENT; in TaoSolve_NTL()
459 stepType = NTL_BFGS; in TaoSolve_NTL()
466 stepType = NTL_NEWTON; in TaoSolve_NTL()
478 … != TAOLINESEARCH_SUCCESS && ls_reason != TAOLINESEARCH_SUCCESS_USER && stepType != NTL_GRADIENT) … in TaoSolve_NTL()
484 switch (stepType) { in TaoSolve_NTL()
493 stepType = NTL_GRADIENT; in TaoSolve_NTL()
510 stepType = NTL_GRADIENT; in TaoSolve_NTL()
[all …]