Skip to content

Commit

Permalink
[issue1118] Fix method name in LP solver interface.
Browse files Browse the repository at this point in the history
Fix a copy-paste error in LPSolver::set_variable_upper_bound() that could lead to segfaults in the LP code.
  • Loading branch information
jendrikseipp authored Oct 4, 2023
1 parent 2053678 commit 6974655
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/search/lp/lp_solver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ void LPSolver::set_variable_lower_bound(int index, double bound) {
}

void LPSolver::set_variable_upper_bound(int index, double bound) {
pimpl->set_constraint_upper_bound(index, bound);
pimpl->set_variable_upper_bound(index, bound);
}

void LPSolver::set_mip_gap(double gap) {
Expand Down

0 comments on commit 6974655

Please sign in to comment.