Skip to content

Commit

Permalink
Update user_interface.jl (#383)
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Mar 21, 2021
1 parent c6951f1 commit 1fa91b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/user_interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1fa91b4

Please sign in to comment.