"""https://mepacademy.com/top-6-hvac-control-strategies-to-save-energy/#:~:text=Using%20Trim%20and%20Respond%20control,setpoint%20to%2055.2%C2%B0F.Based on #6 Supply Air Temperature Reset"""importnumpyasnp
[docs]classtrim_and_respond_ctrl():def__init__(self,TandR_monitor_idx=6,TandR_monitor:str="avg_room_temp",TandR_monitor_limit:float=27):assert(TandR_monitor=="avg_room_temp")|(TandR_monitor=="crac_return_temp"),f"invalid TandR_monitor monitor string : {TandR_monitor}"self.TandR_monitor=TandR_monitorself.TandR_monitor_limit=TandR_monitor_limitself.TandR_monitor_idx=TandR_monitor_idxself.response_duration_counter=0self.response_duration_limit=4# assuming 1 hour if sampling interval is 15mins