25 template <
size_t STATE_DIM,
size_t CONTROL_DIM,
typename SCALAR_EVAL =
double,
typename SCALAR = SCALAR_EVAL>
29 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
41 TermStateBarrier(
const state_vector_t& ub,
const state_vector_t& lb,
const state_vector_t& alpha);
50 const Eigen::Matrix<SCALAR, CONTROL_DIM, 1>&
u,
56 ct::core::ADCGScalar
t)
override;
61 const std::string& termName,
71 std::vector<ct::core::tpl::BarrierActivation<SCALAR, ct::core::tpl::TraitSelector<SCALAR>>>
barriers_;
void initialize()
Definition: TermStateBarrier-impl.hpp:45
ct::core::ControlVector< control_dim > u
Definition: LoadFromFileTest.cpp:21
Eigen::Matrix< SCALAR_EVAL, CONTROL_DIM, CONTROL_DIM > control_matrix_double_t
Definition: TermStateBarrier.hpp:36
Eigen::Matrix< SCALAR_EVAL, STATE_DIM, STATE_DIM > state_matrix_double_t
Definition: TermStateBarrier.hpp:35
virtual ~TermStateBarrier()
Definition: TermStateBarrier-impl.hpp:33
Eigen::Matrix< SCALAR_EVAL, CONTROL_DIM, CONTROL_DIM > control_matrix_t
Definition: TermStateBarrier.hpp:33
An interface for a term, supporting both analytical and auto-diff terms.
Definition: TermBase.hpp:30
state_vector_t ub_
Definition: TermStateBarrier.hpp:68
clear all close all load ct GNMSLog0 mat reformat t
Definition: gnmsPlot.m:6
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef Eigen::Matrix< SCALAR_EVAL, STATE_DIM, 1 > state_vector_t
Definition: TermStateBarrier.hpp:31
Eigen::Matrix< SCALAR_EVAL, CONTROL_DIM, STATE_DIM > control_state_matrix_t
Definition: TermStateBarrier.hpp:34
CppAD::AD< CppAD::cg::CG< double > > SCALAR
A state barrier term (could also be considered a soft constraint) Note that this term explicitly excl...
Definition: TermStateBarrier.hpp:26
ct::core::StateVector< state_dim > x
Definition: LoadFromFileTest.cpp:20
std::vector< ct::core::tpl::BarrierActivation< SCALAR, ct::core::tpl::TraitSelector< SCALAR > > > barriers_
Definition: TermStateBarrier.hpp:71
Eigen::Matrix< SCALAR_EVAL, CONTROL_DIM, STATE_DIM > control_state_matrix_double_t
Definition: TermStateBarrier.hpp:37
state_vector_t alpha_
Definition: TermStateBarrier.hpp:67
TermStateBarrier< STATE_DIM, CONTROL_DIM, SCALAR_EVAL, SCALAR > * clone() const override
Deep-copy term.
Definition: TermStateBarrier-impl.hpp:39
virtual SCALAR evaluate(const Eigen::Matrix< SCALAR, STATE_DIM, 1 > &x, const Eigen::Matrix< SCALAR, CONTROL_DIM, 1 > &u, const SCALAR &t) override
Evaluates the term at x, u, t.
Definition: TermStateBarrier-impl.hpp:55
TermStateBarrier()
Definition: TermStateBarrier-impl.hpp:20
state_vector_t lb_
Definition: TermStateBarrier.hpp:69
const bool verbose
Definition: ConstraintComparison.h:18
Eigen::Matrix< SCALAR_EVAL, STATE_DIM, STATE_DIM > state_matrix_t
Definition: TermStateBarrier.hpp:32
virtual void loadConfigFile(const std::string &filename, const std::string &termName, bool verbose=false) override
load the term from config file, where the bounds are stored as matrices
Definition: TermStateBarrier-impl.hpp:81