Commit 9c656d47 authored by Mircea-Ştefan SIMOIU's avatar Mircea-Ştefan SIMOIU
Browse files

changed datetime functions for windows compatibility

parent d2a8b0cd
......@@ -108,8 +108,8 @@ if __name__ == '__main__':
# yappi -f pstat -o profiling_analysis.out analysis_subway_peak_shifting.py
# snakeviz profiling_analysis.out
scenarios_to_plot = [9,10,11,12,13,14,15] # paper scenarios
#scenarios_to_plot = [3] # DEMO SCENARIO
#scenarios_to_plot = [9,10,11,12,13,14,15] # paper scenarios
scenarios_to_plot = [3] # DEMO SCENARIO
plot_hourly_comp_flag = True
plot_pareto = True
......
......@@ -78,6 +78,7 @@ class EnergyCommunityModel(Model, ABC):
self.tf_total = { time_index : local_datetimes[time_index] for time_index in range(len(local_datetimes)) } # the total time frame: for each index we have a corresponding time
self.start_of_day_end_of_day_index_map = day_start_end_index_map
class CommunityManager(Agent, ABC):
"""Community manager abstract class.
......
from datetime import timedelta
import pandas as pd
from buildingenergy.timemg import stringdate_to_datetime
import pytz
from tzlocal import get_localzone
class Params:
......@@ -30,10 +33,16 @@ class Params:
self.solar_location = self.df.loc[self.df.simulation_parameter == 'solar_data_location'][self.simulation_id].item()
start_date = str(self.df.loc[self.df.simulation_parameter == 'simulation_starting_date'][self.simulation_id].item())
self.starting_date = stringdate_to_datetime(start_date, date_format='%d/%m/%Y')
end_date = str(self.df.loc[self.df.simulation_parameter == 'simulation_ending_date'][self.simulation_id].item())
self.ending_date = stringdate_to_datetime(end_date, date_format='%d/%m/%Y')
#self.starting_date = stringdate_to_datetime(start_date, date_format='%d/%m/%Y') # doesnt work on windows
local_tz = get_localzone() # Get the local timezone
local_timezone = pytz.timezone(local_tz.__str__()) # Set the local timezone for conversion
self.starting_date = pd.Timestamp(start_date,tz=local_timezone) # start date should be in local timezone as the whole simualtion is in localtime
end_date = str(self.df.loc[self.df.simulation_parameter == 'simulation_ending_date'][self.simulation_id].item())
#self.ending_date = stringdate_to_datetime(end_date, date_format='%d/%m/%Y') # doesnt work on windows
self.ending_date = pd.Timestamp(end_date,tz=local_timezone) # start date should be in local timezone as the whole simualtion is in localtime
self.set_simulation_steps()
......@@ -41,4 +50,7 @@ class Params:
"""Calculate the number of steps based on self.starting_date and self.ending_date"""
diff = self.ending_date - self.starting_date
self.simulation_steps = diff.days * 24 + diff.seconds // 3600
\ No newline at end of file
self.simulation_steps = diff.days * 24 + diff.seconds // 3600
\ No newline at end of file
......@@ -76,7 +76,8 @@ def generate_local_datetime_range_and_indexes(starting_date: Union[pd.DatetimeIn
while utc_datetime < ending_date_utc:
# UTC time is translated into local time (ie based on local timezone)
local_datetime = local_timezone.normalize(utc_datetime.replace(tzinfo=pytz.utc).astimezone(local_timezone))
#local_datetime = local_timezone.normalize(utc_datetime.replace(tzinfo=pytz.utc).astimezone(local_timezone)) OLD, was working with buildingenergy timemg functions
local_datetime = utc_datetime.replace(tzinfo=pytz.utc).astimezone(local_timezone)
# Get the day index in the year for the current datetime
current_day_in_year_index = local_datetime.timetuple().tm_yday
......@@ -102,7 +103,6 @@ def generate_local_datetime_range_and_indexes(starting_date: Union[pd.DatetimeIn
end_of_day_hour_index_list.append(start_of_day_hour_index_list[-1] + 23)
time_mapping = {start_of_day_hour_index_list[i]: end_of_day_hour_index_list[i] for i in range(day_counter) }
return local_datetimes, time_mapping
......@@ -26,14 +26,21 @@ class SubwayParam(Params):
start_date = str(self.df.loc[self.df.simulation_parameter == 'flexibility_period_1_start'][self.simulation_id].item())
self.flexibility_period_1_start = stringdate_to_datetime(start_date, date_format='%H:%M')
#self.flexibility_period_1_start = stringdate_to_datetime(start_date, date_format='%H:%M')
self.flexibility_period_1_start = pd.to_datetime(start_date)
#print(self.flexibility_period_1_start)
end_date = str(self.df.loc[self.df.simulation_parameter == 'flexibility_period_1_end'][self.simulation_id].item())
self.flexibility_period_1_end = stringdate_to_datetime(end_date, date_format='%H:%M')
#self.flexibility_period_1_end = stringdate_to_datetime(end_date, date_format='%H:%M')
self.flexibility_period_1_end = pd.to_datetime(end_date)
start_date = str(self.df.loc[self.df.simulation_parameter == 'flexibility_period_2_start'][self.simulation_id].item())
self.flexibility_period_2_start = stringdate_to_datetime(start_date, date_format='%H:%M')
#self.flexibility_period_2_start = stringdate_to_datetime(start_date, date_format='%H:%M')
self.flexibility_period_2_start = pd.to_datetime(start_date)
end_date = str(self.df.loc[self.df.simulation_parameter == 'flexibility_period_2_end'][self.simulation_id].item())
self.flexibility_period_2_end = stringdate_to_datetime(end_date, date_format='%H:%M')
#self.flexibility_period_2_end = stringdate_to_datetime(end_date, date_format='%H:%M')
self.flexibility_period_2_end = pd.to_datetime(end_date)
logger.info('----------SIMULATION DESCRIPTION---------------')
logger.info(f'- PV plant number of panels: {self.pv_plant_number_of_modules}')
......
......@@ -453,6 +453,7 @@ class SubwayCommunityManager(CommunityManager):
data_models = [member.est_member_load_total, member.sim_member_load_total, member.sim_member_rec_total, member.sim_member_actions_total] # get the data models
for model in data_models:
hourly_data[f'{member.unique_id}_{member.type}_{model.data_source_type}_{model.data_type}_{model.asignee_type}_{model.interval}'] = list(model.data.values()) # assign the data models to a representative key
df = pd.DataFrame(hourly_data)
df.to_csv(os.path.join(self.com_model.results_folder_path,f"Scenario_{self.com_model.sim_params.simulation_id}_cm_hourly.csv"))
......
2022-11-28 14:41:51,049 [INFO] ----------SIMULATION DESCRIPTION---------------
2022-11-28 14:41:51,049 [INFO] - PV plant number of panels: 50
2022-11-28 14:41:51,050 [INFO] - PV plant module power: 325
2022-11-28 14:41:51,050 [INFO] - Solar data location: Bucharest
2022-11-28 14:41:51,051 [INFO] - Simulation start date: 2017-01-01 00:00:00
2022-11-28 14:41:51,052 [INFO] - Simulation end date: 2018-01-01 00:00:00
2022-11-28 14:41:51,053 [INFO] ----------Subway community specific parameters---------------
2022-11-28 14:41:51,053 [INFO] - Flexibility period 1 between: 6 and 12
2022-11-28 14:41:51,053 [INFO] - Flexibility period 2 between: 15 and 21
2022-11-29 10:40:15,703 [INFO] ----------SIMULATION DESCRIPTION---------------
2022-11-29 10:40:15,704 [INFO] - PV plant number of panels: 50
2022-11-29 10:40:15,704 [INFO] - PV plant module power: 325
2022-11-29 10:40:15,704 [INFO] - Solar data location: Bucharest
2022-11-29 10:40:15,705 [INFO] - Simulation start date: 2017-01-01 00:00:00+02:00
2022-11-29 10:40:15,705 [INFO] - Simulation end date: 2018-01-01 00:00:00+02:00
2022-11-29 10:40:15,705 [INFO] ----------Subway community specific parameters---------------
2022-11-29 10:40:15,706 [INFO] - Flexibility period 1 between: 6 and 12
2022-11-29 10:40:15,706 [INFO] - Flexibility period 2 between: 15 and 21
2022-11-25 12:52:40,988 [INFO] ----------SIMULATION DESCRIPTION---------------
2022-11-25 12:52:40,988 [INFO] - PV plant number of panels: 5000
2022-11-25 12:52:40,988 [INFO] - PV plant module power: 325
2022-11-25 12:52:40,988 [INFO] - Solar data location: Bucharest
2022-11-25 12:52:40,988 [INFO] - Simulation start date: 2017-01-01 00:00:00
2022-11-25 12:52:40,988 [INFO] - Simulation end date: 2018-01-01 00:00:00
2022-11-25 12:52:40,988 [INFO] ----------Subway community specific parameters---------------
2022-11-25 12:52:40,989 [INFO] - Flexibility period 1 between: 6 and 12
2022-11-25 12:52:40,989 [INFO] - Flexibility period 2 between: 15 and 21
2022-11-25 12:53:31,502 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.SC : 0.11
2022-11-25 12:53:31,506 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.SS : 0.73
2022-11-25 12:53:31,508 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.COST : -141866.31
2022-11-25 12:53:31,509 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.NEEG_PER_DAY : 4467.07
2022-11-25 12:53:31,510 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.NEEG : 1630479954.29
2022-11-25 12:53:31,512 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.SC : 0.14
2022-11-25 12:53:31,515 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.SS : 0.94
2022-11-25 12:53:31,518 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.COST : -147297.91
2022-11-25 12:53:31,520 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.NEEG_PER_DAY : 4169.45
2022-11-25 12:53:31,522 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.NEEG : 1521847801.45
2022-11-25 12:53:31,693 [INFO] ----------SIMULATION DESCRIPTION---------------
2022-11-25 12:53:31,693 [INFO] - PV plant number of panels: 5000
2022-11-25 12:53:31,693 [INFO] - PV plant module power: 32022-11-25 13:03:01,777 [INFO] ----------SIMULATION DESCRIPTION---------------
2022-11-25 13:03:01,779 [INFO] - PV plant number of panels: 50
2022-11-25 13:03:01,780 [INFO] - PV plant module power: 325
2022-11-25 13:03:01,780 [INFO] - Solar data location: Bucharest
2022-11-25 13:03:01,780 [INFO] - Simulation start date: 2017-01-01 00:00:00
2022-11-25 13:03:01,780 [INFO] - Simulation end date: 2018-01-01 00:00:00
2022-11-25 13:03:01,781 [INFO] ----------Subway community specific parameters---------------
2022-11-25 13:03:01,781 [INFO] - Flexibility period 1 between: 6 and 12
2022-11-25 13:03:01,782 [INFO] - Flexibility period 2 between: 15 and 21
2022-11-25 13:03:02,938 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.SC : 0.06
2022-11-25 13:03:02,939 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.SS : 0.81
2022-11-25 13:03:02,940 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.COST : -1593.8
2022-11-25 13:03:02,941 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.NEEG_PER_DAY : 45.7
2022-11-25 13:03:02,941 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.NEEG : 16681612.39
2022-11-25 13:03:02,942 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.SC : 0.07
2022-11-25 13:03:02,943 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.SS : 0.98
2022-11-25 13:03:02,945 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.COST : -1615.87
2022-11-25 13:03:02,945 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.NEEG_PER_DAY : 44.49
2022-11-25 13:03:02,946 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.NEEG : 16240146.19
2022-11-25 13:03:03,420 [INFO] Plotted monthly comparison - Scenario Scenario_3_PV_50_325_Manager_Stages.ONE_TURN_TargetOfRec.EVERYONE_ExpectancyDev.BASIC_Strategy.MULTI_OBJECTIVE_PrivacyLevel.PRIVATE_0_wn_0.9_wd_0.1
01-01 00:00:00
2022-11-25 12:54:23,533 [INFO] ----------Subway community specific parameters---------------
2022-11-25 12:54:23,533 [INFO] - Flexibility period 1 between: 6 and 12
2022-11-25 12:54:23,533 [INFO] - Flexibility period 2 between: 15 and 21
2022-11-25 12:55:16,205 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.SC : 0.11
2022-11-25 12:55:16,209 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.SS : 0.73
2022-11-25 12:55:16,211 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.COST : -141866.31
2022-11-25 12:55:16,212 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.NEEG_PER_DAY : 4467.07
2022-11-25 12:55:16,213 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.NEEG : 1630479954.29
2022-11-25 12:55:16,215 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.SC : 0.11
2022-11-25 12:55:16,218 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.SS : 0.73
2022-11-25 12:55:16,220 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.COST : -141866.31
2022-11-25 12:55:16,221 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.NEEG_PER_DAY : 4467.07
2022-11-25 12:55:16,222 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.NEEG : 1630479954.29
2022-11-25 12:55:16,396 [INFO] ----------SIMULATION DESCRIPTION---------------
2022-11-25 12:55:16,396 [INFO] - PV plant number of panels: 5000
2022-11-25 12:55:16,396 [INFO] - PV plant module power: 325
2022-11-25 12:55:16,396 [INFO] - Solar data location: Bucharest
2022-11-25 12:55:16,396 [INFO] - Simulation start date: 2017-01-01 00:00:00
2022-11-25 12:55:16,396 [INFO] - Simulation end date: 2018-01-01 00:00:00
2022-11-25 12:55:16,396 [INFO] ----------Subway community specific parameters---------------
2022-11-25 12:55:16,396 [INFO] - Flexibility period 1 between: 6 and 12
2022-11-25 12:55:16,396 [INFO] - Flexibility period 2 between: 15 and 21
2022-11-25 12:56:07,522 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.SC : 0.11
2022-11-25 12:56:07,526 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.SS : 0.73
2022-11-25 12:56:07,528 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.COST : -141866.31
2022-11-25 12:56:07,529 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.NEEG_PER_DAY : 4467.07
2022-11-25 12:56:07,530 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.NEEG : 1630479954.29
2022-11-25 12:56:07,532 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.SC : 0.12
2022-11-25 12:56:07,534 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.SS : 0.82
2022-11-25 12:56:07,536 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.COST : -144160.98
2022-11-25 12:56:07,538 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.NEEG_PER_DAY : 4341.33
2022-11-25 12:56:07,539 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.NEEG : 1584586545.96
2022-11-25 12:56:07,992 [INFO] ----------SIMULATION DESCRIPTION---------------
2022-11-25 12:56:07,993 [INFO] - PV plant number of panels: 5000
2022-11-25 12:56:07,993 [INFO] - PV plant module power: 325
2022-11-25 12:56:07,993 [INFO] - Solar data location: Bucharest
2022-11-25 12:56:07,993 [INFO] - Simulation start date: 2017-01-01 00:00:00
2022-11-25 12:56:07,993 [INFO] - Simulation end date: 2018-01-01 00:00:00
2022-11-25 12:56:07,993 [INFO] ----------Subway community specific parameters---------------
2022-11-25 12:56:07,993 [INFO] - Flexibility period 1 between: 6 and 12
2022-11-25 12:56:07,993 [INFO] - Flexibility period 2 between: 15 and 21
2022-11-25 12:56:57,945 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.SC : 0.11
2022-11-25 12:56:57,949 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.SS : 0.73
2022-11-25 12:56:57,951 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.COST : -141866.31
2022-11-25 12:56:57,952 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.NEEG_PER_DAY : 4467.07
2022-11-25 12:56:57,954 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.NEEG : 1630479954.29
2022-11-25 12:56:57,955 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.SC : 0.11
2022-11-25 12:56:57,958 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.SS : 0.74
2022-11-25 12:56:57,960 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.COST : -142088.05
2022-11-25 12:56:57,962 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.NEEG_PER_DAY : 4454.92
2022-11-25 12:56:57,963 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.NEEG : 1626044992.95
2022-11-25 12:56:58,126 [INFO] ----------SIMULATION DESCRIPTION---------------
2022-11-25 12:56:58,126 [INFO] - PV plant number of panels: 5000
2022-11-25 12:56:58,126 [INFO] - PV plant module power: 325
2022-11-25 12:56:58,126 [INFO] - Solar data location: Bucharest
2022-11-25 12:56:58,126 [INFO] - Simulation start date: 2017-01-01 00:00:00
2022-11-25 12:56:58,126 [INFO] - Simulation end date: 2018-01-01 00:00:00
2022-11-25 12:56:58,126 [INFO] ----------Subway community specific parameters---------------
2022-11-25 12:56:58,126 [INFO] - Flexibility period 1 between: 6 and 12
2022-11-25 12:56:58,126 [INFO] - Flexibility period 2 between: 15 and 21
2022-11-25 12:57:49,252 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.SC : 0.11
2022-11-25 12:57:49,256 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.SS : 0.73
2022-11-25 12:57:49,258 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.COST : -141866.31
2022-11-25 12:57:49,259 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.NEEG_PER_DAY : 4467.07
2022-11-25 12:57:49,260 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.NEEG : 1630479954.29
2022-11-25 12:57:49,262 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.SC : 0.09
2022-11-25 12:57:49,265 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.SS : 0.63
2022-11-25 12:57:49,268 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.COST : -139323.54
2022-11-25 12:57:49,269 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.NEEG_PER_DAY : 4606.4
2022-11-25 12:57:49,272 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.NEEG : 1681335367.94
2022-11-25 12:57:49,483 [INFO] ----------SIMULATION DESCRIPTION---------------
2022-11-25 12:57:49,483 [INFO] - PV plant number of panels: 5000
2022-11-25 12:57:49,483 [INFO] - PV plant module power: 325
2022-11-25 12:57:49,483 [INFO] - Solar data location: Bucharest
2022-11-25 12:57:49,483 [INFO] - Simulation start date: 2017-01-01 00:00:00
2022-11-25 12:57:49,483 [INFO] - Simulation end date: 2018-01-01 00:00:00
2022-11-25 12:57:49,483 [INFO] ----------Subway community specific parameters---------------
2022-11-25 12:57:49,483 [INFO] - Flexibility period 1 between: 6 and 12
2022-11-25 12:57:49,483 [INFO] - Flexibility period 2 between: 15 and 21
2022-11-25 12:58:41,211 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.SC : 0.11
2022-11-25 12:58:41,215 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.SS : 0.73
2022-11-25 12:58:41,217 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.COST : -141866.31
2022-11-25 12:58:41,218 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.NEEG_PER_DAY : 4467.07
2022-11-25 12:58:41,219 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.NEEG : 1630479954.29
2022-11-25 12:58:41,221 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.SC : 0.11
2022-11-25 12:58:41,224 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.SS : 0.74
2022-11-25 12:58:41,226 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.COST : -142158.35
2022-11-25 12:58:41,227 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.NEEG_PER_DAY : 4451.07
2022-11-25 12:58:41,228 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.NEEG : 1624639050.87
2022-11-25 12:58:57,934 [INFO] Plotted monthly comparison - Scenario Scenario_9_PV_5000_325_Manager_Stages.ONE_TURN_TargetOfRec.EVERYONE_ExpectancyDev.BASIC_Strategy.MULTI_OBJECTIVE_PrivacyLevel.PRIVATE_0_wn_1_wd_0
2022-11-25 12:59:01,567 [INFO] Plotted monthly comparison - Scenario Scenario_10_PV_5000_325_Manager_Stages.ONE_TURN_TargetOfRec.EVERYONE_ExpectancyDev.BASIC_Strategy.MULTI_OBJECTIVE_PrivacyLevel.PRIVATE_0_wn_1_wd_0
2022-11-25 12:59:04,816 [INFO] Plotted monthly comparison - Scenario Scenario_11_PV_5000_325_Manager_Stages.ONE_TURN_TargetOfRec.EVERYONE_ExpectancyDev.BASIC_Strategy.MULTI_OBJECTIVE_PrivacyLevel.PRIVATE_0_wn_1_wd_0
2022-11-25 12:59:08,472 [INFO] Plotted monthly comparison - Scenario Scenario_12_PV_5000_325_Manager_Stages.ONE_TURN_TargetOfRec.EVERYONE_ExpectancyDev.BASIC_Strategy.MULTI_OBJECTIVE_PrivacyLevel.PRIVATE_0_wn_0.5_wd_0.5
2022-11-25 12:59:14,369 [INFO] Plotted monthly comparison - Scenario Scenario_13_PV_5000_325_Manager_Stages.ONE_TURN_TargetOfRec.EVERYONE_ExpectancyDev.BASIC_Strategy.INFORMATIVE_PrivacyLevel.PRIVATE_0_wn_0_wd_0
2022-11-25 12:59:17,731 [INFO] Plotted monthly comparison - Scenario Scenario_14_PV_5000_325_Manager_Stages.ONE_TURN_TargetOfRec.EVERYONE_ExpectancyDev.BASIC_Strategy.INFORMATIVE_PrivacyLevel.PRIVATE_0_wn_0_wd_0
2022-11-25 12:59:20,985 [INFO] Plotted monthly comparison - Scenario Scenario_15_PV_5000_325_Manager_Stages.ONE_TURN_TargetOfRec.EVERYONE_ExpectancyDev.BASIC_Strategy.INFORMATIVE_PrivacyLevel.PRIVATE_0_wn_0_wd_0
2022-11-29 10:44:42,573 [INFO] ----------SIMULATION DESCRIPTION---------------
2022-11-29 10:44:42,574 [INFO] - PV plant number of panels: 50
2022-11-29 10:44:42,578 [INFO] - PV plant module power: 325
2022-11-29 10:44:42,581 [INFO] - Solar data location: Bucharest
2022-11-29 10:44:42,582 [INFO] - Simulation start date: 2017-01-01 00:00:00+02:00
2022-11-29 10:44:42,583 [INFO] - Simulation end date: 2018-01-01 00:00:00+02:00
2022-11-29 10:44:42,584 [INFO] ----------Subway community specific parameters---------------
2022-11-29 10:44:42,587 [INFO] - Flexibility period 1 between: 6 and 12
2022-11-29 10:44:42,589 [INFO] - Flexibility period 2 between: 15 and 21
2022-11-29 10:44:43,255 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.SC : 0.06
2022-11-29 10:44:43,256 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.SS : 0.81
2022-11-29 10:44:43,257 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.COST : -1593.8
2022-11-29 10:44:43,257 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.NEEG_PER_DAY : 45.7
2022-11-29 10:44:43,258 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.NEEG : 16681612.39
2022-11-29 10:44:43,260 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.SC : 0.07
2022-11-29 10:44:43,261 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.SS : 0.98
2022-11-29 10:44:43,261 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.COST : -1615.87
2022-11-29 10:44:43,262 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.NEEG_PER_DAY : 44.49
2022-11-29 10:44:43,263 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.NEEG : 16240146.19
2022-11-29 10:44:43,813 [INFO] Plotted monthly comparison - Scenario Scenario_3_PV_50_325_Manager_Stages.ONE_TURN_TargetOfRec.EVERYONE_ExpectancyDev.BASIC_Strategy.MULTI_OBJECTIVE_PrivacyLevel.PRIVATE_0_wn_0.9_wd_0.1
......@@ -56,15 +56,15 @@
"name": "stdout",
"output_type": "stream",
"text": [
"2022-11-25 09:51:30,621 [INFO] ----------SIMULATION DESCRIPTION---------------\n",
"2022-11-25 09:51:30,622 [INFO] - PV plant number of panels: 50\n",
"2022-11-25 09:51:30,622 [INFO] - PV plant module power: 325\n",
"2022-11-25 09:51:30,623 [INFO] - Solar data location: Bucharest\n",
"2022-11-25 09:51:30,623 [INFO] - Simulation start date: 2017-01-01 00:00:00\n",
"2022-11-25 09:51:30,623 [INFO] - Simulation end date: 2018-01-01 00:00:00\n",
"2022-11-25 09:51:30,624 [INFO] ----------Subway community specific parameters---------------\n",
"2022-11-25 09:51:30,625 [INFO] - Flexibility period 1 between: 6 and 12\n",
"2022-11-25 09:51:30,625 [INFO] - Flexibility period 2 between: 15 and 21\n"
"2022-11-28 14:41:51,049 [INFO] ----------SIMULATION DESCRIPTION---------------\n",
"2022-11-28 14:41:51,049 [INFO] - PV plant number of panels: 50\n",
"2022-11-28 14:41:51,050 [INFO] - PV plant module power: 325\n",
"2022-11-28 14:41:51,050 [INFO] - Solar data location: Bucharest\n",
"2022-11-28 14:41:51,051 [INFO] - Simulation start date: 2017-01-01 00:00:00\n",
"2022-11-28 14:41:51,052 [INFO] - Simulation end date: 2018-01-01 00:00:00\n",
"2022-11-28 14:41:51,053 [INFO] ----------Subway community specific parameters---------------\n",
"2022-11-28 14:41:51,053 [INFO] - Flexibility period 1 between: 6 and 12\n",
"2022-11-28 14:41:51,053 [INFO] - Flexibility period 2 between: 15 and 21\n"
]
}
],
%% Cell type:markdown id: tags:
# Analysis of the demo scenario
%% Cell type:markdown id: tags:
How to use:
- first, run the simulation in [subway.ipynb](subway.ipynb)
- return here and run all the cells
%% Cell type:code id: tags:
``` python
from energycommunity.helpers.Spec import Spec
from analysis_subway_peak_shifting import plot_pareto_neeg_dissatisfaction
from energycommunity.subway.SubwayResults import SubwayResults
import os
```
%% Cell type:markdown id: tags:
## Define the analysis specification
%% Cell type:code id: tags:
``` python
spec = Spec(print_member_perf=True, plot_intervals=[('06-02-2017', '11-02-2017'), ('19-06-2017', '24-06-2017')]) # define analysis specification
results_folder_path = os.path.join("energycommunity","subway","results") # default results folder path - do not change for the demo simulation
```
%% Cell type:code id: tags:
``` python
scenario = SubwayResults(id=3, analysis_spec=spec, results_folder_path=results_folder_path) # calculate performances
```
%% Output
2022-11-25 09:53:35,362 [INFO] ----------SIMULATION DESCRIPTION---------------
2022-11-25 09:53:35,362 [INFO] - PV plant number of panels: 50
2022-11-25 09:53:35,363 [INFO] - PV plant module power: 325
2022-11-25 09:53:35,363 [INFO] - Solar data location: Bucharest
2022-11-25 09:53:35,363 [INFO] - Simulation start date: 2017-01-01 00:00:00
2022-11-25 09:53:35,363 [INFO] - Simulation end date: 2018-01-01 00:00:00
2022-11-25 09:53:35,363 [INFO] ----------Subway community specific parameters---------------
2022-11-25 09:53:35,364 [INFO] - Flexibility period 1 between: 6 and 12
2022-11-25 09:53:35,364 [INFO] - Flexibility period 2 between: 15 and 21
2022-11-25 09:53:36,061 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.SC : 0.06
2022-11-25 09:53:36,062 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.SS : 0.81
2022-11-25 09:53:36,063 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.COST : -1593.8
2022-11-25 09:53:36,063 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.NEEG_PER_DAY : 45.7
2022-11-25 09:53:36,064 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.NEEG : 16681612.39
2022-11-25 09:53:36,065 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.SC : 0.07
2022-11-25 09:53:36,066 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.SS : 0.98
2022-11-25 09:53:36,067 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.COST : -1615.87
2022-11-25 09:53:36,068 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.NEEG_PER_DAY : 44.49
2022-11-25 09:53:36,069 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.NEEG : 16240146.19
2022-11-25 13:03:01,777 [INFO] ----------SIMULATION DESCRIPTION---------------
2022-11-25 13:03:01,779 [INFO] - PV plant number of panels: 50
2022-11-25 13:03:01,780 [INFO] - PV plant module power: 325
2022-11-25 13:03:01,780 [INFO] - Solar data location: Bucharest
2022-11-25 13:03:01,780 [INFO] - Simulation start date: 2017-01-01 00:00:00
2022-11-25 13:03:01,780 [INFO] - Simulation end date: 2018-01-01 00:00:00
2022-11-25 13:03:01,781 [INFO] ----------Subway community specific parameters---------------
2022-11-25 13:03:01,781 [INFO] - Flexibility period 1 between: 6 and 12
2022-11-25 13:03:01,782 [INFO] - Flexibility period 2 between: 15 and 21
2022-11-25 13:03:02,938 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.SC : 0.06
2022-11-25 13:03:02,939 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.SS : 0.81
2022-11-25 13:03:02,940 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.COST : -1593.8
2022-11-25 13:03:02,941 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.NEEG_PER_DAY : 45.7
2022-11-25 13:03:02,941 [INFO] -- DSType.ESTIMATED AsignType.COMMUNITY IndicatorsLP.NEEG : 16681612.39
2022-11-25 13:03:02,942 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.SC : 0.07
2022-11-25 13:03:02,943 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.SS : 0.98
2022-11-25 13:03:02,945 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.COST : -1615.87
2022-11-25 13:03:02,945 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.NEEG_PER_DAY : 44.49
2022-11-25 13:03:02,946 [INFO] -- DSType.SIMULATED AsignType.COMMUNITY IndicatorsLP.NEEG : 16240146.19
- Simulation performances:
-- [<DSType.ESTIMATED: 2>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.SC: 1>] : 0.06
-- [<DSType.ESTIMATED: 2>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.SS: 2>] : 0.81
-- [<DSType.ESTIMATED: 2>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.COST: 5>] : -1593.8
-- [<DSType.ESTIMATED: 2>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.NEEG_PER_DAY: 7>] : 45.7
-- [<DSType.ESTIMATED: 2>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.NEEG: 6>] : 16681612.39
-- [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.SC: 1>] : 0.07
-- [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.SS: 2>] : 0.98
-- [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.COST: 5>] : -1615.87
-- [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.NEEG_PER_DAY: 7>] : 44.49
-- [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.NEEG: 6>] : 16240146.19
-- [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsLoad.EFFORT: 2>] : 0.22
-- [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsLoad.RENUNCIATION: 1>] : 0.0
-- [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsAll.NORMALISED_NEEG: 1>] : 0.97
-- [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.DAILY_SAVINGS: 8>] : 0.0
-- [<DSType.ESTIMATED: 2>, <AsignType.COMMUNITY: 2>, <IndicatorsLoad.MONEY_FOR_GRID_ENERGY: 3>] : 49141.39
-- [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsLoad.MONEY_FOR_GRID_ENERGY: 3>] : 5172.78
-- [<DSType.ESTIMATED: 2>, <AsignType.COMMUNITY: 2>, <IndicatorsAll.AVERAGE_DISSATISFACTION: 2>] : 0.15
-- [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsAll.AVERAGE_DISSATISFACTION: 2>] : 0.15
-- Community Member Performances:
-- CM 2 : [<DSType.ESTIMATED: 2>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.SC: 1>] : 0.06
-- CM 2 : [<DSType.ESTIMATED: 2>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.SS: 2>] : 0.81
-- CM 2 : [<DSType.ESTIMATED: 2>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.COST: 5>] : -1593.8
-- CM 2 : [<DSType.ESTIMATED: 2>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.NEEG_PER_DAY: 7>] : 45.7
-- CM 2 : [<DSType.ESTIMATED: 2>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.NEEG: 6>] : 16681612.39
-- CM 2 : [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.SC: 1>] : 0.07
-- CM 2 : [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.SS: 2>] : 0.98
-- CM 2 : [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.COST: 5>] : -1615.87
-- CM 2 : [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.NEEG_PER_DAY: 7>] : 44.49
-- CM 2 : [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.NEEG: 6>] : 16240146.19
-- CM 2 : [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsLoad.EFFORT: 2>] : 0.22
-- CM 2 : [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsLoad.RENUNCIATION: 1>] : 0.0
-- CM 2 : [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsAll.NORMALISED_NEEG: 1>] : 0.97
-- CM 2 : [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.DAILY_SAVINGS: 8>] : 0.0
-- CM 2 : [<DSType.ESTIMATED: 2>, <AsignType.COMMUNITY: 2>, <IndicatorsLoad.MONEY_FOR_GRID_ENERGY: 3>] : 49141.39
-- CM 2 : [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsLoad.MONEY_FOR_GRID_ENERGY: 3>] : 5172.78
-- CM 2 : [<DSType.ESTIMATED: 2>, <AsignType.COMMUNITY: 2>, <IndicatorsAll.AVERAGE_DISSATISFACTION: 2>] : 0.15
-- CM 2 : [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsAll.AVERAGE_DISSATISFACTION: 2>] : 0.15
-- CM 8 : [<DSType.ESTIMATED: 2>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.SC: 1>] : 0.06
-- CM 8 : [<DSType.ESTIMATED: 2>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.SS: 2>] : 0.81
-- CM 8 : [<DSType.ESTIMATED: 2>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.COST: 5>] : -1593.8
-- CM 8 : [<DSType.ESTIMATED: 2>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.NEEG_PER_DAY: 7>] : 45.7
-- CM 8 : [<DSType.ESTIMATED: 2>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.NEEG: 6>] : 16681612.39
-- CM 8 : [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.SC: 1>] : 0.07
-- CM 8 : [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.SS: 2>] : 0.98
-- CM 8 : [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.COST: 5>] : -1615.87
-- CM 8 : [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.NEEG_PER_DAY: 7>] : 44.49
-- CM 8 : [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.NEEG: 6>] : 16240146.19
-- CM 8 : [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsLoad.EFFORT: 2>] : 0.22
-- CM 8 : [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsLoad.RENUNCIATION: 1>] : 0.0
-- CM 8 : [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsAll.NORMALISED_NEEG: 1>] : 0.97
-- CM 8 : [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.DAILY_SAVINGS: 8>] : 0.0
-- CM 8 : [<DSType.ESTIMATED: 2>, <AsignType.COMMUNITY: 2>, <IndicatorsLoad.MONEY_FOR_GRID_ENERGY: 3>] : 49141.39
-- CM 8 : [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsLoad.MONEY_FOR_GRID_ENERGY: 3>] : 5172.78
-- CM 8 : [<DSType.ESTIMATED: 2>, <AsignType.COMMUNITY: 2>, <IndicatorsAll.AVERAGE_DISSATISFACTION: 2>] : 0.15
-- CM 8 : [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsAll.AVERAGE_DISSATISFACTION: 2>] : 0.15
-- CM 16 : [<DSType.ESTIMATED: 2>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.SC: 1>] : 0.06
-- CM 16 : [<DSType.ESTIMATED: 2>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.SS: 2>] : 0.81
-- CM 16 : [<DSType.ESTIMATED: 2>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.COST: 5>] : -1593.8
-- CM 16 : [<DSType.ESTIMATED: 2>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.NEEG_PER_DAY: 7>] : 45.7
-- CM 16 : [<DSType.ESTIMATED: 2>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.NEEG: 6>] : 16681612.39
-- CM 16 : [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.SC: 1>] : 0.07
-- CM 16 : [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.SS: 2>] : 0.98
-- CM 16 : [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.COST: 5>] : -1615.87
-- CM 16 : [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.NEEG_PER_DAY: 7>] : 44.49
-- CM 16 : [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.NEEG: 6>] : 16240146.19
-- CM 16 : [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsLoad.EFFORT: 2>] : 0.22
-- CM 16 : [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsLoad.RENUNCIATION: 1>] : 0.0
-- CM 16 : [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsAll.NORMALISED_NEEG: 1>] : 0.97
-- CM 16 : [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.DAILY_SAVINGS: 8>] : 0.0
-- CM 16 : [<DSType.ESTIMATED: 2>, <AsignType.COMMUNITY: 2>, <IndicatorsLoad.MONEY_FOR_GRID_ENERGY: 3>] : 49141.39
-- CM 16 : [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsLoad.MONEY_FOR_GRID_ENERGY: 3>] : 5172.78
-- CM 16 : [<DSType.ESTIMATED: 2>, <AsignType.COMMUNITY: 2>, <IndicatorsAll.AVERAGE_DISSATISFACTION: 2>] : 0.15
-- CM 16 : [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsAll.AVERAGE_DISSATISFACTION: 2>] : 0.15
-- CM 0 : [<DSType.ESTIMATED: 2>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.SC: 1>] : 0.06
-- CM 0 : [<DSType.ESTIMATED: 2>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.SS: 2>] : 0.81
-- CM 0 : [<DSType.ESTIMATED: 2>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.COST: 5>] : -1593.8
-- CM 0 : [<DSType.ESTIMATED: 2>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.NEEG_PER_DAY: 7>] : 45.7
-- CM 0 : [<DSType.ESTIMATED: 2>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.NEEG: 6>] : 16681612.39
-- CM 0 : [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.SC: 1>] : 0.07
-- CM 0 : [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.SS: 2>] : 0.98
-- CM 0 : [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.COST: 5>] : -1615.87
-- CM 0 : [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.NEEG_PER_DAY: 7>] : 44.49
-- CM 0 : [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.NEEG: 6>] : 16240146.19
-- CM 0 : [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsLoad.EFFORT: 2>] : 0.22
-- CM 0 : [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsLoad.RENUNCIATION: 1>] : 0.0
-- CM 0 : [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsAll.NORMALISED_NEEG: 1>] : 0.97
-- CM 0 : [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsLP.DAILY_SAVINGS: 8>] : 0.0
-- CM 0 : [<DSType.ESTIMATED: 2>, <AsignType.COMMUNITY: 2>, <IndicatorsLoad.MONEY_FOR_GRID_ENERGY: 3>] : 49141.39
-- CM 0 : [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsLoad.MONEY_FOR_GRID_ENERGY: 3>] : 5172.78
-- CM 0 : [<DSType.ESTIMATED: 2>, <AsignType.COMMUNITY: 2>, <IndicatorsAll.AVERAGE_DISSATISFACTION: 2>] : 0.15
-- CM 0 : [<DSType.SIMULATED: 1>, <AsignType.COMMUNITY: 2>, <IndicatorsAll.AVERAGE_DISSATISFACTION: 2>] : 0.15
%% Cell type:markdown id: tags:
## Results
%% Cell type:code id: tags:
``` python
plot_pareto_neeg_dissatisfaction([scenario] , results_folder_path, False, False)
```
%% Output
%% Cell type:code id: tags:
``` python
scenario.plot_hourly_evolution_comparison_specific_months_and_days_subway_community(save_figures_flag=False)
```
%% Output
2022-11-25 09:53:36,623 [INFO] Plotted monthly comparison - Scenario Scenario_3_PV_50_325_Manager_Stages.ONE_TURN_TargetOfRec.EVERYONE_ExpectancyDev.BASIC_Strategy.MULTI_OBJECTIVE_PrivacyLevel.PRIVATE_0_wn_0.9_wd_0.1
2022-11-25 13:03:03,420 [INFO] Plotted monthly comparison - Scenario Scenario_3_PV_50_325_Manager_Stages.ONE_TURN_TargetOfRec.EVERYONE_ExpectancyDev.BASIC_Strategy.MULTI_OBJECTIVE_PrivacyLevel.PRIVATE_0_wn_0.9_wd_0.1