Skip to content
Snippets Groups Projects
Commit ac585a83 authored by Najet Nsir's avatar Najet Nsir
Browse files

runme script for rolling horizon approach on prosumer level

parent 6dd1875b
No related branches found
No related tags found
No related merge requests found
Subproject commit dc5c2facdbb74e782cb7b88408551306342ed8f9
Subproject commit d75b42d31df74c47ad1f1c73d7f481c17b7d420b
......@@ -32,7 +32,7 @@ class SimulationScope(Enum):
PROSUMER = 1
DISTRICT = 2
simulation_scope = SimulationScope.DISTRICT
simulation_scope = SimulationScope.PROSUMER
t_start = pd.Timestamp("2019-05-10 00:00:00") # start time of simulation
t_horizon = 240 # number of time steps to be simulated
t_step = 1 # length of a time step in hours
......@@ -58,12 +58,13 @@ input_profiles = Tooling.input_profile_processor.input_profile_processor.process
# 'config_path': path to global configurations like prices, injection prices, emission costs, etc.
# 'topology_path': path to directory that contains the matrices that define the prosumer topology
prosumer_dict = {'SCN2_CAT1_PV11_3000_6000':{'config_path': 'input_files/models/prosumer_models/SCN2_CAT1_PV11/config.csv',
'topology_path': 'input_files/models/prosumer_models/SCN2_CAT1_PV11',
prosumer_dict = {'SCN2_CAT1_PV14_HP_3000_6000':{'config_path': 'input_files/models/prosumer_models/SCN2_CAT1_PV14_HP/config.csv',
'topology_path': 'input_files/models/prosumer_models/SCN2_CAT1_PV14_HP',
'profiles': {'pv_roof': [('irradiance_1', 'irradiance', 'perfect_foresight'), ('temperature_1', 'temperature', 'perfect_foresight')],
'elec_cns': ('demand_electric_1', 'demand_electric', 'perfect_foresight'),
'therm_cns': ('demand_heat_1', 'demand_heat', 'perfect_foresight'),
'dhw_dmd': ('demand_hot_water_1', 'demand_hot_water', 'perfect_foresight')}},
'dhw_dmd': ('demand_hot_water_1', 'demand_hot_water', 'perfect_foresight'),
'heat_pump' : ('temperature_1', 'temperature', 'perfect_foresight')}},
'SCN0_CAT1_3000_6000': {'config_path': 'input_files/models/prosumer_models/SCN0_CAT1/config.csv',
'topology_path': 'input_files/models/prosumer_models/SCN0_CAT1',
'profiles': {'elec_cns': ('demand_electric_2', 'demand_electric', 'perfect_foresight'),
......@@ -71,10 +72,10 @@ prosumer_dict = {'SCN2_CAT1_PV11_3000_6000':{'config_path': 'input_files/models/
'dhw_dmd': ('demand_hot_water_2', 'demand_hot_water', 'perfect_foresight')}}}
prosumer_main = main_prosumer.ProsumerMain(prosumer_dict, input_profiles, t_horizon, t_step)
prosumer_sizing_strategy = 'annuity'
prosumer_main.optimize_sizing(prosumer_sizing_strategy)
prosumer_operation_strategy = 'annuity'
prosumer_main.optimize_operation(prosumer_operation_strategy)
prosumer_main.save_results()
prosumers = prosumer_main.prosumers
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment