-
I use In my use case, the branch name is not in order, something like this: lines
Dict{Int64, Line} with ... entries:
5 => Line(5, ...)
16 => Line(16,...)
12 => Line(12,...) Also, some lines are active, some are not. Some lines even has identical Using Thus, what is the best idea to "map" or rename the column names of DataFrame returned by |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
There are a lot of questions about what you are trying to do here. 1. Why are you calculating the Line flows with PowerModels? Which version of PowerSimulations are you using? Are you solving a Decision model or a simulation? I don't understand how are you getting those results when we call I don't know what kind of system you are running if "Some lines even has identical f_bus and t_bus." that seems to be a data issue. Please provide more details. |
Beta Was this translation helpful? Give feedback.
-
Hi @jd-lara, thanks for the reply.
Because Sienna didn't solve power flow in set_network_model!(
template_uc,
NetworkModel(
NFAPowerModel, # or DCMPPowerModel,
),
)
A decision model. problem = DecisionModel(template_uc, sys; optimizer=solver, horizon=hours)
build!(problem; output_dir=mktempdir())
solve!(problem)
Did you mean
This is what other engineer decided when he model transmission expansion planning (and providing data/result). Yes, I can merge multiple lines into one, but require pre-computation. And both |
Beta Was this translation helpful? Give feedback.
Sienna uses the same model as PowerModels inside of the DecisionModel, PowerModels uses the arcs to map the Line names and we keep that reporting mechanism. We need to update the code for the functions
add_pm_variable_refs!
to reflect the line name in the results instead of the arcs, if you volunteer to update that code we can improve that reporting as suggested.