Skip to content

Use the new API to access nodes and adjacency matrix#147

Closed
blegat wants to merge 2 commits into
PSORLab:masterfrom
blegat:nodes_adj
Closed

Use the new API to access nodes and adjacency matrix#147
blegat wants to merge 2 commits into
PSORLab:masterfrom
blegat:nodes_adj

Conversation

@blegat
Copy link
Copy Markdown
Contributor

@blegat blegat commented May 9, 2025

We noticed that we broke EAGO when changing internal fields in
jump-dev/MathOptInterface.jl#2747
Ideally, EAGO shouldn't access internal fields are they are not guaranteed to not change so jump-dev/MathOptInterface.jl#2750 adds a public API allowing EAGO to be refactored as done in this PR to stop using internal fields.
You might also be able to refactor further to avoid using _FunctionStorage and _SubexpressionStorage in the type signatures.

Requires

@blegat blegat force-pushed the nodes_adj branch 2 times, most recently from 822ff51 to 06be9fd Compare May 9, 2025 12:37
@RXGottlieb
Copy link
Copy Markdown
Member

Looks good to me, thanks for the PR---we'll probably want to do the refactor you mentioned down the line, but this should fix the problem for now.

@odow
Copy link
Copy Markdown
Contributor

odow commented May 10, 2025

I don't agree with this PR, and it currently requires an unreleased branch of MOI. Can we convert this PR to a draft?

@blegat blegat marked this pull request as draft May 10, 2025 08:52
@blegat
Copy link
Copy Markdown
Contributor Author

blegat commented May 10, 2025

Sure, it's more appropriate as a draft. It's more of a POC that EAGO continues to work if we merge jump-dev/MathOptInterface.jl#2750

@odow
Copy link
Copy Markdown
Contributor

odow commented May 10, 2025

This can be closed. We're not going to break EAGO for the sake of refactoring the innards of MOI.

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.

4 participants