#include "petscsnes.h" PetscErrorCode SNESLineSearchSetType(SNESLineSearch linesearch, SNESLineSearchType type)Logically Collective on SNESLineSearch
linesearch | - linesearch context | |
type | - The type of line search to be used |
SNESLINESEARCHBASIC | - Simple damping line search, defaults to using the full Newton step | |
SNESLINESEARCHBT | - Backtracking line search over the L2 norm of the function | |
SNESLINESEARCHL2 | - Secant line search over the L2 norm of the function | |
SNESLINESEARCHCP | - Critical point secant line search assuming F(x) = grad G(x) for some unknown G(x) | |
SNESLINESEARCHNLEQERR | - Affine-covariant error-oriented linesearch | |
SNESLINESEARCHSHELL | - User provided SNESLineSearch implementation |
-snes_linesearch_type <type> | - basic, bt, l2, cp, nleqerr, shell |