Skip to content

Commit

Permalink
fix: name final actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mimizh2418 committed Dec 1, 2024
1 parent 462a998 commit 0b1dbb3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/solvers/linear/simplex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ SolverExitStatus solveTableau(MatrixXd& tableau, VectorX<Index>& basic_vars, Sol
}

profiler.startIteration();
FinalAction([&] { profiler.endIteration(); });
auto end_iter = FinalAction([&] { profiler.endIteration(); });

// Find pivot position
Index pivot_row, pivot_col;
Expand Down Expand Up @@ -213,7 +213,7 @@ SolverExitStatus solveSimplex(const LinearProblem& problem, Ref<VectorXd> soluti
const SolverExitStatus aux_exit = solveTableau(tableau, basic_vars, aux_profiler, config);
const bool is_feasible = isApprox<double>(tableau(tableau.rows() - 1, tableau.cols() - 1), 0);

FinalAction([&] {
auto print_diagnostics = FinalAction([&] {
if (!config.verbose) {
return;
}
Expand Down Expand Up @@ -266,7 +266,7 @@ SolverExitStatus solveSimplex(const LinearProblem& problem, Ref<VectorXd> soluti
const SolverExitStatus exit_status = solveTableau(tableau, basic_vars, profiler, config);

// TODO why is this here
FinalAction([&] {
auto print_diagnostics = FinalAction([&] {
if (!config.verbose) {
return;
}
Expand Down

0 comments on commit 0b1dbb3

Please sign in to comment.