Skip to content

[breaking] remove operate(::typeof(sum) - #1400

Merged
odow merged 2 commits into
masterfrom
od/rm_sum
Jun 22, 2021
Merged

odow merged 2 commits into
masterfrom
od/rm_sum

Conversation

@odow

@odow odow commented Jun 20, 2021

Copy link
Copy Markdown
Member

I didn't run all the tests locally yet, so let's see what, if anything, this breaks.

Closes #1388

@odow

odow commented Jun 21, 2021

Copy link
Copy Markdown
Member Author

@blegat looks like you use it here:

f = MOIU.operate!(-, T, t, MOIU.operate(sum, T, l))

Should I replace? Or can we just leave the definition and close the issue.

@blegat

blegat commented Jun 21, 2021

Copy link
Copy Markdown
Member

We could rename it into something like sum_of_variables(::Type{T}, ::Vector{MOI.VariableIndex})

@odow

odow commented Jun 22, 2021

Copy link
Copy Markdown
Member Author

@blegat I just inlined the call.

@odow
odow merged commit 9cd076e into master Jun 22, 2021
@odow
odow deleted the od/rm_sum branch June 22, 2021 21:26
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.

sum with VariableIndex

2 participants