Microgrid to enable optimal distributed energy retail and end-user demand response. (15th January 2018)