-
Notifications
You must be signed in to change notification settings - Fork 87
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
Add CleverDicts as submodule to MOI.Utilities #767
Conversation
Codecov Report
@@ Coverage Diff @@
## master #767 +/- ##
==========================================
+ Coverage 94.34% 94.39% +0.05%
==========================================
Files 57 58 +1
Lines 6242 6303 +61
==========================================
+ Hits 5889 5950 +61
Misses 353 353
Continue to review full report at Codecov.
|
return MathOptInterface.VariableIndex(index) | ||
end | ||
|
||
key_to_index(key::MathOptInterface.VariableIndex) = key.value |
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.
@blegat: I've implemented the methods to use CleverDict
with MOI.VariableIndex
since it would be type-piracy for solvers to implement the methods. Any ideas for better places to put them? Or is here okay?
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.
No this seams appropriate. We it would make even more sense if we add const CleverVariableDict{V} = CleverDict{MOI.VariableIndex, V}
Originally conceived and implemented here: jump-dev/Gurobi.jl#216