Skip to content

Commit

Permalink
Fix set_optimizer for models read from file (#654)
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Aug 24, 2023
1 parent 6ceaa4a commit 4585034
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/JuMP.jl
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ Broadcast.broadcastable(state::State{JuMP.VariableRef}) = Ref(state)
function JuMP.set_optimizer(model::SDDP.PolicyGraph, optimizer)
for node in values(model.nodes)
set_optimizer(node.subproblem, optimizer)
node.optimizer = optimizer
set_silent(node.subproblem)
end
return
Expand Down

0 comments on commit 4585034

Please sign in to comment.