![]() |
- 3.0.2 optimal control module.
|
Abstract base class for the NLP solvers. More...
#include <NlpSolver.h>
Public Member Functions | |
| EIGEN_MAKE_ALIGNED_OPERATOR_NEW | NlpSolver () |
| Default constructor. More... | |
| NlpSolver (std::shared_ptr< Nlp< SCALAR >> nlp) | |
| Custom Constructor 1. More... | |
| NlpSolver (std::shared_ptr< Nlp< SCALAR >> nlp, NlpSolverSettings settings) | |
| Custom constructor 2. More... | |
| virtual | ~NlpSolver ()=default |
| Destructor. More... | |
| void | configure (const NlpSolverSettings &settings) |
| Configures the solver with new settings. More... | |
| virtual void | configureDerived (const NlpSolverSettings &settings)=0 |
| Forwards the settings to the corresponding nlp solver. More... | |
| virtual bool | solve ()=0 |
| Solves the nlp. More... | |
| virtual void | prepareWarmStart (const size_t maxIterations)=0 |
| Prepares the solver for a warmstarting scenario with available (good) initial guess. More... | |
| bool | isInitialized () |
Protected Attributes | |
| std::shared_ptr< Nlp< SCALAR > > | nlp_ |
| NlpSolverSettings | settings_ |
| bool | isInitialized_ |
Abstract base class for the NLP solvers.
|
inline |
Default constructor.
|
inline |
Custom Constructor 1.
| [in] | nlp | The nlp |
|
inline |
Custom constructor 2.
| [in] | nlp | The nlp |
| [in] | settings | Custom user settings |
References ct::optcon::tpl::NlpSolver< SCALAR >::~NlpSolver().
|
virtualdefault |
Destructor.
Referenced by ct::optcon::tpl::NlpSolver< SCALAR >::NlpSolver().
|
inline |
Configures the solver with new settings.
| [in] | settings | The nlp solver settings |
References ct::optcon::tpl::NlpSolver< SCALAR >::configureDerived(), ct::optcon::tpl::NlpSolver< SCALAR >::prepareWarmStart(), ct::optcon::tpl::NlpSolver< SCALAR >::settings_, and ct::optcon::tpl::NlpSolver< SCALAR >::solve().
|
pure virtual |
Forwards the settings to the corresponding nlp solver.
| [in] | settings | The nlp settings |
Implemented in ct::optcon::SnoptSolver, and ct::optcon::tpl::IpoptSolver< SCALAR >.
Referenced by ct::optcon::tpl::NlpSolver< SCALAR >::configure().
|
pure virtual |
Solves the nlp.
Implemented in ct::optcon::SnoptSolver, and ct::optcon::tpl::IpoptSolver< SCALAR >.
Referenced by ct::optcon::tpl::NlpSolver< SCALAR >::configure().
|
pure virtual |
Prepares the solver for a warmstarting scenario with available (good) initial guess.
| [in] | maxIterations | Specifies the maximum number of nlp iteration the user is willing to spend |
Implemented in ct::optcon::SnoptSolver, and ct::optcon::tpl::IpoptSolver< SCALAR >.
Referenced by ct::optcon::tpl::NlpSolver< SCALAR >::configure().
|
inline |
|
protected |
The non linear program
|
protected |
The nlp settings
Referenced by ct::optcon::tpl::NlpSolver< SCALAR >::configure().
|
protected |
Indicates whether the solver is initialized
Referenced by ct::optcon::tpl::NlpSolver< SCALAR >::isInitialized().