Skip to content

Commit

Permalink
remove an unnecessary if
Browse files Browse the repository at this point in the history
  • Loading branch information
levnach committed Nov 30, 2023
1 parent d540d88 commit 5784c2d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/math/lp/lp_primal_core_solver_tableau_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,13 @@ template <typename T, typename X> void lp_primal_core_solver<T, X>::advance_on_e
if (t < j_nz) {
j_nz = t;
entering_iter = non_basis_iter;
if (number_of_benefitial_columns_to_go_over)
number_of_benefitial_columns_to_go_over--;
number_of_benefitial_columns_to_go_over--;
n = 1;
}
else if (t == j_nz && this->m_settings.random_next(++n) == 0) {
entering_iter = non_basis_iter;
}
}// while (number_of_benefitial_columns_to_go_over && initial_offset_in_non_basis != offset_in_nb);
}
if (entering_iter == m_non_basis_list.end())
return -1;
unsigned entering = *entering_iter;
Expand Down

0 comments on commit 5784c2d

Please sign in to comment.