forked from RobotLocomotion/drake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
no_scs.cc
30 lines (23 loc) · 855 Bytes
/
no_scs.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* clang-format off to disable clang-format-includes */
#include "drake/solvers/scs_solver.h"
/* clang-format on */
#include <stdexcept>
#include "drake/solvers/mathematical_program.h"
namespace drake {
namespace solvers {
bool ScsSolver::is_available() { return false; }
void ScsSolver::Solve(const MathematicalProgram&,
const optional<Eigen::VectorXd>&,
const optional<SolverOptions>&,
MathematicalProgramResult*) const {
throw std::runtime_error(
"The SCS bindings were not compiled. You'll need to use a different "
"solver.");
}
SolutionResult ScsSolver::Solve(MathematicalProgram&) const {
throw std::runtime_error(
"The SCS bindings were not compiled. You'll need to use a different "
"solver.");
}
} // namespace solvers
} // namespace drake