SINTEF-Power-system-asset-management / flexible_load_analysis

Flexible Load Analysis (FLA)
GNU General Public License v3.0
3 stars 2 forks source link

Imporved OverloadEvent initialization and energy calculation logic #21

Closed sheikhbil closed 2 months ago

sheikhbil commented 2 months ago

(1) Added optional parameters to the OverloadEvent constructor. (2) Updated the logic for calculating fl_surplus_energy_MWh to account for non-uniform timestamp widths and base case set to uniform timestamp widths. (3) Kept the logic for calculating fl_rms_load using the for-loop method. (4)Added checks for missing all_timestamp_widths when equal_timestamp_spacing is set to False. (5)Updated the calculation of self.percentage_overload to handle cases where fl_power_limit is zero.