Skip to content

Improve documentation of IndexMap #1530

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

Merged
merged 3 commits into from
Aug 13, 2021
Merged

Improve documentation of IndexMap #1530

merged 3 commits into from
Aug 13, 2021

Conversation

odow
Copy link
Member

@odow odow commented Aug 12, 2021

Closes #1527

Just a look at what this would look like.

@odow odow added breaking Submodule: Utilities About the Utilities submodule labels Aug 12, 2021
@odow
Copy link
Member Author

odow commented Aug 12, 2021

I guess if I'd tried this locally I would have found the problem.

We have a bootstrap issue: IndexMap needs Utilities.DoubleDicts, but Utilities needs IndexMap. this was why it was in MOI.Utilities in the first place.

I may just add a const IndexMap = Utilities.IndexMap to the bottom of MOI.

@odow odow changed the title WIP: Move IndexMap to MOI proper Improve documentation of IndexMap Aug 13, 2021
@odow odow removed the breaking label Aug 13, 2021
@odow odow requested a review from blegat August 13, 2021 03:26
dest::ModelLike,
src::ModelLike;
copy_names::Bool = true,
warn_attributes::Bool = true,
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 do we really use this warn_attributes thing? Perhaps we should just remove? We don't really copy optimizer attributes.

Copy link
Member

@blegat blegat Aug 13, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should remove in MOI v0.10. It was left for when we implement copy of optimizer attributes but since CachingOptimizer don't use copy_to for that, I don't thing we will copy optimizer attributes in copy_to.

copy_to(
dest::ModelLike,
src::ModelLike;
copy_names::Bool = true,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remind me why we need copy_names? Why can't we just try by default, and skip if they aren't supported?

Copy link
Member

@blegat blegat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's address warn_attributes and copy_names in separate issues/PRs

@odow odow merged commit b933423 into master Aug 13, 2021
@odow odow deleted the od/indexmap branch August 13, 2021 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Submodule: Utilities About the Utilities submodule
Development

Successfully merging this pull request may close these issues.

Should IndexMap be in MOI
2 participants