Skip to content

Commit

Permalink
updates to the container
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-lara committed Jan 2, 2024
1 parent b8f9629 commit 2deda19
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/core/optimization_container.jl
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ function _make_system_expressions!(
subnetworks::Dict{Int, Set{Int}},
dc_bus_numbers::Vector{Int},
::Type{<:PM.AbstractPowerModel},
bus_reduction_map::Dict{Int64, Set{Int64}}
bus_reduction_map::Dict{Int64, Set{Int64}},
)
time_steps = get_time_steps(container)
if isempty(bus_reduction_map)
Expand All @@ -455,7 +455,7 @@ function _make_system_expressions!(
subnetworks::Dict{Int, Set{Int}},
dc_bus_numbers::Vector{Int},
::Type{<:PM.AbstractActivePowerModel},
bus_reduction_map::Dict{Int64, Set{Int64}}
bus_reduction_map::Dict{Int64, Set{Int64}},
)
time_steps = get_time_steps(container)
if isempty(bus_reduction_map)
Expand All @@ -477,7 +477,7 @@ function _make_system_expressions!(
subnetworks::Dict{Int, Set{Int}},
::Vector{Int},
::Type{CopperPlatePowerModel},
bus_reduction_map::Dict{Int64, Set{Int64}}
bus_reduction_map::Dict{Int64, Set{Int64}},
)
time_steps = get_time_steps(container)
subnetworks_ref_buses = collect(keys(subnetworks))
Expand All @@ -493,7 +493,7 @@ function _make_system_expressions!(
subnetworks::Dict{Int, Set{Int}},
dc_bus_numbers::Vector{Int},
::Type{T},
bus_reduction_map::Dict{Int64, Set{Int64}}
bus_reduction_map::Dict{Int64, Set{Int64}},
) where {T <: Union{PTDFPowerModel, StandardPTDFModel}}
time_steps = get_time_steps(container)
if isempty(bus_reduction_map)
Expand All @@ -518,7 +518,7 @@ function initialize_system_expressions!(
::Type{T},
subnetworks::Dict{Int, Set{Int}},
system::PSY.System,
bus_reduction_map::Dict{Int64, Set{Int64}}
bus_reduction_map::Dict{Int64, Set{Int64}},
) where {T <: PM.AbstractPowerModel}
dc_bus_numbers = [PSY.get_number(b) for b in PSY.get_components(PSY.DCBus, system)]
_make_system_expressions!(container, subnetworks, dc_bus_numbers, T, bus_reduction_map)
Expand Down

0 comments on commit 2deda19

Please sign in to comment.