Optimum Energy Management and Control System