Skip to content

Commit

Permalink
Update decomposition.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
NLaws committed Aug 10, 2024
1 parent 7402826 commit f361aea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/decomposition.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ function split_network(net::Network, bus::String)::Tuple{Network, Network}
net_below = make_sub_network(net, sub_edges, in_buses)
net_below.substation_bus = bus

# if there is a Load at bus we need to remove it from net_below (o.w. it's redundant)
if bus in load_busses(net_below)
delete!(net_below[bus], :Load)
end

return net_above, net_below
end

Expand Down

0 comments on commit f361aea

Please sign in to comment.