Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed unwanted copy of DualResiduals #125

Merged
merged 1 commit into from
Dec 3, 2024
Merged

Fixed unwanted copy of DualResiduals #125

merged 1 commit into from
Dec 3, 2024

Conversation

cvanaret
Copy link
Owner

@cvanaret cvanaret commented Dec 3, 2024

Replaced

const auto residuals = this->solving_feasibility_problem ? current_iterate.feasibility_residuals : current_iterate.residuals;

with

const auto& residuals = this->solving_feasibility_problem ? current_iterate.feasibility_residuals : current_iterate.residuals;

in PrimalDualInteriorPointSubproblem, thus getting rid of an unwanted copy.

@cvanaret cvanaret merged commit 9551706 into main Dec 3, 2024
7 checks passed
@cvanaret cvanaret deleted the fix_copy branch December 3, 2024 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant