OpenLB 1.7
|
#include <optiCase.h>
Public Member Functions | |
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) | |
virtual void | computeDerivatives (const C &control, C &derivatives, unsigned optiStep=0)=0 |
void | postEvaluation () |
Protected Attributes | |
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 { [](){} } |
Definition at line 102 of file optiCase.h.
|
inlineexplicit |
Definition at line 113 of file optiCase.h.
|
inlineexplicit |
Definition at line 119 of file optiCase.h.
References olb::opti::OptiCaseDQ< S, C >::_functionHelp.
|
inline |
Definition at line 127 of file optiCase.h.
References olb::opti::OptiCaseDQ< S, C >::_stepWidth.
|
inlineoverridevirtual |
Implements olb::opti::OptiCase< S, C >.
Definition at line 133 of file optiCase.h.
References olb::opti::OptiCaseDQ< S, C >::_function, olb::opti::OptiCaseDQ< S, C >::_objective, olb::opti::OptiCaseDQ< S, C >::_objectiveComputed, and olb::opti::control.
|
protected |
Definition at line 106 of file optiCase.h.
|
protected |
Definition at line 105 of file optiCase.h.
|
protected |
Definition at line 110 of file optiCase.h.
|
protected |
Definition at line 109 of file optiCase.h.
|
protected |
Definition at line 107 of file optiCase.h.