Solver interface implemented by IPOPT and SNOPT. More...
#include <solver.h>
Public Types | |
using | Ptr = std::shared_ptr< Solver > |
Public Member Functions | |
int | GetReturnStatus () const |
Get the return status for the optimization. More... | |
virtual void | Solve (Problem &nlp)=0 |
Uses a specific solver (IPOPT, SNOPT) to solve the NLP. More... | |
virtual | ~Solver ()=default |
Protected Attributes | |
int | status_ |
using ifopt::Solver::Ptr = std::shared_ptr<Solver> |
|
virtualdefault |
|
inline |
Get the return status for the optimization.
|
pure virtual |
Uses a specific solver (IPOPT, SNOPT) to solve the NLP.
[in/out] | nlp The nonlinear programming problem. |
Implemented in ifopt::SnoptSolver, and ifopt::IpoptSolver.