Optimization of distributed energy resources to balance power supply and demand in a smart grid | IEEE Conference Publication | IEEE Xplore