Drake
Drake C++ Documentation
solve.h File Reference
#include <optional>
#include <string>
#include <vector>
#include "drake/common/parallelism.h"
#include "drake/solvers/mathematical_program.h"
#include "drake/solvers/mathematical_program_result.h"
#include "drake/solvers/solver_base.h"
Include dependency graph for solve.h:

Namespaces

 drake
 
 drake::solvers
 

Functions

MathematicalProgramResult Solve (const MathematicalProgram &prog, const std::optional< Eigen::VectorXd > &initial_guess, const std::optional< SolverOptions > &solver_options)
 Solves an optimization program, with optional initial guess and solver options. More...
 
MathematicalProgramResult Solve (const MathematicalProgram &prog, const Eigen::Ref< const Eigen::VectorXd > &initial_guess)
 Solves an optimization program with a given initial guess. More...
 
MathematicalProgramResult Solve (const MathematicalProgram &prog)
 
std::vector< MathematicalProgramResult > SolveInParallel (const std::vector< const MathematicalProgram * > &progs, const std::vector< const Eigen::VectorXd * > *initial_guesses, const std::vector< const SolverOptions * > *solver_options, const std::vector< std::optional< SolverId >> *solver_ids, Parallelism parallelism=Parallelism::Max(), bool dynamic_schedule=false)
 Solves progs[i] into result[i], optionally using initial_guess[i] and solver_options[i] if given, by invoking the solver at solver_ids[i] if provided. More...
 
std::vector< MathematicalProgramResult > SolveInParallel (const std::vector< const MathematicalProgram * > &progs, const std::vector< const Eigen::VectorXd * > *initial_guesses=nullptr, const SolverOptions *solver_options=nullptr, const std::optional< SolverId > &solver_id=std::nullopt, Parallelism parallelism=Parallelism::Max(), bool dynamic_schedule=false)
 Provides the same functionality as SolveInParallel, but allows for specifying a single solver id and solver option that is used when solving all programs. More...