52 minRatio_(coeffsDict().getOrDefault<scalar>(
"minRatio", 0.1)),
53 firstMeritValue_(
Zero),
66 Info<<
"Previous step, a0 = " << step <<
endl;
67 scalar denom = 1./(step*step);
97 firstMeritValue_ = value;
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Fits a quadratic polynomial of the merit function as a function of step and finds the "optimal" value...
virtual void setDeriv(const scalar deriv)
Set objective derivative.
virtual void updateStep(scalar &step)
Update step in given direction.
virtual void setOldMeritValue(const scalar value)
Set old merit value.
virtual void setNewMeritValue(const scalar value)
Set new merit value.
Abstract base class for step update methods used in line search.
const dictionary & coeffsDict()
Optional coeffs dict.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
messageStream Info
Information stream (stdout output on master, null elsewhere).
Ostream & endl(Ostream &os)
Add newline and flush stream.
static constexpr const zero Zero
Global zero (0).