Skip to content

Commit

Permalink
[issue1119] Fix method names in SoPlex interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
jendrikseipp authored Oct 6, 2023
1 parent 64070d0 commit 8fe7ad9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 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
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 8fe7ad9

Please sign in to comment.