67 void operator=(
const BFGS&) =
delete;
131 virtual ~BFGS() =
default;
144 virtual void write();
The quasi-Newton BFGS formula.
void computeCorrection()
Compute design variables correction.
scalar curvatureThreshold_
Curvature threshold.
SquareMatrix< scalar > HessianInvOld_
The previous Hessian inverse.
void readFromDict()
Read old info from dict.
scalarField correctionOld_
The previous correction.
TypeName("BFGS")
Runtime type information.
label nSteepestDescent_
Number of first steepest descent steps.
labelList activeDesignVars_
Map to active design variables.
scalar etaHessian_
Step for the Newton method.
label counter_
Optimisation cycle counter.
void allocateMatrices()
Allocate matrices in the first optimisation cycle.
bool scaleFirstHessian_
Scale the iniitial unitary Hessian approximation.
scalarField derivativesOld_
The previous derivatives.
virtual void write()
Write old info to dict.
SquareMatrix< scalar > HessianInv_
virtual void updateOldCorrection(const scalarField &oldCorrection)
void update()
Update design variables.
virtual ~BFGS()=default
Destructor.
void updateHessian()
Update approximation of the inverse Hessian.
A templated (N x N) square matrix of objects of <Type>, containing N*N elements, derived from Matrix.
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.
Abstract base class for optimisation methods.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.