aligator
0.9.0
A primal-dual augmented Lagrangian-type solver for nonlinear trajectory optimization.
|
Convenience class to manage a stack of constraints. More...
#include <aligator/core/constraint.hpp>
Public Types | |
using | PolyFunc = xyz::polymorphic<StageFunctionTpl<Scalar>> |
using | PolySet = xyz::polymorphic<ConstraintSetTpl<Scalar>> |
Public Member Functions | |
ALIGATOR_DYNAMIC_TYPEDEFS (Scalar) | |
ConstraintStackTpl () | |
ConstraintStackTpl (const ConstraintStackTpl &)=default | |
ConstraintStackTpl & | operator= (const ConstraintStackTpl &)=default |
ConstraintStackTpl (ConstraintStackTpl &&)=default | |
ConstraintStackTpl & | operator= (ConstraintStackTpl &&)=default |
std::size_t | size () const |
bool | empty () const |
void | clear () |
template<typename Cstr > | |
ALIGATOR_DEPRECATED void | pushBack (Cstr &&el) |
void | pushBack (const PolyFunc &func, const PolySet &cstr_set) |
const std::vector< long > & | dims () const |
Get the set of dimensions for each constraint in the stack. | |
long | totalDim () const |
template<typename Derived > | |
Derived * | getConstraint (const size_t id) |
Get constraint function, cast down to the specified type. | |
template<typename Derived > | |
const Derived * | getConstraint (const size_t id) const |
Get constraint function, cast down to the specified type. | |
Public Attributes | |
std::vector< PolyFunc > | funcs |
std::vector< PolySet > | sets |
Protected Attributes | |
std::vector< long > | indices_ |
std::vector< long > | dims_ |
long | total_dim_ = 0 |
Convenience class to manage a stack of constraints.
using aligator::ConstraintStackTpl< Scalar >::PolyFunc = xyz::polymorphic<StageFunctionTpl<Scalar>> |
Definition at line 23 of file constraint.hpp.
using aligator::ConstraintStackTpl< Scalar >::PolySet = xyz::polymorphic<ConstraintSetTpl<Scalar>> |
Definition at line 24 of file constraint.hpp.
|
inline |
Definition at line 26 of file constraint.hpp.
|
default |
|
default |
aligator::ConstraintStackTpl< Scalar >::ALIGATOR_DYNAMIC_TYPEDEFS | ( | Scalar | ) |
|
default |
|
default |
|
inline |
Definition at line 32 of file constraint.hpp.
|
inline |
Definition at line 33 of file constraint.hpp.
void aligator::ConstraintStackTpl< Scalar >::clear | ( | ) |
|
inline |
Definition at line 36 of file constraint.hpp.
|
inline |
Definition at line 46 of file constraint.hpp.
|
inline |
Get the set of dimensions for each constraint in the stack.
Definition at line 57 of file constraint.hpp.
|
inline |
Definition at line 59 of file constraint.hpp.
|
inline |
Get constraint function, cast down to the specified type.
Definition at line 62 of file constraint.hpp.
|
inline |
Get constraint function, cast down to the specified type.
Definition at line 68 of file constraint.hpp.
std::vector<PolyFunc> aligator::ConstraintStackTpl< Scalar >::funcs |
Definition at line 72 of file constraint.hpp.
std::vector<PolySet> aligator::ConstraintStackTpl< Scalar >::sets |
Definition at line 73 of file constraint.hpp.
|
protected |
Definition at line 76 of file constraint.hpp.
|
protected |
Definition at line 77 of file constraint.hpp.
|
protected |
Definition at line 78 of file constraint.hpp.