From 40b94f513b971efffa87cc83331c93a856f99961 Mon Sep 17 00:00:00 2001 From: AaronDC60 Date: Thu, 23 Apr 2026 20:40:36 +0200 Subject: [PATCH 1/2] Clear logE storage after search --- src/search/mcm_search/div_and_conq.cpp | 3 +++ src/search/mcm_search/greedy.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/search/mcm_search/div_and_conq.cpp b/src/search/mcm_search/div_and_conq.cpp index 361f987..9844da1 100644 --- a/src/search/mcm_search/div_and_conq.cpp +++ b/src/search/mcm_search/div_and_conq.cpp @@ -92,6 +92,9 @@ MCM MCMSearch::divide_and_conquer(Data& data, MCM* init_mcm, std::string file_na this->output_file.reset(); } + // Clear the storage of log-evidences + this->evidence_storage.clear(); + return this->mcm_out; } diff --git a/src/search/mcm_search/greedy.cpp b/src/search/mcm_search/greedy.cpp index a176b94..491b831 100644 --- a/src/search/mcm_search/greedy.cpp +++ b/src/search/mcm_search/greedy.cpp @@ -85,6 +85,9 @@ MCM MCMSearch::greedy_search(Data& data, MCM* init_mcm, std::string file_name){ this->output_file.reset(); } + // Clear the storage of log-evidences + this->evidence_storage.clear(); + return this->mcm_out; } From 569a22b2a8c8a4aa710c5358f7b2c6e18a90ed6e Mon Sep 17 00:00:00 2001 From: AaronDC60 Date: Thu, 23 Apr 2026 20:48:24 +0200 Subject: [PATCH 2/2] Also clear for SA --- src/search/mcm_search/annealing.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/search/mcm_search/annealing.cpp b/src/search/mcm_search/annealing.cpp index 26b669d..7ab7dd3 100644 --- a/src/search/mcm_search/annealing.cpp +++ b/src/search/mcm_search/annealing.cpp @@ -169,6 +169,9 @@ MCM MCMSearch::simulated_annealing(Data& data, MCM* init_mcm, std::string file_n *this->output_file << "\n"; this->output_file.reset(); } + + // Clear the storage of log-evidences + this->evidence_storage.clear(); return this->mcm_out; }