From 92852f64317cb79a7353c5e4905ef958b5f36b05 Mon Sep 17 00:00:00 2001 From: Stefan Vigerske Date: Mon, 25 Nov 2024 17:42:45 +0100 Subject: [PATCH 1/2] fix constructor initialization order --- src/mip/HighsPrimalHeuristics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mip/HighsPrimalHeuristics.cpp b/src/mip/HighsPrimalHeuristics.cpp index 5908f4373c..1c4aff5daf 100644 --- a/src/mip/HighsPrimalHeuristics.cpp +++ b/src/mip/HighsPrimalHeuristics.cpp @@ -37,10 +37,10 @@ HighsPrimalHeuristics::HighsPrimalHeuristics(HighsMipSolver& mipsolver) : mipsolver(mipsolver), - lp_iterations(0), total_repair_lp(0), total_repair_lp_feasible(0), total_repair_lp_iterations(0), + lp_iterations(0), randgen(mipsolver.options_mip_->random_seed) { successObservations = 0; numSuccessObservations = 0; From 9fe14972efda787a01fb862abb7c86f81fbaac19 Mon Sep 17 00:00:00 2001 From: Stefan Vigerske Date: Mon, 25 Nov 2024 17:44:06 +0100 Subject: [PATCH 2/2] fix missing prior declartion of public function - make function local --- src/mip/HighsMipSolverData.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mip/HighsMipSolverData.cpp b/src/mip/HighsMipSolverData.cpp index e84f9b5396..522804d18b 100644 --- a/src/mip/HighsMipSolverData.cpp +++ b/src/mip/HighsMipSolverData.cpp @@ -2501,7 +2501,8 @@ bool HighsMipSolverData::interruptFromCallbackWithData( return mipsolver.callback_->callbackAction(callback_type, message); } -double possInfRelDiff(const double v0, const double v1, const double den) { +static double possInfRelDiff(const double v0, const double v1, + const double den) { double rel_diff; if (std::fabs(v0) == kHighsInf) { if (std::fabs(v1) == kHighsInf) {