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

Update to MatrixOfConstraints #189

Merged
merged 8 commits into from
Mar 2, 2022
Merged

Update to MatrixOfConstraints #189

merged 8 commits into from
Mar 2, 2022

Conversation

odow
Copy link
Member

@odow odow commented Mar 2, 2022

  • Still have a couple of failing SOS tests to sort out
  • Fix VariablePrimalStart

@codecov
Copy link

codecov bot commented Mar 2, 2022

Codecov Report

Merging #189 (55afe91) into master (b2cd21f) will decrease coverage by 3.97%.
The diff coverage is 98.92%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #189      +/-   ##
==========================================
- Coverage   61.61%   57.64%   -3.98%     
==========================================
  Files           3        3              
  Lines         581      510      -71     
==========================================
- Hits          358      294      -64     
+ Misses        223      216       -7     
Impacted Files Coverage Δ
src/MOI_wrapper/MOI_wrapper.jl 86.39% <98.92%> (-0.78%) ⬇️
src/gen/libcbc_api.jl 22.80% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b2cd21f...55afe91. Read the comment docs.

@odow odow changed the title WIP: update to MatrixOfConstraints Update to MatrixOfConstraints Mar 2, 2022
@odow odow requested a review from blegat March 2, 2022 03:40
@odow
Copy link
Member Author

odow commented Mar 2, 2022

@blegat was this what you had in mind?

@blegat
Copy link
Member

blegat commented Mar 2, 2022

@blegat was this what you had in mind?

Yes! I'm just wondering whether it's possible to save the creation of some index maps.
Given that MatrixOfConsraints does not support variable and constraint deletion, its variable and constraint indices are usually the same as those of the solvers so the index map is the identity. This saves the creation of one index map (it could save 2 if MOI.Utilities.identity_index_map returns a special struct that does not allocate anything and just returns performs identity mapping without storing any dict, that's a future improvement we could do that would automatically benefit all MatrixOfConstraints solvers)

@odow
Copy link
Member Author

odow commented Mar 2, 2022

@blegat good to go?

@odow
Copy link
Member Author

odow commented Mar 2, 2022

I'm going to assume yes, but I'll hold off tagging just yet.

@odow odow merged commit d06d1eb into master Mar 2, 2022
@odow odow deleted the od/matrix-of-constraints branch March 2, 2022 22:55
@blegat
Copy link
Member

blegat commented Mar 2, 2022

Yes, you can tag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants