AN OPTIMIZED HOME ENERGY MANAGEMENT SYSTEM WITH INTEGRATED RENEWABLE