Drake
Drake C++ Documentation
Loading...
Searching...
No Matches
choose_best_solver.h File Reference
#include <memory>
#include <set>
#include <vector>
#include "drake/solvers/mathematical_program.h"
#include "drake/solvers/solver_id.h"
#include "drake/solvers/solver_interface.h"
Include dependency graph for choose_best_solver.h:
This graph shows which files directly or indirectly include this file:

Namespaces

namespace  drake
namespace  drake::solvers

Functions

SolverId ChooseBestSolver (const MathematicalProgram &prog)
 Choose the best solver given the formulation in the optimization program and the availability of the solvers.
const std::set< SolverId > & GetKnownSolvers ()
 Returns the set of solvers known to ChooseBestSolver.
std::unique_ptr< SolverInterfaceMakeSolver (const SolverId &id)
 Given the solver ID, create the solver with the matching ID.
std::unique_ptr< SolverInterfaceMakeFirstAvailableSolver (const std::vector< SolverId > &solver_ids)
 Makes the first available and enabled solver.
std::vector< SolverIdGetAvailableSolvers (ProgramType prog_type)
 Returns the list of available and enabled solvers that definitely accept all programs of the given program type.