From 3840f149f7afa8c631f1f68f376f3eb647052e26 Mon Sep 17 00:00:00 2001 From: ulfmueller Date: Thu, 19 Oct 2023 13:58:19 +0200 Subject: [PATCH] get rid of cyclic condition for e-mobility due to e-initial approach --- etrago/appl.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/etrago/appl.py b/etrago/appl.py index 35e788e3..0c080c59 100644 --- a/etrago/appl.py +++ b/etrago/appl.py @@ -62,7 +62,7 @@ "q_allocation": "p_nom", # allocate reactive power via 'p_nom' or 'p' }, "start_snapshot": 1, - "end_snapshot": 168, + "end_snapshot": 8760, "solver": "gurobi", # glpk, cplex or gurobi "solver_options": { "BarConvTol": 1.0e-5, @@ -79,7 +79,7 @@ "scn_decommissioning": None, # None or decommissioning scenario # Export options: "lpfile": False, # save pyomo's lp file: False or /path/to/lpfile.lp - "csv_export": "/home/ulf/Documents/PoWErD/AP2etrago_results/consecutive_test", # save results as csv: False or /path/tofolder + "csv_export": "/home/ulf/Documents/PoWErD/AP2etrago_results/consecutive_test_8760_51", # save results as csv: False or /path/tofolder # Settings: "extendable": { "extendable_components": [ @@ -106,10 +106,10 @@ "network_clustering": { "active": True, # choose if clustering is activated "method": "kmedoids-dijkstra", # choose clustering method: kmeans or kmedoids-dijkstra - "n_clusters_AC": 30, # total number of resulting AC nodes (DE+foreign) + "n_clusters_AC": 51, # total number of resulting AC nodes (DE+foreign) "cluster_foreign_AC": False, # take foreign AC buses into account, True or False "method_gas": "kmedoids-dijkstra", # choose clustering method: kmeans or kmedoids-dijkstra - "n_clusters_gas": 14, # total number of resulting CH4 nodes (DE+foreign) + "n_clusters_gas": 12, # total number of resulting CH4 nodes (DE+foreign) "cluster_foreign_gas": False, # take foreign CH4 buses into account, True or False "k_elec_busmap": False, # False or path/to/busmap.csv "k_gas_busmap": False, # False or path/to/ch4_busmap.csv @@ -687,7 +687,6 @@ def run_etrago(args, json_path): # start linear optimal powerflow calculations etrago.network.storage_units.cyclic_state_of_charge = True - etrago.network.stores.e_cyclic = True etrago.network.lines.loc[etrago.network.lines.r==0.0, 'r']=10