Skip to content

Commit

Permalink
Fix method names in SoPlex interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
jendrikseipp committed Oct 4, 2023
1 parent e0cf32b commit 79e8877
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/search/lp/soplex_solver_interface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ SoPlexSolverInterface::SoPlexSolverInterface() : SolverInterface() {
void SoPlexSolverInterface::load_problem(const LinearProgram &lp) {
for (const LPVariable &var : lp.get_variables()) {
if (var.is_integer) {
cout << "SoPlex does not support integer variables" << endl;
cerr << "SoPlex does not support integer variables" << endl;
utils::exit_with(utils::ExitCode::SEARCH_UNSUPPORTED);
}
}
Expand Down Expand Up @@ -105,18 +105,18 @@ void SoPlexSolverInterface::set_constraint_upper_bound(int index, double bound)
}

void SoPlexSolverInterface::set_variable_lower_bound(int index, double bound) {
soplex.changeUpperReal(index, bound);
soplex.changeLowerReal(index, bound);
}

void SoPlexSolverInterface::set_variable_upper_bound(int index, double bound) {
soplex.changeLowerReal(index, bound);
soplex.changeUpperReal(index, bound);
}

void SoPlexSolverInterface::set_mip_gap(double /*gap*/) {
/*
There is nothing to do here: Soplex doesn't accept MIPs, so setting a MIP
gap tolerance has no effect. We do not treat it as an error, so solvers
can be set up without cheking what problems they will eventually solve.
can be set up without checking what problems they will eventually solve.
Loading a problem with integer variables will lead to an error either way.
*/
}
Expand Down

0 comments on commit 79e8877

Please sign in to comment.