|
| ConstraintModelNumDiffTpl (const boost::shared_ptr< Base > &model) |
| Initialize the numdiff constraint model. More...
|
|
virtual | ~ConstraintModelNumDiffTpl () |
| Initialize the numdiff constraint model.
|
|
virtual void | calc (const boost::shared_ptr< ConstraintDataAbstract > &data, const Eigen::Ref< const VectorXs > &x) |
|
virtual void | calc (const boost::shared_ptr< ConstraintDataAbstract > &data, const Eigen::Ref< const VectorXs > &x, const Eigen::Ref< const VectorXs > &u) |
| Compute the constraint value. More...
|
|
virtual void | calcDiff (const boost::shared_ptr< ConstraintDataAbstract > &data, const Eigen::Ref< const VectorXs > &x) |
|
virtual void | calcDiff (const boost::shared_ptr< ConstraintDataAbstract > &data, const Eigen::Ref< const VectorXs > &x, const Eigen::Ref< const VectorXs > &u) |
| Compute the Jacobian of the constraint. More...
|
|
virtual boost::shared_ptr< ConstraintDataAbstract > | createData (DataCollectorAbstract *const data) |
| Create the constraint 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 constraint model.
|
|
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...
|
|
| ConstraintModelAbstractTpl (boost::shared_ptr< StateAbstract > state, boost::shared_ptr< ResidualModelAbstract > residual, const std::size_t ng, const std::size_t nh) |
| Initialize the constraint model. More...
|
|
| ConstraintModelAbstractTpl (boost::shared_ptr< StateAbstract > state, const std::size_t ng, const std::size_t nh) |
| Initialize the constraint model. More...
|
|
| ConstraintModelAbstractTpl (boost::shared_ptr< StateAbstract > state, const std::size_t nu, const std::size_t ng, const std::size_t nh) |
| the constraint model More...
|
|
const VectorXs & | get_lb () const |
| Return the lower bound of the constraint.
|
|
std::size_t | get_ng () const |
| Return the number of inequality constraints.
|
|
std::size_t | get_nh () const |
| Return the number of equality constraints.
|
|
std::size_t | get_nu () const |
| Return the dimension of the control input.
|
|
const boost::shared_ptr< ResidualModelAbstract > & | get_residual () const |
| Return the residual model.
|
|
const boost::shared_ptr< StateAbstract > & | get_state () const |
| Return the state.
|
|
ConstraintType | get_type () const |
| Return the type of constraint.
|
|
const VectorXs & | get_ub () const |
| Return the upper bound of the constraint.
|
|
virtual void | print (std::ostream &os) const |
| Print relevant information of the constraint model. More...
|
|
void | remove_bounds () |
| Remove the bounds of the constraint.
|
|
void | update_bounds (const VectorXs &lower, const VectorXs &upper) |
| Update the lower and upper bounds the upper bound of constraint.
|
|
template<typename _Scalar>
class crocoddyl::ConstraintModelNumDiffTpl< _Scalar >
This class computes the numerical differentiation of a constraint model.
It computes the Jacobian of the constraint model via numerical differentiation, i.e., \(\mathbf{g_x}\), \(\mathbf{g_u}\) and \(\mathbf{h_x}\), \(\mathbf{h_u}\), which denote the Jacobians of the inequality and equality constraints, respectively.
- See also
ConstraintModelAbstractTpl()
, calcDiff()
Definition at line 30 of file constraint.hpp.