A smart grid is an electrical grid which includes a variety of operation and energy measures including an advanced metering infrastructure, smart distribution boards, home control and demand response.