Drake
NloptSolver Class Reference

#include <drake/solvers/nlopt_solver.h>

Inheritance diagram for NloptSolver:
[legend]
Collaboration diagram for NloptSolver:
[legend]

Public Member Functions

 NloptSolver ()=default
 
 ~NloptSolver () override=default
 
bool available () const override
 Returns true iff this solver was enabled at compile-time. More...
 
SolutionResult Solve (MathematicalProgram &prog) const override
 Sets values for the decision variables on the given MathematicalProgram prog, or: More...
 
SolverId solver_id () const override
 Returns the identifier of this solver. More...
 
Does not allow copy, move, or assignment
 NloptSolver (const NloptSolver &)=delete
 
NloptSolveroperator= (const NloptSolver &)=delete
 
 NloptSolver (NloptSolver &&)=delete
 
NloptSolveroperator= (NloptSolver &&)=delete
 
- Public Member Functions inherited from MathematicalProgramSolverInterface
 MathematicalProgramSolverInterface ()=default
 
virtual ~MathematicalProgramSolverInterface ()=default
 
 MathematicalProgramSolverInterface (const MathematicalProgramSolverInterface &)=delete
 
MathematicalProgramSolverInterfaceoperator= (const MathematicalProgramSolverInterface &)=delete
 
 MathematicalProgramSolverInterface (MathematicalProgramSolverInterface &&)=delete
 
MathematicalProgramSolverInterfaceoperator= (MathematicalProgramSolverInterface &&)=delete
 

Static Public Member Functions

static SolverId id ()
 

Constructor & Destructor Documentation

NloptSolver ( const NloptSolver )
delete
NloptSolver ( NloptSolver &&  )
delete
NloptSolver ( )
default
~NloptSolver ( )
overridedefault

Member Function Documentation

bool available ( ) const
overridevirtual

Returns true iff this solver was enabled at compile-time.

Implements MathematicalProgramSolverInterface.

SolverId id ( )
static
Returns
same as MathematicalProgramSolverInterface::solver_id()

Here is the call graph for this function:

Here is the caller graph for this function:

NloptSolver& operator= ( NloptSolver &&  )
delete
NloptSolver& operator= ( const NloptSolver )
delete
SolutionResult Solve ( MathematicalProgram prog) const
overridevirtual

Sets values for the decision variables on the given MathematicalProgram prog, or:

  • If no solver is available, throws std::runtime_error
  • If the solver returns an error, returns a nonzero SolutionResult.

Implements MathematicalProgramSolverInterface.

Here is the call graph for this function:

SolverId solver_id ( ) const
overridevirtual

Returns the identifier of this solver.

Implements MathematicalProgramSolverInterface.

Here is the call graph for this function:


The documentation for this class was generated from the following files: