From ec512676a9cc5331489cf207cc4fe7a2cb198e95 Mon Sep 17 00:00:00 2001 From: CarlosEpia Date: Wed, 13 Nov 2024 16:45:44 +0100 Subject: [PATCH] Revert "Add option for negative load shedding at e-Mobility buses" This reverts commit 0f4e7ab545c019372b7edf66c46dc1df44f7e985. --- etrago/tools/utilities.py | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/etrago/tools/utilities.py b/etrago/tools/utilities.py index c5c88926..5173f406 100755 --- a/etrago/tools/utilities.py +++ b/etrago/tools/utilities.py @@ -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 @@ -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