edisgo.tools.preprocess_pypsa_opf_structure
¶
Module Contents¶
Functions¶
|
Prepares pypsa network for OPF problem. |
|
Aggregates fluctuating generators of same type at the same node. |
- edisgo.tools.preprocess_pypsa_opf_structure.preprocess_pypsa_opf_structure(edisgo_grid, psa_network, hvmv_trafo=False)[source]¶
Prepares pypsa network for OPF problem.
adds line costs
adds HV side of HV/MV transformer to network
moves slack to HV side of HV/MV transformer
- Parameters
edisgo_grid (
EDisGo
) –psa_network (pypsa.Network) –
hvmv_trafo (
Boolean
) – If True, HV side of HV/MV transformer is added to buses and Slack generator is moved to HV side.
- edisgo.tools.preprocess_pypsa_opf_structure.aggregate_fluct_generators(psa_network)[source]¶
Aggregates fluctuating generators of same type at the same node.
Iterates over all generator buses. If multiple fluctuating generators are attached, they are aggregated by type.
- Parameters
psa_network (pypsa.Network) –