|
typedef ConstraintBase< STATE_DIM, CONTROL_DIM, SCALAR > | Base |
|
typedef core::StateVector< STATE_DIM, SCALAR > | state_vector_t |
|
typedef core::ControlVector< CONTROL_DIM, SCALAR > | control_vector_t |
|
typedef Eigen::Matrix< int, Eigen::Dynamic, 1 > | VectorXi |
|
typedef Eigen::Matrix< SCALAR, Eigen::Dynamic, 1 > | VectorXs |
|
typedef Eigen::Matrix< SCALAR, Eigen::Dynamic, Eigen::Dynamic > | MatrixXs |
|
typedef core::StateVector< STATE_DIM, SCALAR > | state_vector_t |
|
typedef core::ControlVector< CONTROL_DIM, SCALAR > | control_vector_t |
|
typedef Eigen::Matrix< SCALAR, Eigen::Dynamic, 1 > | VectorXs |
|
typedef Eigen::Matrix< SCALAR, Eigen::Dynamic, Eigen::Dynamic > | MatrixXs |
|
|
| TerminalConstraint (const core::StateVector< STATE_DIM, SCALAR > xf) |
| Custom constructor. More...
|
|
virtual TerminalConstraint< STATE_DIM, CONTROL_DIM, SCALAR > * | clone () const override |
| Creates a new instance of the object with same properties than original. More...
|
|
| TerminalConstraint (const TerminalConstraint &arg) |
|
virtual | ~TerminalConstraint () |
|
virtual size_t | getConstraintSize () const override |
| The evaluate method used for jit compilation in constraint container ad. More...
|
|
virtual VectorXs | evaluate (const state_vector_t &x, const control_vector_t &u, const SCALAR t) override |
| The evaluation of the constraint violation. Note this method is SCALAR typed. More...
|
|
virtual MatrixXs | jacobianState (const state_vector_t &x, const control_vector_t &u, const SCALAR t) override |
| Returns the constraint jacobian wrt state. More...
|
|
virtual MatrixXs | jacobianInput (const state_vector_t &x, const control_vector_t &u, const SCALAR t) override |
| Returns the constraint jacobian wrt input. More...
|
|
virtual size_t | getNumNonZerosJacobianState () const override |
| Returns the number of nonzeros in the jacobian wrt state. The default implementation assumes a dense matrix with only nonzero elements. More...
|
|
virtual size_t | getNumNonZerosJacobianInput () const override |
| Returns the number of nonzeros in the jacobian wrt control input. The default implementation assumes a dense matrix with only nonzero elements. More...
|
|
virtual VectorXs | jacobianStateSparse (const state_vector_t &x, const control_vector_t &u, const SCALAR t) override |
| Returns the constraint jacobian wrt state in sparse structure. The default implementation maps the JacobianState matrix to a vector. More...
|
|
virtual void | sparsityPatternState (VectorXi &rows, VectorXi &cols) override |
|
| ConstraintBase (std::string name="Unnamed") |
| Custom constructor. More...
|
|
| ConstraintBase (const ConstraintBase &arg) |
| Copy constructor. More...
|
|
virtual | ~ConstraintBase () |
| Destructor. More...
|
|
virtual VectorXs | getLowerBound () const |
| Returns the lower constraint bound. More...
|
|
virtual VectorXs | getUpperBound () const |
| Returns the upper constraint bound. More...
|
|
void | getName (std::string &constraintName) const |
| Returns the constraint name. More...
|
|
void | setName (const std::string constraintName) |
| Sets the constraint name. More...
|
|
virtual VectorXs | jacobianInputSparse (const state_vector_t &x, const control_vector_t &u, const SCALAR t) |
| Returns the constraint jacobian wrt control input in sparse structure. The default implementation maps the JacobianState matrix to a vector. More...
|
|
virtual void | sparsityPatternState (Eigen::VectorXi &rows, Eigen::VectorXi &cols) |
| Generates the sparsity pattern of the jacobian wrt state. The default implementation returns a vector of ones corresponding to the dense jacobianState. More...
|
|
virtual void | sparsityPatternInput (Eigen::VectorXi &rows, Eigen::VectorXi &cols) |
| Generates the sparsity pattern of the jacobian wrt control input. The default implementation returns a vector of ones corresponding to the dense jacobianInput. More...
|
|
|
static void | genDiagonalIndices (const size_t num_elements, Eigen::VectorXi &iRow_vec, Eigen::VectorXi &jCol_vec) |
| upper bound on the constraints More...
|
|
static void | genSparseDiagonalIndices (const Eigen::VectorXi &diag_sparsity, Eigen::VectorXi &iRow_vec, Eigen::VectorXi &jCol_vec) |
| Generates indices of a sparse diagonal square matrix. More...
|
|
static void | genBlockIndices (const size_t num_rows, const size_t num_cols, Eigen::VectorXi &iRow_vec, Eigen::VectorXi &jCol_vec) |
| Generates indices of a full matrix. More...
|
|
VectorXs | lb_ |
|
VectorXs | ub_ |
| lower bound on the constraints More...
|
|
template<size_t STATE_DIM, size_t CONTROL_DIM, typename SCALAR = double>
class ct::optcon::TerminalConstraint< STATE_DIM, CONTROL_DIM, SCALAR >
Class for terminal constraint.
- Template Parameters
-
STATE_DIM | The state dimension |
CONTROL_DIM | The control dimension |
SCALAR | The Scalar type |
- Examples:
- DMS.cpp.