|
DART 6.12.2
|
class IpoptSolver More...
#include <IpoptSolver.hpp>
Public Member Functions | |
| IpoptSolver (const Solver::Properties &_properties=Solver::Properties()) | |
| Default constructor. | |
| IpoptSolver (std::shared_ptr< Problem > _problem) | |
| Alternative Constructor. | |
| virtual | ~IpoptSolver () |
| Destructor. | |
| bool | solve () override |
| Solve optimization problem. | |
| std::string | getType () const override |
| Get the type (implementation) of this Solver. | |
| std::shared_ptr< Solver > | clone () const override |
| Create an identical clone of this Solver. | |
| const Ipopt::SmartPtr< Ipopt::IpoptApplication > & | getApplication () |
| Get the application interface for this IpoptSolver. | |
| Ipopt::SmartPtr< const Ipopt::IpoptApplication > | getApplication () const |
| Get a const application interface for this IpoptSolver. | |
| void | setProperties (const Properties &_properties) |
| Set the generic Properties of this Solver. | |
| const Properties & | getSolverProperties () const |
| Get the generic Properties of this Solver. | |
| void | copy (const Solver &_otherSolver) |
| Copy the generic Properties of another Solver. | |
| virtual void | setProblem (std::shared_ptr< Problem > _newProblem) |
| Set the nonlinear optimization problem. | |
| std::shared_ptr< Problem > | getProblem () const |
| Get nonlinear optimization problem. | |
| virtual void | setTolerance (double _newTolerance) |
| Set the maximum step size allowed for the Problem to be considered converged. | |
| double | getTolerance () const |
| Get the maximum step size allowed for the Problem to be considered converged. | |
| virtual void | setNumMaxIterations (std::size_t _newMax) |
| Set the maximum number of iterations that the Solver should use. | |
| std::size_t | getNumMaxIterations () const |
| Get the maximum number of iterations that the Solver should use. | |
| virtual void | setIterationsPerPrint (std::size_t _newRatio) |
| Set the number of iterations that should pass between printing progress to the terminal. | |
| std::size_t | getIterationsPerPrint () const |
| Get the number of iterations that should pass between printing progress to the terminal. | |
| virtual void | setOutStream (std::ostream *_os) |
| Set the output stream that prints the Solver's progress. | |
| std::ostream * | getOutStream () const |
| Get the output stream that prints the Solver's progress. | |
| virtual void | setPrintFinalResult (bool _print) |
| Set to true if the final result should be printed to the terminal. | |
| bool | getPrintFinalResult () const |
| Returns true if the final result should be printed to the terminal. | |
| virtual void | setResultFileName (const std::string &_resultFile) |
| Set the name of the file that results should be printed to. | |
| const std::string & | getResultFileName () const |
| Get the name of the file that results should be printed to. | |
Protected Attributes | |
| Properties | mProperties |
Private Member Functions | |
| IpoptSolver (const Properties &_properties, const Ipopt::SmartPtr< Ipopt::IpoptApplication > &_app) | |
| Constructor used during cloning. | |
Private Attributes | |
| Ipopt::SmartPtr< Ipopt::TNLP > | mNlp |
| IPOPT nonlinear programming problem. | |
| Ipopt::SmartPtr< Ipopt::IpoptApplication > | mIpoptApp |
| Main application class for making calls to Ipopt. | |
class IpoptSolver
| dart::optimizer::IpoptSolver::IpoptSolver | ( | const Solver::Properties & | _properties = Solver::Properties() | ) |
Default constructor.
|
explicit |
Alternative Constructor.
|
virtual |
Destructor.
|
private |
Constructor used during cloning.
|
overridevirtual |
Create an identical clone of this Solver.
Implements dart::optimizer::Solver.
|
inherited |
Copy the generic Properties of another Solver.
| const Ipopt::SmartPtr< Ipopt::IpoptApplication > & dart::optimizer::IpoptSolver::getApplication | ( | ) |
Get the application interface for this IpoptSolver.
| Ipopt::SmartPtr< const Ipopt::IpoptApplication > dart::optimizer::IpoptSolver::getApplication | ( | ) | const |
Get a const application interface for this IpoptSolver.
|
inherited |
Get the number of iterations that should pass between printing progress to the terminal.
A value of 0 means there will be no printing.
|
inherited |
Get the maximum number of iterations that the Solver should use.
|
inherited |
Get the output stream that prints the Solver's progress.
|
inherited |
Returns true if the final result should be printed to the terminal.
|
inherited |
Get nonlinear optimization problem.
|
inherited |
Get the name of the file that results should be printed to.
An empty string indicates that results should not be printed to a file.
|
inherited |
Get the generic Properties of this Solver.
|
inherited |
Get the maximum step size allowed for the Problem to be considered converged.
|
overridevirtual |
Get the type (implementation) of this Solver.
Implements dart::optimizer::Solver.
|
virtualinherited |
Set the number of iterations that should pass between printing progress to the terminal.
Use 0 for no printing.
|
virtualinherited |
Set the maximum number of iterations that the Solver should use.
|
virtualinherited |
Set the output stream that prints the Solver's progress.
|
virtualinherited |
Set to true if the final result should be printed to the terminal.
|
virtualinherited |
Set the nonlinear optimization problem.
|
inherited |
Set the generic Properties of this Solver.
|
virtualinherited |
Set the name of the file that results should be printed to.
Use an empty string to indicate that results should not be printed to a file.
|
virtualinherited |
Set the maximum step size allowed for the Problem to be considered converged.
|
overridevirtual |
Solve optimization problem.
Implements dart::optimizer::Solver.
|
private |
Main application class for making calls to Ipopt.
|
private |
IPOPT nonlinear programming problem.
|
protectedinherited |