Skip to content

Commit

Permalink
Move model to first argument
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed May 11, 2021
1 parent de06fbb commit 713ed7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Utilities/copy.jl
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ function IndexMap(n = 0)
)
end
function _identity_constraints_map(
index_map::MOIU.DoubleDicts.IndexWithType{F,S},
model,
index_map::MOIU.DoubleDicts.IndexWithType{F,S},
) where {F,S}
for ci in MOI.get(model, MOI.ListOfConstraintIndices{F,S}())
index_map[ci] = ci
Expand All @@ -84,7 +84,7 @@ function identity_index_map(model::MOI.ModelLike)
index_map[vi] = vi
end
for (F, S) in MOI.get(model, MOI.ListOfConstraints())
_identity_constraints_map(index_map.conmap[F, S], model)
_identity_constraints_map(model, index_map.conmap[F, S])
end
return index_map
end
Expand Down

0 comments on commit 713ed7c

Please sign in to comment.