Data

Data Handling

Solution Handling

PowerModelsONM.apply_switch_solutions!Method
apply_switch_solutions!(network::Dict{String,<:Any}, optimal_switching_results::Dict{String,<:Any})::Dict{String,Any}

Updates a multinetwork network in-place with the results from optimal switching optimal_switching_results.

Used when not using the in-place version of optimize_switches!.

source
PowerModelsONM.apply_switch_solutionsMethod
apply_switch_solutions(network::Dict{String,<:Any}, optimal_switching_results::Dict{String,<:Any})::Dict{String,Any}

Creates a copy of the network with the solution copied in from optimal_switching_results.

source
PowerModelsONM.solution_blocks!Method
solution_blocks!(pm::AbstractUnbalancedPowerModel, sol::Dict{String,Any})

Adds block ids (as generated in the ref), and microgrid_ids to the solution

source
PowerModelsONM.solution_statuses!Method
solution_statuses!(pm::AbstractUnbalancedPowerModel, sol::Dict{String,Any})

Converts all status fields in a solution sol from Float64 to Status enum, for all time steps.

source