|
DMP_BBO library
|
CostFunction in which the distance to a pre-defined point must be minimized. More...


Public Member Functions | |
| DemoCostFunctionDistanceToPoint (const VectorXd &point, double regularization_weight) | |
| Constructor. More... | |
| void | evaluate (const VectorXd &sample, VectorXd &cost) const |
| The cost function which defines the cost_function. More... | |
| unsigned int | getNumberOfCostComponents () const |
| Get the number of individual cost components that constitute the final total cost. More... | |
| string | toString (void) const |
| Returns a string representation of the object. More... | |
Public Member Functions inherited from CostFunction | |
| virtual void | evaluate (const Eigen::VectorXd &sample, Eigen::VectorXd &cost) const =0 |
| The cost function which defines the cost_function. More... | |
CostFunction in which the distance to a pre-defined point must be minimized.
Definition at line 48 of file demoOptimization.cpp.
|
inline |
Constructor.
| [in] | point | Point to which distance must be minimized. |
| [in] | regularization_weight | Regularization penalty on the parameter vector. |
Definition at line 55 of file demoOptimization.cpp.
|
inline |
The cost function which defines the cost_function.
| [in] | sample | The sample |
| [out] | cost | The scalar cost for each sample. |
Definition at line 66 of file demoOptimization.cpp.
|
inlinevirtual |
Get the number of individual cost components that constitute the final total cost.
Implements CostFunction.
Definition at line 85 of file demoOptimization.cpp.
|
inlinevirtual |
Returns a string representation of the object.
Implements CostFunction.
Definition at line 96 of file demoOptimization.cpp.
1.8.11