Text this: Design and Economic Optimization of Microgrid