From 697465534dcc3703f02802ae52964635e7f5d7c4 Mon Sep 17 00:00:00 2001 From: Jendrik Seipp Date: Wed, 4 Oct 2023 09:25:30 +0200 Subject: [PATCH] [issue1118] Fix method name in LP solver interface. Fix a copy-paste error in LPSolver::set_variable_upper_bound() that could lead to segfaults in the LP code. --- src/search/lp/lp_solver.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search/lp/lp_solver.cc b/src/search/lp/lp_solver.cc index c0b9851638..08ac82b901 100644 --- a/src/search/lp/lp_solver.cc +++ b/src/search/lp/lp_solver.cc @@ -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) {