Skip to content

Commit c5cabd3

Browse files
amontoisonblegat
andauthored
Update src/MOI_wrapper.jl
Co-authored-by: Benoît Legat <benoit.legat@gmail.com>
1 parent 31afbe0 commit c5cabd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MOI_wrapper.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ function MOI.copy_to(dest::Optimizer, src::MOI.ModelLike)
9494
end
9595
dest.nlp = nlp_model(src)
9696
dest.solver = dest.options["solver"](dest.nlp)
97-
return dest
97+
return MOI.Utilities.identity_index_map(src)
9898
end
9999

100100
function MOI.optimize!(model::Optimizer)

0 commit comments

Comments
 (0)