Public Types | Public Member Functions | Protected Attributes | List of all members
ifopt::Solver Class Referenceabstract

Solver interface implemented by IPOPT and SNOPT. More...

#include <solver.h>

Inheritance diagram for ifopt::Solver:
Inheritance graph
[legend]

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_
 

Detailed Description

Solver interface implemented by IPOPT and SNOPT.

Definition at line 48 of file solver.h.

Member Typedef Documentation

using ifopt::Solver::Ptr = std::shared_ptr<Solver>

Definition at line 50 of file solver.h.

Constructor & Destructor Documentation

virtual ifopt::Solver::~Solver ( )
virtualdefault

Member Function Documentation

int ifopt::Solver::GetReturnStatus ( ) const
inline

Get the return status for the optimization.

e.g. https://coin-or.github.io/Ipopt/OUTPUT.html

Definition at line 64 of file solver.h.

virtual void ifopt::Solver::Solve ( Problem nlp)
pure virtual

Uses a specific solver (IPOPT, SNOPT) to solve the NLP.

Parameters
[in/out]nlp The nonlinear programming problem.

Implemented in ifopt::IpoptSolver, and ifopt::SnoptSolver.

Member Data Documentation

int ifopt::Solver::status_
protected

Definition at line 64 of file solver.h.


The documentation for this class was generated from the following file:


ifopt
Author(s): Alexander W. Winkler
autogenerated on Fri Jan 22 2021 03:47:32