forked from RobotLocomotion/drake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathno_mosek.cc
41 lines (31 loc) · 1.06 KB
/
no_mosek.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
41
/* clang-format off to disable clang-format-includes */
#include "drake/solvers/mosek_solver.h"
/* clang-format on */
#include <stdexcept>
#include "drake/common/drake_assert.h"
using std::runtime_error;
using std::shared_ptr;
namespace drake {
namespace solvers {
shared_ptr<MosekSolver::License> MosekSolver::AcquireLicense() {
return shared_ptr<MosekSolver::License>();
}
bool MosekSolver::is_available() { return false; }
SolutionResult MosekSolver::Solve(MathematicalProgram&) const {
throw runtime_error(
"Mosek is not installed in your build. You'll need to use a different "
"solver.");
}
MathematicalProgramResult MosekSolver::Solve(const MathematicalProgram&) const {
throw runtime_error(
"Mosek is not installed in your build. You'll need to use a different "
"solver.");
}
MathematicalProgramResult MosekSolver::SolveConstProg(
const MathematicalProgram&) const {
throw runtime_error(
"Mosek is not installed in your build. You'll need to use a different "
"solver.");
}
} // namespace solvers
} // namespace drake