#include <roboptim/core/plugin/ipopt/ipopt-common.hh>
Public Types | |
| enum | ConstraintType { LINEAR = 0, NONLINEAR = 1 } |
| Categorize constraints. More... | |
| typedef T | parent_t |
| Parent type. More... | |
| typedef T::callback_t | callback_t |
| typedef T::problem_t | problem_t |
| typedef problem_t::function_t | function_t |
| typedef problem_t::argument_t | argument_t |
Public Member Functions | |
| IpoptSolverCommon (const problem_t &pb, Ipopt::SmartPtr< Ipopt::TNLP > tnlp) | |
| Instantiate the solver from a problem. More... | |
| virtual | ~IpoptSolverCommon () |
| void | solve () |
| Solve the problem. More... | |
| virtual Ipopt::SmartPtr < Ipopt::IpoptApplication > | getIpoptApplication () |
| Get Ipopt Application object for Ipopt specific tuning. More... | |
| virtual void | setIterationCallback (callback_t callback) |
| const callback_t & | callback () const |
| const argument_t & | startingPoint () const |
| bool | userScaling () const |
| Whether user scaling is used. More... | |
Ipopt common solver.
This solver shares common piece of code of the two solvers.
| typedef problem_t::argument_t roboptim::IpoptSolverCommon< T >::argument_t |
| typedef T::callback_t roboptim::IpoptSolverCommon< T >::callback_t |
| typedef problem_t::function_t roboptim::IpoptSolverCommon< T >::function_t |
| typedef T roboptim::IpoptSolverCommon< T >::parent_t |
Parent type.
| typedef T::problem_t roboptim::IpoptSolverCommon< T >::problem_t |
| enum roboptim::IpoptSolverCommon::ConstraintType |
Categorize constraints.
Used with the which method of the Boost.Variant, it allows to check for a constraint's real type.
| Enumerator | |
|---|---|
| LINEAR |
Constraint is a linear function. |
| NONLINEAR |
Constraint is a differentiable or a twice differentiable function depending on the solve. |
|
explicit |
Instantiate the solver from a problem.
| pb | problem that will be solved. |
| tnlp | pointer to Ipopt solver. |
IPOPT_VERSION_MAJOR
|
virtual |
|
inline |
|
virtual |
|
inlinevirtual |
| void roboptim::IpoptSolverCommon< T >::solve | ( | ) |
Solve the problem.
References MAP_IPOPT_ERRORS, MAP_IPOPT_FATALS, MAP_IPOPT_OKS, SWITCH_ERROR, SWITCH_FATAL, and SWITCH_OK.
|
inline |
|
inline |
Whether user scaling is used.