Text this: Intelligent algorithm based modeling of renewable and green energy resources for microgrid optimization