27#include "neml2/solvers/Newton.h"
28#include "neml2/tensors/Scalar.h"
Selection of an enum value from a list of candidates.
Definition EnumSelection.h:41
NewtonWithLineSearch(const OptionSet &options)
Definition NewtonWithLineSearch.cxx:69
Real _linesearch_c
Stopping criteria for linesearch.
Definition NewtonWithLineSearch.h:65
EnumSelection _type
Seclect the type of line search.
Definition NewtonWithLineSearch.h:68
Real _linesearch_sigma
Decrease factor for linesearch.
Definition NewtonWithLineSearch.h:62
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
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
Newton(const OptionSet &options)
Definition Newton.cxx:46
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:52
Scalar.
Definition Scalar.h:38
Definition DiagnosticsInterface.cxx:30
double Real
Definition types.h:68
Definition NonlinearSystem.h:89
Definition NonlinearSystem.h:67
Definition NonlinearSystem.h:111