Skip to content

Commit

Permalink
Concrete optimizer type in CachingOptimizer
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Mar 9, 2021
1 parent 54c8b58 commit ce5b95d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/optimizer_interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,14 @@ function set_optimizer(model::Model, optimizer_constructor;
else
optimizer = MOI.instantiate(optimizer_constructor)
end
MOIU.reset_optimizer(model, optimizer)
model.moi_backend = MOIU.CachingOptimizer(
model.moi_backend.model_cache,
optimizer,
MOIU.EMPTY_OPTIMIZER,
MOIU.AUTOMATIC,
MOIU.IndexMap(),
MOIU.IndexMap(),
)
end

# Deprecation for JuMP v0.18 -> JuMP v0.19 transition
Expand Down

0 comments on commit ce5b95d

Please sign in to comment.