Skip to content

Conversation

odow
Copy link
Member

@odow odow commented May 12, 2021

Currently just a moving of the allocate-load functions + some documentation. I'll comment in-line about possible changes.

* [`Utilities.allocate_variables`](@ref)
* [`Utilities.allocate_constrained_variable`](@ref)
* [`Utilities.allocate_constrained_variables`](@ref)
* [`Utilities.allocate`](@ref)
Copy link
Member Author

@odow odow May 12, 2021

Choose a reason for hiding this comment

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

Should this be renamed allocate_attribute?

/`allocate`/`load_variables`/`load_constraint`/`load`.
That is, the allocate-load interface need to be used to copy an model to `model`.
"""
needs_allocate_load(::MOI.ModelLike) = false
Copy link
Member Author

Choose a reason for hiding this comment

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

I can't find this used anywhere. Is it safe to remove @blegat?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, there is a todo to remove it

@odow
Copy link
Member Author

odow commented May 12, 2021

Merging. I'll leave the changes for follow-up PRs.

@odow odow merged commit 514f499 into master May 12, 2021
@odow odow deleted the od/allocate-load branch May 12, 2021 04:17
@blegat blegat added this to the v0.10 milestone May 22, 2021
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.

2 participants