Text this: Comfort and energy consumption optimization in smart homes using bat algorithm with inertia weight