An interface to IPOPT, fully hiding its implementation. More...
#include <ipopt_solver.h>

| Public Types | |
| using | Ptr = std::shared_ptr< IpoptSolver > | 
|  Public Types inherited from ifopt::Solver | |
| using | Ptr = std::shared_ptr< Solver > | 
| Public Member Functions | |
| double | GetTotalWallclockTime () | 
| Get the total wall clock time for the optimization, including function evaluations.  More... | |
| IpoptSolver (bool rethrow_non_ipopt_exceptions=false) | |
| void | SetOption (const std::string &name, const std::string &value) | 
| void | SetOption (const std::string &name, int value) | 
| void | SetOption (const std::string &name, double value) | 
| void | Solve (Problem &nlp) override | 
| Creates an IpoptAdapter and solves the NLP.  More... | |
| virtual | ~IpoptSolver ()=default | 
|  Public Member Functions inherited from ifopt::Solver | |
| int | GetReturnStatus () const | 
| Get the return status for the optimization.  More... | |
| virtual | ~Solver ()=default | 
| Private Attributes | |
| std::shared_ptr< Ipopt::IpoptApplication > | ipopt_app_ | 
| Additional Inherited Members | |
|  Protected Attributes inherited from ifopt::Solver | |
| int | status_ | 
An interface to IPOPT, fully hiding its implementation.
To set specific options, see: https://www.coin-or.org/Ipopt/documentation/node40.html
Definition at line 48 of file ipopt_solver.h.
| using ifopt::IpoptSolver::Ptr = std::shared_ptr<IpoptSolver> | 
Definition at line 50 of file ipopt_solver.h.
| ifopt::IpoptSolver::IpoptSolver | ( | bool | rethrow_non_ipopt_exceptions = false | ) | 
Definition at line 32 of file ipopt_solver.cc.
| 
 | virtualdefault | 
| double ifopt::IpoptSolver::GetTotalWallclockTime | ( | ) | 
Get the total wall clock time for the optimization, including function evaluations.
Definition at line 111 of file ipopt_solver.cc.
| void ifopt::IpoptSolver::SetOption | ( | const std::string & | name, | 
| const std::string & | value | ||
| ) | 
Set options for the IPOPT solver. A complete list can be found here: https://www.coin-or.org/Ipopt/documentation/node40.html
Definition at line 93 of file ipopt_solver.cc.
| void ifopt::IpoptSolver::SetOption | ( | const std::string & | name, | 
| int | value | ||
| ) | 
Definition at line 99 of file ipopt_solver.cc.
| void ifopt::IpoptSolver::SetOption | ( | const std::string & | name, | 
| double | value | ||
| ) | 
Definition at line 105 of file ipopt_solver.cc.
| 
 | overridevirtual | 
Creates an IpoptAdapter and solves the NLP.
| [in/out] | nlp The specific problem. | 
Implements ifopt::Solver.
Definition at line 67 of file ipopt_solver.cc.
| 
 | private | 
Definition at line 72 of file ipopt_solver.h.