|
| CostModelNumDiffTpl (const boost::shared_ptr< Base > &model) |
| Initialize the numdiff cost model. More...
|
|
virtual | ~CostModelNumDiffTpl () |
| Initialize the numdiff cost model.
|
|
virtual void | calc (const boost::shared_ptr< CostDataAbstract > &data, const Eigen::Ref< const VectorXs > &x) |
|
virtual void | calc (const boost::shared_ptr< CostDataAbstract > &data, const Eigen::Ref< const VectorXs > &x, const Eigen::Ref< const VectorXs > &u) |
| Compute the cost value and its residual vector. More...
|
|
virtual void | calcDiff (const boost::shared_ptr< CostDataAbstract > &data, const Eigen::Ref< const VectorXs > &x) |
|
virtual void | calcDiff (const boost::shared_ptr< CostDataAbstract > &data, const Eigen::Ref< const VectorXs > &x, const Eigen::Ref< const VectorXs > &u) |
| Compute the Jacobian and Hessian of cost and its residual vector. More...
|
|
virtual boost::shared_ptr< CostDataAbstract > | createData (DataCollectorAbstract *const data) |
| Create a numdiff cost data. More...
|
|
const Scalar | get_disturbance () const |
| Return the disturbance constant used by the numerical differentiation routine.
|
|
const boost::shared_ptr< Base > & | get_model () const |
| Return the original cost model.
|
|
bool | get_with_gauss_approx () |
| Identify if the Gauss approximation is going to be used or not. More...
|
|
void | set_disturbance (const Scalar disturbance) |
| Modify the disturbance constant used by the numerical differentiation routine.
|
|
void | set_reevals (const std::vector< ReevaluationFunction > &reevals) |
| Register functions that updates the shared data computed for a system rollout The updated data is used to evaluate of the gradient and Hessian. More...
|
|
| CostModelAbstractTpl (boost::shared_ptr< StateAbstract > state, boost::shared_ptr< ActivationModelAbstract > activation) |
| Initialize the cost model. More...
|
|
| CostModelAbstractTpl (boost::shared_ptr< StateAbstract > state, boost::shared_ptr< ActivationModelAbstract > activation, boost::shared_ptr< ResidualModelAbstract > residual) |
| Initialize the cost model. More...
|
|
| CostModelAbstractTpl (boost::shared_ptr< StateAbstract > state, boost::shared_ptr< ActivationModelAbstract > activation, const std::size_t nu) |
| Initialize the cost model. More...
|
|
| CostModelAbstractTpl (boost::shared_ptr< StateAbstract > state, boost::shared_ptr< ResidualModelAbstract > residual) |
| Initialize the cost model. More...
|
|
| CostModelAbstractTpl (boost::shared_ptr< StateAbstract > state, const std::size_t nr) |
| Initialize the cost model. More...
|
|
| CostModelAbstractTpl (boost::shared_ptr< StateAbstract > state, const std::size_t nr, const std::size_t nu) |
| Initialize the cost model. More...
|
|
const boost::shared_ptr< ActivationModelAbstract > & | get_activation () const |
| Return the activation model.
|
|
std::size_t | get_nu () const |
| Return the dimension of the control input.
|
|
template<class ReferenceType > |
ReferenceType | get_reference () |
| Return the cost reference.
|
|
const boost::shared_ptr< ResidualModelAbstract > & | get_residual () const |
| Return the residual model.
|
|
const boost::shared_ptr< StateAbstract > & | get_state () const |
| Return the state.
|
|
virtual void | print (std::ostream &os) const |
| Print relevant information of the cost model. More...
|
|
template<class ReferenceType > |
void | set_reference (ReferenceType ref) |
| Modify the cost reference.
|
|
template<typename _Scalar>
class crocoddyl::CostModelNumDiffTpl< _Scalar >
This class computes the numerical differentiation of a cost model.
It computes the Jacobian and Hessian of the cost model via numerical differentiation, i.e., \(\mathbf{\ell_x}\), \(\mathbf{\ell_u}\), \(\mathbf{\ell_{xx}}\), \(\mathbf{\ell_{uu}}\), and \(\mathbf{\ell_{xu}}\) which denote the Jacobians and Hessians of the cost function, respectively.
- See also
CostModelAbstractTpl()
, calcDiff()
Definition at line 34 of file cost.hpp.