Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Oct 30, 2024
1 parent 38f940e commit c70d979
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Utilities/copy.jl
Original file line number Diff line number Diff line change
Expand Up @@ -513,8 +513,8 @@ function _add_variable_with_domain(
src,
index_map,
f,
ci::MOI.ConstraintIndex{MOI.VariableIndex,S},
) where {S<:MOI.AbstractScalarSet}
ci::MOI.ConstraintIndex{MOI.VariableIndex,<:MOI.AbstractScalarSet},
)
set = MOI.get(src, MOI.ConstraintSet(), ci)
dest_x, dest_ci = MOI.add_constrained_variable(dest, set)
index_map[only(f)] = dest_x
Expand All @@ -527,8 +527,8 @@ function _add_variable_with_domain(
src,
index_map,
f,
ci::MOI.ConstraintIndex{MOI.VectorOfVariables,S},
) where {S<:MOI.AbstractVectorSet}
ci::MOI.ConstraintIndex{MOI.VectorOfVariables,<:MOI.AbstractVectorSet},
)
set = MOI.get(src, MOI.ConstraintSet(), ci)
dest_x, dest_ci = MOI.add_constrained_variables(dest, set)
for (fi, xi) in zip(f, dest_x)
Expand Down

0 comments on commit c70d979

Please sign in to comment.