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

Add CleverDicts as submodule to MOI.Utilities #767

Merged
merged 8 commits into from
Jun 18, 2019
Merged

Add CleverDicts as submodule to MOI.Utilities #767

merged 8 commits into from
Jun 18, 2019

Conversation

odow
Copy link
Member

@odow odow commented Jun 14, 2019

Originally conceived and implemented here: jump-dev/Gurobi.jl#216

@codecov-io
Copy link

codecov-io commented Jun 14, 2019

Codecov Report

Merging #767 into master will increase coverage by 0.05%.
The diff coverage is 100%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
src/Utilities/Utilities.jl 100% <ø> (ø) ⬆️
src/Utilities/CleverDicts.jl 100% <100%> (ø)

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 23a06a7...f5285e0. Read the comment docs.

src/Utilities/CleverDicts.jl Outdated Show resolved Hide resolved
src/Utilities/CleverDicts.jl Outdated Show resolved Hide resolved
src/Utilities/CleverDicts.jl Outdated Show resolved Hide resolved
src/Utilities/CleverDicts.jl Show resolved Hide resolved
return MathOptInterface.VariableIndex(index)
end

key_to_index(key::MathOptInterface.VariableIndex) = key.value
Copy link
Member Author

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?

Copy link
Member

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}

@odow odow added this to the v0.9 milestone Jun 17, 2019
@odow odow merged commit c7a3152 into master Jun 18, 2019
@odow odow deleted the od/cleverdict branch June 18, 2019 01:02
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.

4 participants