|
DMP_BBO library
|
The task is to choose the parameters a and c such that the function
best matches a set of target values y_target for a set of input values x.
More...


Public Member Functions | |
| DemoTaskApproximateQuadraticFunction (double a, double c, const VectorXd &inputs, double regularization_weight) | |
| Constructor. More... | |
| void | evaluateRollout (const MatrixXd &cost_vars, const VectorXd &sample, const VectorXd &task_parameters, VectorXd &cost) const |
| Cost function. More... | |
| unsigned int | getNumberOfCostComponents (void) 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 Task | |
| virtual void | evaluateRollout (const Eigen::MatrixXd &cost_vars, const Eigen::VectorXd &sample, Eigen::VectorXd &costs) const |
| The cost function which defines the task. More... | |
| virtual void | evaluateRollout (const Eigen::MatrixXd &cost_vars, const Eigen::VectorXd &sample, const Eigen::VectorXd &task_parameters, Eigen::VectorXd &cost) const =0 |
| The cost function which defines the task. More... | |
| virtual bool | savePlotRolloutScript (std::string directory) const |
| Save a python script that is able to visualize the rollouts, given the cost-relevant variables stored in a file. More... | |
The task is to choose the parameters a and c such that the function
best matches a set of target values y_target for a set of input values x.
Definition at line 61 of file demoOptimizationTask.cpp.
|
inline |
Constructor.
| [in] | a | a in |
| [in] | c | c in |
| [in] | inputs | x in |
| [in] | regularization_weight | Regularization penalty on the parameter vector. |
Definition at line 70 of file demoOptimizationTask.cpp.

|
inline |
Cost function.
| [in] | cost_vars | y in |
| [in] | sample | The sample from which cost_vars was generated. Required for regularization. |
| [in] | task_parameters | Ignored |
| [out] | cost | Cost of the rollout. |
Definition at line 83 of file demoOptimizationTask.cpp.
|
inlinevirtual |
Get the number of individual cost components that constitute the final total cost.
Implements Task.
Definition at line 92 of file demoOptimizationTask.cpp.
|
inlinevirtual |
Returns a string representation of the object.
Implements Task.
Definition at line 100 of file demoOptimizationTask.cpp.
1.8.11