Skip to content
Snippets Groups Projects

Revised ResourcePrice class and methods. Added tests for problem...

7 files
+ 3066
1120
Compare changes
  • Side-by-side
  • Inline

Files

@@ -106,7 +106,7 @@ def heat_demand_dict_by_building_entrance(
@@ -106,7 +106,7 @@ def heat_demand_dict_by_building_entrance(
discrete_sinusoid_matching_integral(
discrete_sinusoid_matching_integral(
bdg_specific_demand[building_index] * area,
bdg_specific_demand[building_index] * area,
time_interval_durations=time_interval_durations,
time_interval_durations=time_interval_durations,
bdg_ratio_min_max=bdg_ratio_min_max[building_index],
min_to_max_ratio=bdg_ratio_min_max[building_index],
phase_shift_radians=(
phase_shift_radians=(
bdg_demand_phase_shift[building_index]
bdg_demand_phase_shift[building_index]
# bdg_demand_phase_shift_amplitude*np.random.random()
# bdg_demand_phase_shift_amplitude*np.random.random()
@@ -128,7 +128,7 @@ def heat_demand_dict_by_building_entrance(
@@ -128,7 +128,7 @@ def heat_demand_dict_by_building_entrance(
),
),
avg_state=avg_state,
avg_state=avg_state,
time_interval_durations=time_interval_durations,
time_interval_durations=time_interval_durations,
bdg_ratio_min_max=bdg_ratio_min_max[building_index],
min_to_max_ratio=bdg_ratio_min_max[building_index],
state_correlates_with_output=state_correlates_with_output,
state_correlates_with_output=state_correlates_with_output,
)
)
)
)
Loading