@@ -434,7 +434,7 @@ def run_optimization_14a(edisgo):
434434 start_time = datetime .now ()
435435
436436 # Run optimization
437- edisgo .pm_optimize (opf_version = 5 , curtailment_14a = True , flexible_hps = [] )
437+ edisgo .pm_optimize (opf_version = 5 , curtailment_14a = True )
438438
439439 duration = (datetime .now () - start_time ).total_seconds ()
440440
@@ -446,7 +446,7 @@ def run_optimization_14a(edisgo):
446446
447447grid_path = "/home/carlos/LoMa/exec_folder/results/MGB_model_pypsa"
448448
449- edisgo = EDisGo (pypsa_csv_dir = grid_path , snapshot_range = (0 , 3 ))
449+ edisgo = EDisGo (pypsa_csv_dir = grid_path , snapshot_range = (0 , 2 ))
450450mv_grid_geom = gpd .read_file (
451451 "/home/carlos/LoMa/exec_folder/data/Input_files/MV_grid_district/husum_district.shp"
452452)
@@ -468,10 +468,12 @@ def run_optimization_14a(edisgo):
468468 edisgo .topology .buses_df .index != "HV_dummy_bus"
469469]
470470
471+ ######### This will be removed once Paul include the CP timeseries ############
471472# Remove remporarily the charging points
472473edisgo .topology .loads_df = edisgo .topology .loads_df [
473474 edisgo .topology .loads_df .type != "charging_point"
474475]
476+ ######### This will be removed once Paul include the CP timeseries ############
475477
476478# Set Zero active power for batteries (let the OPF optimize dispatch freely)
477479storage_names = edisgo .topology .storage_units_df .index
@@ -519,3 +521,13 @@ def run_optimization_14a(edisgo):
519521for ts in edisgo .timeseries .timeindex :
520522 plot_network (edisgo , show = False , snapshot = str (ts ))
521523create_network_gif (duration = 500 )
524+
525+ # edisgo.results.v_res
526+ # edisgo.results.s_res
527+
528+ # load_t = edisgo.timeseries.loads_active_power
529+ # g = edisgo.topology.generators_df
530+ # gt = edisgo.timeseries.generators_active_power
531+ # lines = edisgo.topology.lines_df
532+
533+ # demand_q = edisgo.timeseries.loads_reactive_power
0 commit comments