#include <drake/solvers/nlopt_solver.h>
Public Types | |
| using | Details = NloptSolverDetails |
| Type of details stored in MathematicalProgramResult. More... | |
Public Member Functions | |
| NloptSolver () | |
| ~NloptSolver () final | |
| MathematicalProgramResult | Solve (const MathematicalProgram &prog, const std::optional< Eigen::VectorXd > &initial_guess=std::nullopt, const std::optional< SolverOptions > &solver_options=std::nullopt) const |
| Like SolverInterface::Solve(), but the result is a return value instead of an output argument. More... | |
| void | Solve (const MathematicalProgram &, const std::optional< Eigen::VectorXd > &, const std::optional< SolverOptions > &, MathematicalProgramResult *) const override |
Does not allow copy, move, or assignment | |
| NloptSolver (const NloptSolver &)=delete | |
| NloptSolver & | operator= (const NloptSolver &)=delete |
| NloptSolver (NloptSolver &&)=delete | |
| NloptSolver & | operator= (NloptSolver &&)=delete |
Public Member Functions inherited from SolverBase | |
| ~SolverBase () override | |
| MathematicalProgramResult | Solve (const MathematicalProgram &prog, const std::optional< Eigen::VectorXd > &initial_guess=std::nullopt, const std::optional< SolverOptions > &solver_options=std::nullopt) const |
| Like SolverInterface::Solve(), but the result is a return value instead of an output argument. More... | |
| void | Solve (const MathematicalProgram &, const std::optional< Eigen::VectorXd > &, const std::optional< SolverOptions > &, MathematicalProgramResult *) const override |
| Solves an optimization program with optional initial guess and solver options. More... | |
| bool | available () const override |
| Returns true iff support for this solver has been compiled into Drake. More... | |
| bool | enabled () const override |
| Returns true iff this solver is properly configured for use at runtime. More... | |
| SolverId | solver_id () const final |
| Returns the identifier of this solver. More... | |
| bool | AreProgramAttributesSatisfied (const MathematicalProgram &) const override |
| Returns true iff the program's attributes are compatible with this solver's capabilities. More... | |
| std::string | ExplainUnsatisfiedProgramAttributes (const MathematicalProgram &) const override |
| Describes the reasons (if any) why the program is incompatible with this solver's capabilities. More... | |
| SolverBase (const SolverBase &)=delete | |
| SolverBase & | operator= (const SolverBase &)=delete |
| SolverBase (SolverBase &&)=delete | |
| SolverBase & | operator= (SolverBase &&)=delete |
Public Member Functions inherited from SolverInterface | |
| virtual | ~SolverInterface () |
| SolverInterface (const SolverInterface &)=delete | |
| SolverInterface & | operator= (const SolverInterface &)=delete |
| SolverInterface (SolverInterface &&)=delete | |
| SolverInterface & | operator= (SolverInterface &&)=delete |
Static Public Member Functions | |
| static std::string | ConstraintToleranceName () |
| The key name for the double-valued constraint tolerance. More... | |
| static std::string | XRelativeToleranceName () |
| The key name for double-valued x relative tolerance. More... | |
| static std::string | XAbsoluteToleranceName () |
| The key name for double-valued x absolute tolerance. More... | |
| static std::string | MaxEvalName () |
| The key name for int-valued maximum number of evaluations. More... | |
| static std::string | MaxTimeName () |
| The key name for the maximum runtime. More... | |
| static std::string | AlgorithmName () |
| The key name for the string-valued algorithm. More... | |
Static versions of the instance methods with similar names. | |
| static SolverId | id () |
| static bool | is_available () |
| static bool | is_enabled () |
| static bool | ProgramAttributesSatisfied (const MathematicalProgram &) |
Additional Inherited Members | |
Protected Member Functions inherited from SolverBase | |
| SolverBase (const SolverId &id, std::function< bool()> available, std::function< bool()> enabled, std::function< bool(const MathematicalProgram &)> are_satisfied, std::function< std::string(const MathematicalProgram &)> explain_unsatisfied=nullptr) | |
| Constructs a SolverBase with the given default implementations of the solver_id(), available(), enabled(), AreProgramAttributesSatisfied(), and ExplainUnsatisfiedProgramAttributes() methods. More... | |
| virtual void | DoSolve (const MathematicalProgram &prog, const Eigen::VectorXd &initial_guess, const SolverOptions &merged_options, MathematicalProgramResult *result) const |
| Hook for subclasses to implement Solve. More... | |
Protected Member Functions inherited from SolverInterface | |
| SolverInterface () | |
| using Details = NloptSolverDetails |
Type of details stored in MathematicalProgramResult.
|
delete |
|
delete |
| NloptSolver | ( | ) |
|
final |
|
static |
The key name for the string-valued algorithm.
|
static |
The key name for the double-valued constraint tolerance.
|
static |
|
static |
|
static |
|
static |
The key name for int-valued maximum number of evaluations.
|
static |
The key name for the maximum runtime.
By default, there is no maximum runtime. A nonpositive value will be interpreted as no maximum runtime.
|
delete |
|
delete |
|
static |
Like SolverInterface::Solve(), but the result is a return value instead of an output argument.
|
override |
|
static |
The key name for double-valued x absolute tolerance.
|
static |
The key name for double-valued x relative tolerance.