Skip to content

Commit

Permalink
add wrapper for power flow data
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-lara committed Jan 24, 2024
1 parent 7a2555a commit d95ef9e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/PowerSimulations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@ include("core/results_by_time.jl")

# Order Required
include("operation/problem_template.jl")
include("core/powerflow_data_wrapper.jl")
include("core/optimization_container.jl")
include("core/store_common.jl")
include("initial_conditions/initial_condition_chronologies.jl")
Expand Down
2 changes: 1 addition & 1 deletion src/core/optimization_container.jl
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ mutable struct OptimizationContainer <: AbstractModelContainer
built_for_recurrent_solves::Bool
metadata::OptimizationContainerMetadata
default_time_series_type::Type{<:PSY.TimeSeriesData}
power_flow_data::Union{PFS.PowerFlowData, Nothing}
power_flow_data::Union{<:PowerFlowEvaluationData, Nothing}
end

function OptimizationContainer(
Expand Down
4 changes: 4 additions & 0 deletions src/core/powerflow_data_wrapper.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
mutable struct PowerFlowEvaluationData{T <: PFS.PowerFlowData}
power_flow_data::T
injection_key_map::Dict{<:OptimizationContainerKey, Dict{String, Int}}
end

0 comments on commit d95ef9e

Please sign in to comment.