Skip to content

Commit

Permalink
more info in log
Browse files Browse the repository at this point in the history
  • Loading branch information
Huangzizhou committed Nov 30, 2023
1 parent c9d8196 commit 04cf01e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/polysolve/nonlinear/Solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,13 +328,15 @@ namespace polysolve::nonlinear
// if we did enough lower strategy, we revert back to normal
if (m_descent_strategy != 0 && current_strategy_iter >= m_iter_per_strategy[m_descent_strategy])
{
const std::string prev_strategy_name = descent_strategy_name();

m_descent_strategy = 0;
for (auto &s : m_strategies)
s->reset(x.size());

m_logger.debug(
"[{}][{}] Enough lower strategy; reverting to {}",
name(), m_line_search->name(), descent_strategy_name());
"[{}][{}] {} was successful for {} iterations; attempting {}",
name(), m_line_search->name(), prev_strategy_name, current_strategy_iter, descent_strategy_name());
}

previous_strategy = m_descent_strategy;
Expand Down

0 comments on commit 04cf01e

Please sign in to comment.