OpenMD 3.2
Molecular Dynamics in the Open
Loading...
Searching...
No Matches
OpenMD::BoxObjectiveFunction Class Reference
Inheritance diagram for OpenMD::BoxObjectiveFunction:

Public Member Functions

 BoxObjectiveFunction (SimInfo *info, ForceManager *forceMan)
RealType value (const DynamicVector< RealType > &x)
 method to overload to compute the objective function value in x
void gradient (DynamicVector< RealType > &grad, const DynamicVector< RealType > &x)
 method to overload to compute grad_f, the first derivative of
RealType valueAndGradient (DynamicVector< RealType > &grad, const DynamicVector< RealType > &x)
 method to overload to compute grad_f, the first derivative
DynamicVector< RealType > setInitialCoords ()
Public Member Functions inherited from QuantLib::ObjectiveFunction
virtual RealType finiteDifferenceEpsilon () const
 Default epsilon for finite difference method :

Detailed Description

Definition at line 59 of file BoxObjectiveFunction.hpp.

Constructor & Destructor Documentation

◆ BoxObjectiveFunction()

OpenMD::BoxObjectiveFunction::BoxObjectiveFunction ( SimInfo * info,
ForceManager * forceMan )

Definition at line 54 of file BoxObjectiveFunction.cpp.

◆ ~BoxObjectiveFunction()

OpenMD::BoxObjectiveFunction::~BoxObjectiveFunction ( )

Definition at line 72 of file BoxObjectiveFunction.cpp.

Member Function Documentation

◆ gradient()

void OpenMD::BoxObjectiveFunction::gradient ( DynamicVector< RealType > & grad,
const DynamicVector< RealType > & x )
virtual

method to overload to compute grad_f, the first derivative of

Reimplemented from QuantLib::ObjectiveFunction.

Definition at line 91 of file BoxObjectiveFunction.cpp.

◆ setInitialCoords()

DynamicVector< RealType > OpenMD::BoxObjectiveFunction::setInitialCoords ( )

Definition at line 202 of file BoxObjectiveFunction.cpp.

◆ value()

RealType OpenMD::BoxObjectiveFunction::value ( const DynamicVector< RealType > & x)
virtual

method to overload to compute the objective function value in x

Implements QuantLib::ObjectiveFunction.

Definition at line 76 of file BoxObjectiveFunction.cpp.

◆ valueAndGradient()

RealType OpenMD::BoxObjectiveFunction::valueAndGradient ( DynamicVector< RealType > & grad,
const DynamicVector< RealType > & x )
virtual

method to overload to compute grad_f, the first derivative

Reimplemented from QuantLib::ObjectiveFunction.

Definition at line 107 of file BoxObjectiveFunction.cpp.


The documentation for this class was generated from the following files: