30 template <
size_t STATE_DIM,
size_t CONTROL_DIM,
typename SCALAR =
double>
34 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
40 typedef Eigen::Matrix<SCALAR, Eigen::Dynamic, 1>
VectorXs;
67 virtual ConstraintBase_Raw_Ptr_t
clone()
const = 0;
79 const input_vector_t&
u,
195 virtual void update() = 0;
VectorXs getLowerBoundsIntermediate() const
Retrieves the lower constraint bound on the intermediate constraints.
Definition: ConstraintContainerBase-impl.h:53
VectorXs getLowerBoundsTerminal() const
Retrieves the lower constraint bound on the terminal constraints.
Definition: ConstraintContainerBase-impl.h:60
virtual void setCurrentStateAndControl(const state_vector_t &x, const input_vector_t &u, const SCALAR t=SCALAR(0.0))
Definition: ConstraintContainerBase-impl.h:35
input_vector_t u_
Definition: ConstraintContainerBase.h:198
Eigen::Matrix< SCALAR, Eigen::Dynamic, 1 > VectorXs
Definition: ConstraintContainerBase.h:40
VectorXs getUpperBoundsTerminal() const
Retrieves the upper constraint bound on the terminal constraints.
Definition: ConstraintContainerBase-impl.h:74
ct::core::ControlVector< control_dim > u
Definition: LoadFromFileTest.cpp:21
core::ControlVector< CONTROL_DIM, SCALAR > input_vector_t
Definition: ConstraintContainerBase.h:37
VectorXs lowerBoundsTerminal_
Definition: ConstraintContainerBase.h:202
virtual size_t getIntermediateConstraintsCount()=0
Retrieves the number of intermediate constraints.
VectorXs getUpperBoundsViolationIntermediate()
Retrieves the violation of the upper constraint bound on the intermediate constraints.
Definition: ConstraintContainerBase-impl.h:81
VectorXs upperBoundsTerminal_
Definition: ConstraintContainerBase.h:204
VectorXs lowerBoundsIntermediate_
Definition: ConstraintContainerBase.h:201
VectorXs getTotalBoundsViolationIntermediate()
Retrieves the total violation of the constraints bounds on the intermediate constraints.
Definition: ConstraintContainerBase-impl.h:113
virtual VectorXs evaluateIntermediate()=0
Evaluates the intermediate constraints.
clear all close all load ct GNMSLog0 mat reformat t
Definition: gnmsPlot.m:6
virtual ~ConstraintContainerBase()
Destructor.
Definition: ConstraintContainerBase-impl.h:30
virtual size_t getTerminalConstraintsCount()=0
Retrieves the number of final constraints.
VectorXs getUpperBoundsIntermediate() const
Retrieves the upper constraint bound on the intermediate constraints.
Definition: ConstraintContainerBase-impl.h:67
CppAD::AD< CppAD::cg::CG< double > > SCALAR
VectorXs getTotalBoundsViolationTerminal()
Retrieves the total violation of the constraints bounds on the terminal constraints.
Definition: ConstraintContainerBase-impl.h:123
virtual void update()=0
Gets called by the setCurrentStateAndControl method. Can be used to update container properties...
virtual VectorXs evaluateTerminal()=0
Evaluates the terminal constraints.
VectorXs getUpperBoundsViolationTerminal()
Retrieves the violation of the upper constraint bound on the terminal constraints.
Definition: ConstraintContainerBase-impl.h:97
size_t getConstraintsCount()
Retrieves the total number of constraints.
Definition: ConstraintContainerBase-impl.h:46
SCALAR t_
Definition: ConstraintContainerBase.h:199
ct::core::StateVector< state_dim > x
Definition: LoadFromFileTest.cpp:20
VectorXs upperBoundsIntermediate_
Definition: ConstraintContainerBase.h:203
VectorXs getLowerBoundsViolationTerminal()
Retrieves the violation of the lower constraint bound on the terminal constraints.
Definition: ConstraintContainerBase-impl.h:105
The ConstraintBase Class is the base class for defining the non-linear optimization constraints...
Definition: ConstraintContainerBase.h:31
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef core::StateVector< STATE_DIM, SCALAR > state_vector_t
Definition: ConstraintContainerBase.h:36
state_vector_t x_
Definition: ConstraintContainerBase.h:197
virtual ConstraintBase_Raw_Ptr_t clone() const =0
VectorXs getLowerBoundsViolationIntermediate()
Retrieves the violation of the lower constraint bound on the intermediate constraints.
Definition: ConstraintContainerBase-impl.h:89
ConstraintContainerBase()
Default constructor.
Definition: ConstraintContainerBase-impl.h:12
ConstraintContainerBase< STATE_DIM, CONTROL_DIM, SCALAR > * ConstraintBase_Raw_Ptr_t
Definition: ConstraintContainerBase.h:39