Challenges in Managing Distributed Energy Resources