|
DMP_BBO library
|
Interface for cost functions, which define a cost_function. More...
#include <CostFunction.hpp>

Public Member Functions | |
| virtual void | evaluate (const Eigen::VectorXd &sample, Eigen::VectorXd &cost) const =0 |
| The cost function which defines the cost_function. More... | |
| virtual unsigned int | getNumberOfCostComponents (void) const =0 |
| Get the number of individual cost components that constitute the final total cost. More... | |
| virtual std::string | toString (void) const =0 |
| Returns a string representation of the object. More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &output, const CostFunction &cost_function) |
| Write to output stream. More... | |
Interface for cost functions, which define a cost_function.
For further information see the section on CostFunction vs Task/TaskSolver
Definition at line 35 of file CostFunction.hpp.
|
pure virtual |
The cost function which defines the cost_function.
| [in] | sample | A sample in the search space |
| [out] | cost | The cost for the sample. The first entry cost[0] is the total cost. cost[1..n_cost_components] can contain individual cost components. |
|
pure virtual |
Get the number of individual cost components that constitute the final total cost.
Implemented in DemoCostFunctionDistanceToPoint.
|
pure virtual |
Returns a string representation of the object.
Implemented in DemoCostFunctionDistanceToPoint.
|
friend |
Write to output stream.
| [in] | output | Output stream to which to write to |
| [in] | cost_function | CostFunction object to write |
Definition at line 64 of file CostFunction.hpp.
1.8.11