-
Notifications
You must be signed in to change notification settings - Fork 42
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
MOI tests: LP unit tests and contlinear tests #571
Conversation
Codecov Report
@@ Coverage Diff @@
## master #571 +/- ##
==========================================
+ Coverage 86.39% 86.87% +0.48%
==========================================
Files 47 47
Lines 4718 4725 +7
==========================================
+ Hits 4076 4105 +29
+ Misses 642 620 -22
Continue to review full report at Codecov.
|
@@ -302,6 +301,8 @@ function MOI.get( | |||
orig_form = get_original_formulation(model.inner) | |||
constrid = getid(model.constrs[index]) | |||
terms = MOI.ScalarAffineTerm{Float64}[] | |||
coefmatrix = getcoefmatrix(orig_form) | |||
coefmatrix.fillmode && closefillmode!(coefmatrix) |
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.
For what test did you have to do that (is it a test that does set get set) ?
If you close the fill mode, then writing operations become time consuming. Do you think we should we be able to reopen the fill mode ?
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.
Tests "linear1" and "linear6" threw this error:
Expression: MOI.get(model, MOI.ConstraintFunction(), c1) ≈ fx
View of a row not available in fill mode (Open an issue at https://github.com/atoptima/DynamicSparseArrays.jl if you need it).
I don't know if there's a better fix to that and I don't understand fully how fill mode works yet, but being able to reopen the fill mode seems like a good option.
No description provided.