Abstract class to define by user specified optimization function. More...
Public Member Functions | |
MyOpt () | |
Default Constructor. | |
MyOpt (Mesh &mesh) | |
Constructor using mesh instance. More... | |
virtual | ~MyOpt () |
Destructor. | |
virtual real_t | Objective (Vect< real_t > &x)=0 |
Virtual member function to define objective. More... | |
virtual void | Gradient (Vect< real_t > &x, Vect< real_t > &g) |
Virtual member function to define gradient vector of objective. More... | |
void | setEquation (Equa *eq) |
Define equation instance. More... | |
Equa * | getEquation () const |
Get pointer to equation instance. More... | |
Abstract class to define by user specified optimization function.
The user has to implement a class that inherits from the present one where the virtual functions are implemented.
Equa* getEquation | ( | ) | const |
Get pointer to equation instance.
Virtual member function to define gradient vector of objective.
[in] | x | Vector of optimization variables |
[out] | g | Gradient vector |
Virtual member function to define objective.
[in] | x | Vector of optimization variables |
void setEquation | ( | Equa * | eq | ) |
Define equation instance.
[in] | eq | Pointer to equation instance |