ifr_idisNoneorr_idnotinlist_room_active_simu:# Only the HVACs in simulated room make sense
continue
# Put the right variable in the vector "u"
idx_r=list_room_active_simu.index(r_id)
bb[idx_th][idx_r]=l_obj.thermal_efficiency/self.building_data.room(r_id).thermal_capa# Get the thermal efficiency (elec -> therm heat) from the load object and place it at the right place