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

Updated dual(subgraph, linkconstraint) to call from correct subgraph #90

Merged
merged 2 commits into from
Oct 7, 2023

Conversation

dlcole3
Copy link
Collaborator

@dlcole3 dlcole3 commented Sep 26, 2023

This is meant to address #86 where dual(subgraph, linkconstraint) does not always use the subgraph graph id to get the dual value of a link constraint. Instead, it always calls the linkconstraint's last solution id.

@codecov-commenter
Copy link

Codecov Report

All modified lines are covered by tests ✅

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Files Coverage Δ
src/optiedge.jl 77.96% <ø> (-0.37%) ⬇️
src/optigraph.jl 76.38% <100.00%> (+0.06%) ⬆️

📢 Thoughts on this report? Let us know!.

@jalving
Copy link
Member

jalving commented Oct 7, 2023

Thanks for taking a look at this. Your fix to temporarily switch the last solution id technically works, but it is more correct to just grab the correct solution from the edge mapping (which unfortunately is not documented in any way).

@jalving jalving merged commit 51bb4c6 into plasmo-dev:main Oct 7, 2023
@jalving jalving mentioned this pull request Oct 8, 2023
@dlcole3 dlcole3 deleted the dc/fix_dual_call branch November 27, 2023 22:23
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.

3 participants