Skip to content

Commit

Permalink
use initial point when restarting
Browse files Browse the repository at this point in the history
  • Loading branch information
hlefebvr committed Oct 21, 2024
1 parent 71034c0 commit 96d7179
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 96d7179

Please sign in to comment.