Text this: A framework of an energy management system for total cost minimization in a renewable energy-driven microgrid.