11 template <
size_t STATE_DIM,
size_t CONTROL_DIM,
typename SCALAR>
18 template <
size_t STATE_DIM,
size_t CONTROL_DIM,
typename SCALAR>
21 const Eigen::VectorXi& control_sparsity)
22 :
Base(lb, ub, control_sparsity)
27 template <
size_t STATE_DIM,
size_t CONTROL_DIM,
typename SCALAR>
33 template <
size_t STATE_DIM,
size_t CONTROL_DIM,
typename SCALAR>
38 template <
size_t STATE_DIM,
size_t CONTROL_DIM,
typename SCALAR>
45 template <
size_t STATE_DIM,
size_t CONTROL_DIM,
typename SCALAR>
55 template <
size_t STATE_DIM,
size_t CONTROL_DIM,
typename SCALAR>
56 Eigen::Matrix<ct::core::ADCGScalar, Eigen::Dynamic, 1>
60 ct::core::ADCGScalar
t)
62 return this->
sparsity_J_.template cast<ct::core::ADCGScalar>() * u;
66 template <
size_t STATE_DIM,
size_t CONTROL_DIM,
typename SCALAR>
77 template <
size_t STATE_DIM,
size_t CONTROL_DIM,
typename SCALAR>
86 template <
size_t STATE_DIM,
size_t CONTROL_DIM,
typename SCALAR>
92 template <
size_t STATE_DIM,
size_t CONTROL_DIM,
typename SCALAR>
98 template <
size_t STATE_DIM,
size_t CONTROL_DIM,
typename SCALAR>
107 template <
size_t STATE_DIM,
size_t CONTROL_DIM,
typename SCALAR>
113 template <
size_t STATE_DIM,
size_t CONTROL_DIM,
typename SCALAR>
120 jac.setConstant(1.0);
124 template <
size_t STATE_DIM,
size_t CONTROL_DIM,
typename SCALAR>
ct::core::ControlVector< control_dim > u
Definition: LoadFromFileTest.cpp:21
Eigen::Matrix< SCALAR, Eigen::Dynamic, Eigen::Dynamic > MatrixXs
Definition: ConstraintBase.h:32
Eigen::Matrix< SCALAR, Eigen::Dynamic, 1 > VectorXs
Definition: ConstraintBase.h:31
clear all close all load ct GNMSLog0 mat reformat t
Definition: gnmsPlot.m:6
size_t constrSize_
size of the constraint
Definition: BoxConstraintBase.h:113
sparsity_matrix_t sparsity_J_
sparsity matrix
Definition: BoxConstraintBase.h:110
CppAD::AD< CppAD::cg::CG< double > > SCALAR
static void sparsityPatternSparseJacobian(const VectorXi &sparsity_vec, const size_t &constrSize, VectorXi &rows, VectorXi &cols)
generate sparsity pattern for sparse box constraint
Definition: BoxConstraintBase-impl.h:121
ct::core::StateVector< state_dim > x
Definition: LoadFromFileTest.cpp:20
VectorXi sparsity_
sparsity in vector form
Definition: BoxConstraintBase.h:107