-
Notifications
You must be signed in to change notification settings - Fork 15
Refactoring into submodules #219
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
Conversation
|
Why introduce submodules? Overall I find it to quickly complicate both internal and external development, I know this is common in MOI but DiffOpt is small enough to contain everything |
|
We have this structure where for QP and CP, we have a Could you elaborate on why it makes things complicated ? I agree that it makes it complicated if these things are not independent but in this case, they are quite independent. We want to have a clean interface that someone can implement to add new |
Codecov Report
@@ Coverage Diff @@
## master #219 +/- ##
==========================================
- Coverage 91.21% 85.79% -5.42%
==========================================
Files 8 11 +3
Lines 842 880 +38
==========================================
- Hits 768 755 -13
- Misses 74 125 +51
Continue to review full report at Codecov.
|
|
Major hassle with submodules is the |
|
Yes, since the inclusion in the modules shorten the names, the name of the modules + name of the object does not increase too much in length |
| S <: SUPPORTED_VECTOR_SETS, | ||
| } | ||
| model::Optimizer, ::Type{F}, ::Type{S}, | ||
| ) where {F<:MOI.AbstractFunction,S<:MOI.AbstractSet} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we might need to check both optimizer and the underlying diff_models
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ping @blegat ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather add special cases for the attributes that are used with the DiffOpt.AbstractModel, that's what I just did in the last commit
|
@blegat can you check the two comments above, then good to go |
|
bump |
|
@blegat good to go I think? We should tag a breaking release right after |
The MOI wrapper wasn't yet aligned with the fact that we now have bridges in top of the DiffOpt models.
Closed #220