A HEMS(Home Energy Management System) algorithm using MATLAB yalmip+cplex to help residential users to better participant in power grid peak shaving
Ele_price is a matrix to present the price of electrcity, the x-axies is time and the y-axies is the price Hot_water is a matrix to declare when the hot water is needed,