27#include "neml2/solvers/Newton.h"
28#include "neml2/tensors/Scalar.h"
Selection of an enum value from a list of choices.
Definition EnumSelection.h:41
The nonlinear solver solves a nonlinear system of equations.
Definition NewtonWithLineSearch.h:39
NewtonWithLineSearch(const OptionSet &options)
Definition NewtonWithLineSearch.cxx:69
EnumSelection _type
Seclect the type of line search.
Definition NewtonWithLineSearch.h:68
double _linesearch_c
Stopping criteria for linesearch.
Definition NewtonWithLineSearch.h:65
bool _check_crit
Definition NewtonWithLineSearch.h:70
static OptionSet expected_options()
Definition NewtonWithLineSearch.cxx:38
unsigned int _linesearch_miter
Linesearch maximum iterations.
Definition NewtonWithLineSearch.h:59
virtual Scalar linesearch(NonlinearSystem &system, const NonlinearSystem::Sol< true > &x, const NonlinearSystem::Sol< true > &dx, const NonlinearSystem::Res< true > &R0) const
Perform Armijo linesearch.
Definition NewtonWithLineSearch.cxx:91
double _linesearch_sigma
Decrease factor for linesearch.
Definition NewtonWithLineSearch.h:62
void update(NonlinearSystem &system, NonlinearSystem::Sol< true > &x, const NonlinearSystem::Res< true > &r, const NonlinearSystem::Jac< true > &J) override
Update trial solution.
Definition NewtonWithLineSearch.cxx:80
The nonlinear solver solves a nonlinear system of equations.
Definition Newton.h:38
Definition of a nonlinear system of equations.
Definition NonlinearSystem.h:59
A custom map-like data structure. The keys are strings, and the values can be nonhomogeneously typed.
Definition OptionSet.h:51
Scalar.
Definition Scalar.h:38
Definition DiagnosticsInterface.cxx:30
Definition NonlinearSystem.h:89
Definition NonlinearSystem.h:67
Definition NonlinearSystem.h:111