diff --git a/src/user_interface.jl b/src/user_interface.jl index 7c139ea4f..ce37f3287 100644 --- a/src/user_interface.jl +++ b/src/user_interface.jl @@ -470,7 +470,7 @@ end # Work around different JuMP modes (Automatic / Manual / Direct). function construct_subproblem(optimizer_factory, direct_mode::Bool) if direct_mode - return JuMP.direct_model(optimizer_factory()) + return JuMP.direct_model(MOI.instantiate(optimizer_factory)) else return JuMP.Model() # optimizer_factory) end