Skip to content

Commit

Permalink
Use const reference
Browse files Browse the repository at this point in the history
  • Loading branch information
fwesselm committed Dec 13, 2024
1 parent 66c256c commit 5b295cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/simplex/HEkkDualRow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ void HEkkDualRow::createFreemove(HVector* row_ep) {
: ekk_instance_.info_.update_count < 20 ? 3e-8
: 1e-6;
HighsInt move_out = workDelta < 0 ? -1 : 1;
for (HighsInt iVar : freeList) {
for (const HighsInt& iVar : freeList) {
assert(iVar < ekk_instance_.lp_.num_col_ + ekk_instance_.lp_.num_row_);
double alpha = ekk_instance_.lp_.a_matrix_.computeDot(*row_ep, iVar);
if (fabs(alpha) > Ta) {
Expand All @@ -601,7 +601,7 @@ void HEkkDualRow::createFreemove(HVector* row_ep) {
}
void HEkkDualRow::deleteFreemove() {
if (!freeList.empty()) {
for (HighsInt iVar : freeList) {
for (const HighsInt& iVar : freeList) {
assert(iVar < ekk_instance_.lp_.num_col_ + ekk_instance_.lp_.num_row_);
ekk_instance_.basis_.nonbasicMove_[iVar] = 0;
}
Expand Down

0 comments on commit 5b295cc

Please sign in to comment.