Skip to content

Commit

Permalink
More statistics PANTR in alm-driver
Browse files Browse the repository at this point in the history
  • Loading branch information
tttapa committed Aug 25, 2023
1 parent 09fa5ad commit b3eecd1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/alpaqa/src/driver/alm-driver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,18 @@ SolverResults run_alm_solver(LoadedProblem &problem, Solver &solver,
if constexpr (requires { stats.inner.lbfgs_rejected; })
extra.emplace_back("lbfgs_rejected",
static_cast<index_t>(stats.inner.lbfgs_rejected));
if constexpr (requires { stats.inner.accelerated_step_rejected; })
extra.emplace_back(
"accelerated_step_rejected",
static_cast<index_t>(stats.inner.accelerated_step_rejected));
if constexpr (requires { stats.inner.direction_failures; })
extra.emplace_back(
"direction_failures",
static_cast<index_t>(stats.inner.direction_failures));
if constexpr (requires { stats.inner.direction_update_rejected; })
extra.emplace_back(
"direction_update_rejected",
static_cast<index_t>(stats.inner.direction_update_rejected));
return SolverResults{
.status = enum_name(stats.status),
.success = stats.status == alpaqa::SolverStatus::Converged,
Expand Down

0 comments on commit b3eecd1

Please sign in to comment.