Go to the documentation of this file.
119 void operator=(
const DBFGS&) =
delete;
134 virtual ~DBFGS() =
default;
147 virtual void write();
scalar curvatureThreshold_
Curvature threshold.
label nSteepestDescent_
Number of first steepest descent steps.
bool scaleFirstHessian_
Scale the initial unitary Hessian approximation.
void allocateMatrices()
Allocate matrices in the first optimisation cycle.
virtual ~DBFGS()=default
Destructor.
scalar gamma_
Threshold for damping.
void update()
Update design variables.
scalarField derivativesOld_
The previous derivatives.
Abstract base class for optimisation methods.
virtual void updateOldCorrection(const scalarField &oldCorrection)
The quasi-Newton BFGS formula with the dampening proposed by Powell.
scalarField correctionOld_
The previous correction.
SquareMatrix< scalar > HessianOld_
The previous Hessian.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Mesh data needed to do the Finite Volume discretisation.
virtual void write()
Write old info to dict.
void updateHessian()
Update approximation of the inverse Hessian.
SquareMatrix< scalar > Hessian_
The Hessian. Should have the size of the active design variables.
labelList activeDesignVars_
Map to active design variables.
scalar etaHessian_
Step for the Newton method.
label counter_
Optimisation cycle counter.
void computeCorrection()
Compute design variables correction.
TypeName("DBFGS")
Runtime type information.
void readFromDict()
Read old info from dict.