A modular framework for cost optimization in smart grid | IEEE Conference Publication | IEEE Xplore