20 template <
typename SCALAR>
24 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
74 virtual bool solve() = 0;
87 std::shared_ptr<Nlp<SCALAR>>
nlp_;
NlpSolver(std::shared_ptr< Nlp< SCALAR >> nlp)
Custom Constructor 1.
Definition: NlpSolver.h:35
Abstract base class for the NLP solvers.
Definition: NlpSolver.h:21
NlpSolver(std::shared_ptr< Nlp< SCALAR >> nlp, NlpSolverSettings settings)
Custom constructor 2.
Definition: NlpSolver.h:42
bool isInitialized_
Definition: NlpSolver.h:89
Contains the NLP solver settings.
Definition: NlpSolverSettings.h:261
The NLP base class. This class serves as abstract base class to use as an interface to the NLP solver...
Definition: Nlp.h:32
virtual void prepareWarmStart(const size_t maxIterations)=0
Prepares the solver for a warmstarting scenario with available (good) initial guess.
std::shared_ptr< Nlp< SCALAR > > nlp_
Definition: NlpSolver.h:87
EIGEN_MAKE_ALIGNED_OPERATOR_NEW NlpSolver()
Default constructor.
Definition: NlpSolver.h:29
virtual ~NlpSolver()=default
Destructor.
bool isInitialized()
Definition: NlpSolver.h:85
NlpSolverSettings settings_
Definition: NlpSolver.h:88
void configure(const NlpSolverSettings &settings)
Configures the solver with new settings.
Definition: NlpSolver.h:56
virtual void configureDerived(const NlpSolverSettings &settings)=0
Forwards the settings to the corresponding nlp solver.
virtual bool solve()=0
Solves the nlp.