Skip to content

Commit

Permalink
solvers: Resolve link error when SCS is disabled (RobotLocomotion#10131)
Browse files Browse the repository at this point in the history
This amends 1c3cd94 to provide the
const-Solve method even when SCS is disabled.
  • Loading branch information
jwnimmer-tri authored Dec 3, 2018
1 parent 828130a commit 9482368
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions solvers/no_scs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ 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 "
Expand Down

0 comments on commit 9482368

Please sign in to comment.