forked from RobotLocomotion/drake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathno_dreal.cc
40 lines (33 loc) · 1.08 KB
/
no_dreal.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
31
32
33
34
35
36
37
38
39
40
/* clang-format off to disable clang-format-includes */
#include "drake/solvers/dreal_solver.h"
/* clang-format on */
#include <stdexcept>
namespace drake {
namespace solvers {
std::optional<DrealSolver::IntervalBox> DrealSolver::CheckSatisfiability(
const symbolic::Formula&, double) {
throw std::runtime_error(
"The dReal bindings were not compiled. You'll need to use a different "
"solver.");
}
std::optional<DrealSolver::IntervalBox> DrealSolver::Minimize(
const symbolic::Expression&,
const symbolic::Formula&,
double,
DrealSolver::LocalOptimization) {
throw std::runtime_error(
"The dReal bindings were not compiled. You'll need to use a different "
"solver.");
}
bool DrealSolver::is_available() { return false; }
void DrealSolver::DoSolve(
const MathematicalProgram&,
const Eigen::VectorXd&,
const SolverOptions&,
MathematicalProgramResult*) const {
throw std::runtime_error(
"The dReal bindings were not compiled. You'll need to use a different "
"solver.");
}
} // namespace solvers
} // namespace drake