forked from pz4kybsvg/Conception
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
767 B
30 lines
767 B
2 years ago
|
/* clang-format off to disable clang-format-includes */
|
||
|
#include "drake/solvers/snopt_solver.h"
|
||
|
/* clang-format on */
|
||
|
|
||
|
#include <stdexcept>
|
||
|
|
||
|
namespace drake {
|
||
|
namespace solvers {
|
||
|
|
||
|
bool SnoptSolver::is_available() {
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
void SnoptSolver::DoSolve(const MathematicalProgram&, const Eigen::VectorXd&,
|
||
|
const SolverOptions&,
|
||
|
MathematicalProgramResult*) const {
|
||
|
throw std::runtime_error(
|
||
|
"The SNOPT bindings were not compiled. You'll need to use a different "
|
||
|
"solver.");
|
||
|
}
|
||
|
|
||
|
bool SnoptSolver::is_bounded_lp_broken() {
|
||
|
throw std::runtime_error(
|
||
|
"The SNOPT bindings were not compiled. You'll need to use a different "
|
||
|
"solver.");
|
||
|
}
|
||
|
|
||
|
} // namespace solvers
|
||
|
} // namespace drake
|