-
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 identity_index_map and fix DoubleDict bug #1329
Conversation
@@ -417,7 +417,9 @@ end | |||
end | |||
|
|||
function initialize_inner!(d::AbstractWithType{F,S,V,D}) where {F,S,V,D} | |||
return d.inner = D() | |||
d.inner = D() | |||
d.dict.dict[(F, S)] = d.inner |
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.
Ah. I ran into this with the NL writer, but I assumed it was expected behavior.
index_map[ci] = ci | ||
end | ||
end | ||
function identity_index_map(model::MOI.ModelLike) |
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.
Why is this function needed?
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.
Is every solver going to need to do this?
https://github.com/jump-dev/Clp.jl/pull/111/files#diff-18c6af231f3facc5ba10dd45231da349efda22ecd8d68a4661dee8027bc413a7R302
If so, it needs a docstring and to be added to the documentation.
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.
Yes, I expect it to be used a lot. I can add docstring :)
b4b7511
to
5820e4f
Compare
Needed for jump-dev/Clp.jl#111