Providing Optimal Value to Energy Consumers Through Microgrids