aligator
0.14.0
A primal-dual augmented Lagrangian-type solver for nonlinear trajectory optimization.
|
#include <aligator/gar/lqr-problem.hpp>
Public Types | |
using | KnotType = LqrKnotTpl<Scalar> |
using | KnotVector = std::pmr::vector<KnotType> |
using | allocator_type = polymorphic_allocator |
using | MVec = ManagedMatrix<Scalar, Eigen::Dynamic, 1> |
using | MMat = ManagedMatrix<Scalar, Eigen::Dynamic, Eigen::Dynamic> |
Public Member Functions | |
ALIGATOR_DYNAMIC_TYPEDEFS (Scalar) | |
int | horizon () const noexcept |
uint | nc0 () const noexcept |
Dimension of the initial condition constraint. | |
LqrProblemTpl (allocator_type alloc={}) | |
LqrProblemTpl (const KnotVector &knots, long nc0, allocator_type alloc={}) | |
This constructor will take the knots as-is. | |
LqrProblemTpl (KnotVector &&knots, long nc0) | |
This constructor will take the knots as-is, copying their specified allocator. | |
LqrProblemTpl (const LqrProblemTpl &other, allocator_type alloc={}) | |
Copy constructor. Will copy the allocator from other . | |
LqrProblemTpl (LqrProblemTpl &&other) | |
Move constructor - we steal the allocator from the source object. | |
~LqrProblemTpl () | |
void | addParameterization (uint nth) |
bool | isParameterized () const |
bool | isInitialized () const |
uint | ntheta () const |
bool | isApprox (const LqrProblemTpl &other) |
Scalar | evaluate (const VectorOfVectors &xs, const VectorOfVectors &us, const std::optional< ConstVectorRef > &theta_) const |
Evaluate the quadratic objective. | |
allocator_type | get_allocator () const |
Public Attributes | |
MMat | G0 |
MVec | g0 |
KnotVector | stages |
Static Public Attributes | |
static constexpr int | Alignment = Eigen::AlignedMax |
Definition at line 198 of file lqr-problem.hpp.
using aligator::gar::LqrProblemTpl< Scalar >::KnotType = LqrKnotTpl<Scalar> |
Definition at line 201 of file lqr-problem.hpp.
using aligator::gar::LqrProblemTpl< Scalar >::KnotVector = std::pmr::vector<KnotType> |
Definition at line 202 of file lqr-problem.hpp.
using aligator::gar::LqrProblemTpl< Scalar >::allocator_type = polymorphic_allocator |
Definition at line 203 of file lqr-problem.hpp.
using aligator::gar::LqrProblemTpl< Scalar >::MVec = ManagedMatrix<Scalar, Eigen::Dynamic, 1> |
Definition at line 204 of file lqr-problem.hpp.
using aligator::gar::LqrProblemTpl< Scalar >::MMat = ManagedMatrix<Scalar, Eigen::Dynamic, Eigen::Dynamic> |
Definition at line 205 of file lqr-problem.hpp.
|
inlineexplicit |
Definition at line 214 of file lqr-problem.hpp.
aligator::gar::LqrProblemTpl< Scalar >::LqrProblemTpl | ( | const KnotVector & | knots, |
long | nc0, | ||
allocator_type | alloc = {} ) |
This constructor will take the knots as-is.
aligator::gar::LqrProblemTpl< Scalar >::LqrProblemTpl | ( | KnotVector && | knots, |
long | nc0 ) |
This constructor will take the knots as-is, copying their specified allocator.
|
inline |
Copy constructor. Will copy the allocator from other
.
Definition at line 228 of file lqr-problem.hpp.
|
inline |
Move constructor - we steal the allocator from the source object.
Definition at line 235 of file lqr-problem.hpp.
aligator::gar::LqrProblemTpl< Scalar >::~LqrProblemTpl | ( | ) |
aligator::gar::LqrProblemTpl< Scalar >::ALIGATOR_DYNAMIC_TYPEDEFS | ( | Scalar | ) |
|
inlinenoexcept |
Definition at line 210 of file lqr-problem.hpp.
|
inlinenoexcept |
Dimension of the initial condition constraint.
Definition at line 212 of file lqr-problem.hpp.
|
inline |
Definition at line 243 of file lqr-problem.hpp.
|
inline |
Definition at line 251 of file lqr-problem.hpp.
|
inline |
Definition at line 255 of file lqr-problem.hpp.
|
inline |
Definition at line 257 of file lqr-problem.hpp.
|
inline |
Definition at line 259 of file lqr-problem.hpp.
Scalar aligator::gar::LqrProblemTpl< Scalar >::evaluate | ( | const VectorOfVectors & | xs, |
const VectorOfVectors & | us, | ||
const std::optional< ConstVectorRef > & | theta_ ) const |
Evaluate the quadratic objective.
|
inline |
Definition at line 274 of file lqr-problem.hpp.
|
staticconstexpr |
Definition at line 200 of file lqr-problem.hpp.
MMat aligator::gar::LqrProblemTpl< Scalar >::G0 |
Definition at line 206 of file lqr-problem.hpp.
MVec aligator::gar::LqrProblemTpl< Scalar >::g0 |
Definition at line 207 of file lqr-problem.hpp.
KnotVector aligator::gar::LqrProblemTpl< Scalar >::stages |
Definition at line 208 of file lqr-problem.hpp.