Text this: Optimizing Distributed Generation and Energy Storage in Microgrids through Intelligent Energy Administration Strategies