From 96d7179f62bc10dfb1b2275661bb2d92df6b89ea Mon Sep 17 00:00:00 2001 From: Henri Lefebvre Date: Mon, 21 Oct 2024 11:04:56 +0200 Subject: [PATCH] use initial point when restarting --- .../mixed-integer-optimization/padm/Optimizers_PADM.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/src/optimizers/mixed-integer-optimization/padm/Optimizers_PADM.cpp b/lib/src/optimizers/mixed-integer-optimization/padm/Optimizers_PADM.cpp index e87cd3e0..6b0173eb 100644 --- a/lib/src/optimizers/mixed-integer-optimization/padm/Optimizers_PADM.cpp +++ b/lib/src/optimizers/mixed-integer-optimization/padm/Optimizers_PADM.cpp @@ -620,6 +620,10 @@ void idol::Optimizers::PADM::restart() { m_current_initial_penalty_parameter = 1. / m_initial_penalty_parameter; m_first_run = true; + for (unsigned int i = 0 ; i < m_formulation.n_sub_problems() ; ++i) { + m_last_solutions[i] = m_sub_problem_specs[i].initial_point(); + } + m_formulation.initialize_penalty_parameters(m_current_initial_penalty_parameter); ++m_n_restart;