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

Address slow constraint creation with many variables on nodes #116

Merged
merged 1 commit into from
Aug 21, 2024

Conversation

jalving
Copy link
Member

@jalving jalving commented Aug 21, 2024

This PR fixes a bottleneck with adding constraints to optinodes. We were checking for variable ownership on nodes in a very inefficient way.

This PR also updates all_variables to properly use the MOI backend interface (as opposed to directly accessing backend attributes).

It also adds a test for adding constraints to nodes that use non-owned variables.

@jalving jalving merged commit c970324 into plasmo-dev:main Aug 21, 2024
5 checks passed
@jalving jalving deleted the jalving_performance branch January 19, 2025 02:20
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