Drake
nlopt_solver.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 
7 
8 namespace drake {
9 namespace solvers {
10 
12  public:
14 
15  NloptSolver() = default;
16  ~NloptSolver() override = default;
17 
18  // This solver is implemented in various pieces depending on if
19  // NLOpt was available during compilation.
20  bool available() const override;
21 
23 
24  SolverId solver_id() const override;
25 
26  /// @return same as MathematicalProgramSolverInterface::solver_id()
27  static SolverId id();
28 };
29 
30 } // namespace solvers
31 } // namespace drake
bool available() const override
Returns true iff this solver was enabled at compile-time.
Definition: nlopt_solver.cc:299
Definition: automotive_demo.cc:88
SolutionResult Solve(MathematicalProgram &prog) const override
Sets values for the decision variables on the given MathematicalProgram prog, or: ...
Definition: nlopt_solver.cc:301
Definition: nlopt_solver.h:11
~NloptSolver() override=default
MathematicalProgram * prog
Definition: gurobi_solver.cc:41
static SolverId id()
Definition: nlopt_solver_common.cc:14
SolutionResult
Definition: mathematical_program_solver_interface.h:13
SolverId solver_id() const override
Returns the identifier of this solver.
Definition: nlopt_solver_common.cc:10
Interface used by implementations of individual solvers.
Definition: mathematical_program_solver_interface.h:24
Definition: mathematical_program.h:287
#define DRAKE_NO_COPY_NO_MOVE_NO_ASSIGN(Classname)
DRAKE_NO_COPY_NO_MOVE_NO_ASSIGN deletes the special member functions for copy-construction, copy-assignment, move-construction, and move-assignment.
Definition: drake_copyable.h:33
Identifies a MathematicalProgramSolverInterface implementation.
Definition: solver_id.h:17
Provides careful macros to selectively enable or disable the special member functions for copy-constr...