aligator
0.6.1
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 | ConstraintType = StageConstraintTpl<Scalar> |
using | value_type = ConstraintType |
using | data_type = ConstraintType |
using | iterator = typename std::vector<ConstraintType>::iterator |
Public Member Functions | |
ALIGATOR_DYNAMIC_TYPEDEFS (Scalar) | |
ConstraintStackTpl () | |
auto | begin () |
auto | end () |
std::size_t | size () const |
bool | empty () const |
void | clear () |
void | pushBack (const ConstraintType &el, const long nr) |
void | pushBack (const ConstraintType &el) |
const std::vector< long > & | dims () const |
Get the set of dimensions for each constraint in the stack. | |
ALIGATOR_DEPRECATED const std::vector< long > & | getDims () const |
long | totalDim () const |
ConstraintType & | operator[] (std::size_t j) |
Get the i-th constraint. | |
const ConstraintType & | operator[] (std::size_t j) const |
Get the i-th constraint. | |
Protected Attributes | |
std::vector< ConstraintType > | storage_ |
std::vector< long > | indices_ |
std::vector< long > | dims_ |
long | total_dim_ = 0 |
Convenience class to manage a stack of constraints.
Definition at line 20 of file constraint.hpp.
using aligator::ConstraintStackTpl< Scalar >::ConstraintType = StageConstraintTpl<Scalar> |
Definition at line 22 of file constraint.hpp.
using aligator::ConstraintStackTpl< Scalar >::value_type = ConstraintType |
Definition at line 23 of file constraint.hpp.
using aligator::ConstraintStackTpl< Scalar >::data_type = ConstraintType |
Definition at line 24 of file constraint.hpp.
using aligator::ConstraintStackTpl< Scalar >::iterator = typename std::vector<ConstraintType>::iterator |
Definition at line 25 of file constraint.hpp.
|
inline |
Definition at line 27 of file constraint.hpp.
aligator::ConstraintStackTpl< Scalar >::ALIGATOR_DYNAMIC_TYPEDEFS | ( | Scalar | ) |
|
inline |
Definition at line 29 of file constraint.hpp.
|
inline |
Definition at line 30 of file constraint.hpp.
|
inline |
Definition at line 32 of file constraint.hpp.
|
inline |
Definition at line 33 of file constraint.hpp.
void aligator::ConstraintStackTpl< Scalar >::clear | ( | ) |
void aligator::ConstraintStackTpl< Scalar >::pushBack | ( | const ConstraintType & | el, |
const long | nr ) |
void aligator::ConstraintStackTpl< Scalar >::pushBack | ( | const ConstraintType & | el | ) |
|
inline |
Get the set of dimensions for each constraint in the stack.
Definition at line 40 of file constraint.hpp.
|
inline |
Definition at line 42 of file constraint.hpp.
|
inline |
Definition at line 44 of file constraint.hpp.
|
inline |
Get the i-th constraint.
Definition at line 47 of file constraint.hpp.
|
inline |
Get the i-th constraint.
Definition at line 53 of file constraint.hpp.
|
protected |
Definition at line 59 of file constraint.hpp.
|
protected |
Definition at line 60 of file constraint.hpp.
|
protected |
Definition at line 61 of file constraint.hpp.
|
protected |
Definition at line 62 of file constraint.hpp.