Base class for algorithms solving banded conic programs arising in optimal control. More...
#include <banded_cp_solver.hpp>
Public Member Functions | |
BandedCPsolver () | |
BandedCPsolver (UserInteraction *_userInteraction) | |
BandedCPsolver (const BandedCPsolver &rhs) | |
virtual BandedCPsolver * | clone () const =0 |
virtual returnValue | finalizeSolve (BandedCP &cp) |
virtual returnValue | freezeCondensing () |
virtual returnValue | getFirstControl (DVector &u0_) const =0 |
virtual returnValue | getParameters (DVector &p_) const =0 |
virtual returnValue | getVarianceCovariance (DMatrix &var) |
virtual returnValue | init (const OCPiterate &iter_)=0 |
BandedCPsolver & | operator= (const BandedCPsolver &rhs) |
virtual returnValue | prepareSolve (BandedCP &cp) |
virtual returnValue | setRealTimeParameters (const DVector &DeltaX, const DVector &DeltaP=emptyConstVector) |
virtual returnValue | solve (BandedCP &cp)=0 |
virtual returnValue | unfreezeCondensing () |
virtual | ~BandedCPsolver () |
Protected Member Functions | |
virtual returnValue | setupLogging () |
virtual returnValue | setupOptions () |
Base class for algorithms solving banded conic programs arising in optimal control.
The class Banded CP Solver is a base class for all conic solvers that are able to deal with the specific band structure that arises in the optimal control context.
Definition at line 63 of file banded_cp_solver.hpp.
Default constructor.
Definition at line 43 of file banded_cp_solver.cpp.
BandedCPsolver::BandedCPsolver | ( | UserInteraction * | _userInteraction | ) |
Definition at line 50 of file banded_cp_solver.cpp.
BandedCPsolver::BandedCPsolver | ( | const BandedCPsolver & | rhs | ) |
Copy constructor (deep copy).
Definition at line 61 of file banded_cp_solver.cpp.
BandedCPsolver::~BandedCPsolver | ( | ) | [virtual] |
Destructor.
Definition at line 66 of file banded_cp_solver.cpp.
virtual BandedCPsolver* BandedCPsolver::clone | ( | ) | const [pure virtual] |
Assignment operator (deep copy).
Implemented in CondensingBasedCPsolver.
returnValue BandedCPsolver::finalizeSolve | ( | BandedCP & | cp | ) | [virtual] |
Solves a given banded conic program
Reimplemented in CondensingBasedCPsolver.
Definition at line 90 of file banded_cp_solver.cpp.
returnValue BandedCPsolver::freezeCondensing | ( | ) | [virtual] |
Reimplemented in CondensingBasedCPsolver.
Definition at line 114 of file banded_cp_solver.cpp.
virtual returnValue BandedCPsolver::getFirstControl | ( | DVector & | u0_ | ) | const [pure virtual] |
Implemented in CondensingBasedCPsolver.
virtual returnValue BandedCPsolver::getParameters | ( | DVector & | p_ | ) | const [pure virtual] |
Implemented in CondensingBasedCPsolver.
returnValue BandedCPsolver::getVarianceCovariance | ( | DMatrix & | var | ) | [virtual] |
Returns a variance-covariance estimate if possible or an error message otherwise.
Reimplemented in CondensingBasedCPsolver.
Definition at line 98 of file banded_cp_solver.cpp.
virtual returnValue BandedCPsolver::init | ( | const OCPiterate & | iter_ | ) | [pure virtual] |
Initializes the banded conic solver
Implemented in CondensingBasedCPsolver.
BandedCPsolver & BandedCPsolver::operator= | ( | const BandedCPsolver & | rhs | ) |
Assignment operator (deep copy).
Definition at line 71 of file banded_cp_solver.cpp.
returnValue BandedCPsolver::prepareSolve | ( | BandedCP & | cp | ) | [virtual] |
Solves a given banded conic program
Reimplemented in CondensingBasedCPsolver.
Definition at line 83 of file banded_cp_solver.cpp.
returnValue BandedCPsolver::setRealTimeParameters | ( | const DVector & | DeltaX, |
const DVector & | DeltaP = emptyConstVector |
||
) | [virtual] |
Reimplemented in CondensingBasedCPsolver.
Definition at line 105 of file banded_cp_solver.cpp.
returnValue BandedCPsolver::setupLogging | ( | ) | [protected, virtual] |
Definition at line 143 of file banded_cp_solver.cpp.
returnValue BandedCPsolver::setupOptions | ( | ) | [protected, virtual] |
Definition at line 131 of file banded_cp_solver.cpp.
virtual returnValue BandedCPsolver::solve | ( | BandedCP & | cp | ) | [pure virtual] |
Solves a given banded conic program in feedback mode:
cp | the banded conic program to be solved |
DeltaX | difference between state estimate and previous prediction |
DeltaP | difference between current and previous parameter value |
Implemented in CondensingBasedCPsolver.
returnValue BandedCPsolver::unfreezeCondensing | ( | ) | [virtual] |
Reimplemented in CondensingBasedCPsolver.
Definition at line 120 of file banded_cp_solver.cpp.