Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[issue1119] Fix method names in SoPlex interface. #187

Merged
merged 2 commits into from
Oct 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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