Skip to content

Commit

Permalink
Merge pull request #125 from cvanaret/fix_copy
Browse files Browse the repository at this point in the history
Fixed unwanted copy of DualResiduals
  • Loading branch information
cvanaret authored Dec 3, 2024
2 parents b5db871 + 34d9caa commit 9551706
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ namespace uno {
}

// possibly update the barrier parameter
const auto residuals = this->solving_feasibility_problem ? current_iterate.feasibility_residuals : current_iterate.residuals;
const auto& residuals = this->solving_feasibility_problem ? current_iterate.feasibility_residuals : current_iterate.residuals;
if (not this->first_feasibility_iteration) {
this->update_barrier_parameter(problem, current_iterate, current_multipliers, residuals);
}
Expand Down

0 comments on commit 9551706

Please sign in to comment.