OpenLB 1.7
|
Gradient computation with central difference quotients. More...
#include <optiCase.h>
Public Member Functions | |
template<typename F > | |
OptiCaseCDQ (F function, std::function< void(void)> postEvaluation=[](){}) | |
template<typename F > | |
OptiCaseCDQ (F function, S stepWidth, std::function< void(void)> postEvaluation=[](){}) | |
void | computeDerivatives (const C &control, C &derivatives, unsigned optiStep=0) override |
Public Member Functions inherited from olb::opti::OptiCaseDQ< S, C > | |
OptiCaseDQ (std::function< S(const C &, unsigned)> function, std::function< void(void)> postEvaluation) | |
OptiCaseDQ (std::function< S(const C &)> function, std::function< void(void)> postEvaluation) | |
template<typename F > | |
OptiCaseDQ (F function, S stepWidth, std::function< void(void)> postEvaluation) | |
S | evaluateObjective (const C &control, unsigned optiStep=0) override |
Public Member Functions inherited from olb::opti::OptiCase< S, C > | |
OptiCase ()=default | |
OptiCase (std::function< void(void)> postEvaluation) | |
void | postEvaluation () |
Additional Inherited Members | |
Protected Attributes inherited from olb::opti::OptiCaseDQ< S, C > | |
std::function< S(const C &) | _functionHelp ) { [](const C&){ return S{}; } } |
std::function< S(const C &, unsigned) | _function ) |
S | _stepWidth {1.e-8} |
bool | _objectiveComputed {false} |
S | _objective |
Protected Attributes inherited from olb::opti::OptiCase< S, C > | |
std::function< void(void)> | _postEvaluation { [](){} } |
Gradient computation with central difference quotients.
Definition at line 216 of file optiCase.h.
|
inlineexplicit |
Definition at line 222 of file optiCase.h.
|
inline |
Definition at line 228 of file optiCase.h.
|
inlineoverridevirtual |
Implements olb::opti::OptiCase< S, C >.
Definition at line 233 of file optiCase.h.
References olb::opti::OptiCaseDQ< S, C >::_stepWidth, olb::opti::control, and olb::opti::OptiCaseDQ< S, C >::evaluateObjective().