aligator
0.9.0
A primal-dual augmented Lagrangian-type solver for nonlinear trajectory optimization.
|
Base workspace struct for the algorithms. More...
#include <aligator/core/workspace-base.hpp>
Public Member Functions | |
ALIGATOR_DYNAMIC_TYPEDEFS (Scalar) | |
WorkspaceBaseTpl () | |
WorkspaceBaseTpl (const TrajOptProblemTpl< Scalar > &problem) | |
~WorkspaceBaseTpl ()=default | |
bool | isInitialized () const |
void | cycleLeft () |
Cycle the workspace data to the left. | |
void | cycleAppend (shared_ptr< StageDataTpl< Scalar > > data) |
Same as cycleLeft(), but add a StageDataTpl to problem_data. | |
Public Attributes | |
std::size_t | nsteps |
Number of steps in the problem. | |
TrajOptDataTpl< Scalar > | problem_data |
Problem data. | |
std::vector< VectorXs > | dyn_slacks |
Dynamical infeasibility gaps. | |
Linesearch data | |
std::vector< VectorXs > | trial_xs |
std::vector< VectorXs > | trial_us |
Protected Attributes | |
bool | m_isInitialized |
Base workspace struct for the algorithms.
|
inline |
Definition at line 35 of file workspace-base.hpp.
|
explicit |
Definition at line 60 of file workspace-base.hpp.
|
default |
aligator::WorkspaceBaseTpl< Scalar >::ALIGATOR_DYNAMIC_TYPEDEFS | ( | Scalar | ) |
|
inline |
Definition at line 41 of file workspace-base.hpp.
void aligator::WorkspaceBaseTpl< Scalar >::cycleLeft | ( | ) |
Cycle the workspace data to the left.
Useful in model-predictive control (MPC) applications.
Definition at line 69 of file workspace-base.hpp.
|
inline |
Same as cycleLeft(), but add a StageDataTpl to problem_data.
The implementation pushes back on top of the vector of StageDataTpl, rotates left, then pops the first element back out.
Definition at line 50 of file workspace-base.hpp.
|
protected |
Definition at line 18 of file workspace-base.hpp.
std::size_t aligator::WorkspaceBaseTpl< Scalar >::nsteps |
Number of steps in the problem.
Definition at line 22 of file workspace-base.hpp.
TrajOptDataTpl<Scalar> aligator::WorkspaceBaseTpl< Scalar >::problem_data |
Problem data.
Definition at line 24 of file workspace-base.hpp.
std::vector<VectorXs> aligator::WorkspaceBaseTpl< Scalar >::trial_xs |
Definition at line 28 of file workspace-base.hpp.
std::vector<VectorXs> aligator::WorkspaceBaseTpl< Scalar >::trial_us |
Definition at line 29 of file workspace-base.hpp.
std::vector<VectorXs> aligator::WorkspaceBaseTpl< Scalar >::dyn_slacks |
Dynamical infeasibility gaps.
Definition at line 33 of file workspace-base.hpp.