Skip to content

Commit

Permalink
Revert "Add option for negative load shedding at e-Mobility buses"
Browse files Browse the repository at this point in the history
This reverts commit 0f4e7ab.
  • Loading branch information
CarlosEpia committed Nov 13, 2024
1 parent e23e136 commit ec51267
Showing 1 changed file with 1 addition and 31 deletions.
32 changes: 1 addition & 31 deletions etrago/tools/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -623,12 +623,7 @@ def connected_transformer(network, busids):
return network.transformers[mask]


def load_shedding(
self,
temporal_disaggregation=False,
negative_load_shedding_ev=False,
**kwargs,
):
def load_shedding(self, temporal_disaggregation=False, **kwargs):
"""Implement load shedding in existing network to identify
feasibility problems
Expand Down Expand Up @@ -687,31 +682,6 @@ def load_shedding(
"Generator",
)

if negative_load_shedding_ev:
# Add negative load shedding generators for e-Mobility buses
ev_buses = network.buses[network.buses.carrier == "Li_ion"].index
index_ev = list(
range(
start + len(network.buses.index),
start + len(network.buses.index) + len(ev_buses),
)
)
network.import_components_from_dataframe(
pd.DataFrame(
dict(
marginal_cost=-marginal_cost,
p_nom=p_nom,
p_min_pu=-1,
p_max_pu=0,
carrier="negative load shedding",
bus=ev_buses,
control="PQ",
),
index=index_ev,
),
"Generator",
)


def set_control_strategies(network):
"""Sets control strategies for AC generators and storage units
Expand Down

0 comments on commit ec51267

Please sign in to comment.